Jump to content

PW 3.0.118 – Core updates


ryan
 Share

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
Link to comment
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
Link to comment
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 4
  • Thanks 1
Link to comment
Share on other sites

  • 1 year later...

Hi @ryan,

I really like the idea of the new redirect URL management. Do I have to enable it somewhere, so it automatically adds previous URLs?

After changing the page name several times, the panel still shows "Did not find any…" (see attached screen).

(Logged in as superuser, using ProcessWire 3.0.146)

New redirect URL management.png

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...