Upstatement / routes

Simple routing for WordPress
188 stars 39 forks source link

Use parse_request instead of do_parse_request action to fix compatibility with Wordpress 6 #41

Closed idflood closed 2 years ago

idflood commented 2 years ago

Use parse_request instead of do_parse_request action to fix compatibility with Wordpress 6, fix #39

Thanks to @jaybarry for finding the Fix 👍

idflood commented 2 years ago

I tested this change on a local instance with Wordpress 5 and Wordpress 6.

The route was using the query to filter by custom post type. Without fix the page returned nothing on Wordpress 6, this fixed it. Not sure if this could have any other side effect on more advanced setup.

michaelmano commented 2 years ago

Tested with WP 5.9.3 and 6.0 on several sites and works perfectly.

jarednova commented 2 years ago

This looks good to go! Thanks to @michaelmano for the extra confirmation.