id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses 52818 Ordering metaboxes broken in WP 5.7 terraling desrosj "Post edit screens with metaboxes allow for drag and drop re-ordering. This worked up to WordPress 5.6.2, but stopped working in WP 5.7, though it continues to work if you use the Classic Editor to edit posts rather than the block editor. When re-ordering the metaboxes, an ajax update with the action 'meta-box-order' occurs, and this reports a succesful response both in the working and non-working cases, so it ''appears'' as if updating the metabox order works. But, when the page is reloaded, the metaboxes are displayed in an unchanged order. For testing you can use the following code to register two dummy metaboxes: {{{#!php 'One' ) ); add_meta_box( 'metabox_id_2', __( 'Metabox Two', 'textdomain' ), 'xyz_metabox_callback', 'post', 'normal', 'low', array( 'foo' => 'Two' ) ); } add_action( 'load-post.php', 'xyz_init_meta_boxes' ); add_action( 'load-post-new.php', 'xyz_init_meta_boxes' ); function xyz_metabox_callback( $post, $metabox ) { $foo = $metabox['args']['foo']; echo ""

Content of metabox $foo

""; } }}} To reproduce, with WP 5.7 edit a post using the block editor. Re-order the two metaboxes and update the post. Reload the page." defect (bug) closed normal 5.8.1 Editor 5.7 normal fixed has-patch