10up / simple-page-ordering

Order your pages and other hierarchical post types with simple drag and drop right from the standard page list.
https://wordpress.org/plugins/simple-page-ordering/
GNU General Public License v2.0
143 stars 22 forks source link

Use required classes from global namespace. #162

Closed peterwilsoncc closed 10 months ago

peterwilsoncc commented 10 months ago

Description of the Change

Prevents fatal errors in the admin-ajax functionality by adding use statements for classes in the global namespace.

Closes #161 Follow up to #153.

How to test the Change

  1. Go to WP Admin > Pages
  2. Open your browser's network tab in dev tools
  3. Create pages if required.
  4. Drag pages to re-order
  5. The network response is a 500 on develop, reordering should succeed on this branch.

Changelog Entry

Fixed - Fatal error following the introduction of a namespace.

Credits

Props @peterwilsoncc.

Checklist: