[wp-trac] [WordPress Trac] #51484: A side meta box can be prevented from being returned to the side
WordPress Trac
noreply at wordpress.org
Thu Oct 8 13:10:51 UTC 2020
#51484: A side meta box can be prevented from being returned to the side
----------------------------------------+-----------------------------
Reporter: johnbillion | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version:
Severity: normal | Keywords: needs-patch
Focuses: javascript, administration |
----------------------------------------+-----------------------------
Given a site with an `advanced` meta box and a `side` meta box on the post
editing screen, if the side meta box is moved into the advanced position
it's not possible to move it back to the side. Tested both with drag and
drop and by clicking the up/down position arrows introduced in 5.5.
Steps to reproduce:
1. Add the following to a plugin:
{{{
add_action( 'add_meta_boxes', function() : void {
\add_meta_box(
'test-advanced',
'Advanced',
function() {
echo 'Advanced';
},
'post',
'advanced'
);
\add_meta_box(
'test-side',
'Side',
function() {
echo 'Side';
},
'post',
'side'
);
} );
}}}
2. Load the post editing screen and confirm one advanced and one side meta
box are present.
3. Move the side meta box into the advanced section, either by clicking
its "up" arrow or by dragging and dropping it.
4. Reload the post editing screen (required step).
5. Observe that it's not possible to move the side meta box back to the
sidebar. It can't be dragged into the sidebar, and its down button is
disabled.
This does not affect the classic editor, even if you're silly enough to
move all the side meta boxes over into the advanced section.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51484>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list