[wp-trac] [WordPress Trac] #52818: Ordering metaboxes broken in WP 5.7

WordPress Trac noreply at wordpress.org
Mon Mar 15 16:50:39 UTC 2021


#52818: Ordering metaboxes broken in WP 5.7
--------------------------+---------------------
 Reporter:  terraling     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.7.1
Component:  Editor        |     Version:  5.7
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+---------------------
Changes (by desrosj):

 * keywords:   => needs-patch
 * milestone:  Awaiting Review => 5.7.1


Comment:

 Hi @terraling,

 Welcome to Trac!

 I've done some testing and I am able to reproduce the issue you are
 describing (thanks for the proof of concept code)!

 Based on my testing, it seems that the post type is not being included in
 the request, so `$page` is empty within `wp_ajax_meta_box_order()`,
 causing the meta key to be incorrect
 ([https://core.trac.wordpress.org/browser/branches/5.7/src/wp-
 admin/includes/ajax-actions.php#L1901 relevant source code]). The
 resulting keys are `meta-box-order_` instead of `meta-box-order_post`,
 `meta-box-order_page`, etc.

 When the page refreshes, it is unable to find the user's preferred
 ordering for that post type. I tested with pages, and it seems to happen
 regardless of post type.

 I'm moving this to 5.7.1 to investigate further, but this may require an
 issue and fix over on the [https://github.com/wordpress/gutenberg
 Gutenberg GitHub repository].

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52818#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list