ryan

PW 3.0.118 – Core updates

Recommended Posts

@ryan

Thanks for updates. 

In the blog post for 3.0.117 new 'WireArray::new' method was introduced but in 3.0.118 it was removed and now we have new API functions (WireArray($items) and PageArray($items). Maybe the blog post for 3.0.117 should be changed to reflect current implementation (as blog posts currently are part of docs)? 

  • Like 1

Share this post


Link to post
Share on other sites

I've updated PW to 3.0.118 on localhost and this is what I see in the admin login screen:

admin.thumb.jpg.fceb4598b31a0e4e690cde0bd7a70f5f.jpg

Share this post


Link to post
Share on other sites

I tried new redirect option and manually created redirect, but instead of a redirect, I get 404 page. I'm probably doing something wrong ...

Share this post


Link to post
Share on other sites

Yep, it's me 🙂 I had an error (premature end) in my 404 template file.

Share this post


Link to post
Share on other sites

Will there be another master release in the near future? I've seen some nifty features passing by in the dev version since 3.0.98, and eager to use some of them in production environments...

Share this post


Link to post
Share on other sites
Quote

 

In the blog post for 3.0.117 new 'WireArray::new' method was introduced but in 3.0.118 it was removed and now we have new API functions (WireArray($items) and PageArray($items). Maybe the blog post for 3.0.117 should be changed to reflect current implementation (as blog posts currently are part of docs)?

 

There has been no change here, the WireArray::new() method remains as it was before. It was only the non-static implementation that was removed, which was present not for functional reasons, but purely so that it would show up in the auto-generated API docs to represent the static version. That non-static version was causing issues in PHP versions prior to 7.x. The static version does not cause issues because it's implemented via PHP's __callStatic() handler. While there are WireArray() and PageArray() functions that can be used the the same way as WireArray::new() and PageArray::new(), the ::new() versions are preferable because they will work with any WireArray derived type, and as a bonus, they can also accept variable argument lists. 

  • Like 2

Share this post


Link to post
Share on other sites
Quote

Will there be another master release in the near future? I've seen some nifty features passing by in the dev version since 3.0.98, and eager to use some of them in production environments...

Yes, we should have one hopefully this month. 

  • Like 3
  • Thanks 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.