Sort screen options for meta boxes according to the meta box's priority.
Props swissspidy. Fixes #32582. Built from https://develop.svn.wordpress.org/trunk@32707 git-svn-id: http://core.svn.wordpress.org/trunk@32677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ab1c4329b6
commit
6d56231da3
@ -78,7 +78,10 @@ function meta_box_prefs( $screen ) {
|
|||||||
$hidden = get_hidden_meta_boxes($screen);
|
$hidden = get_hidden_meta_boxes($screen);
|
||||||
|
|
||||||
foreach ( array_keys( $wp_meta_boxes[ $screen->id ] ) as $context ) {
|
foreach ( array_keys( $wp_meta_boxes[ $screen->id ] ) as $context ) {
|
||||||
foreach ( array_keys($wp_meta_boxes[$screen->id][$context]) as $priority ) {
|
foreach ( array( 'high', 'core', 'default', 'low' ) as $priority ) {
|
||||||
|
if ( ! isset( $wp_meta_boxes[ $screen->id ][ $context ][ $priority ] ) ) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
foreach ( $wp_meta_boxes[ $screen->id ][ $context ][ $priority ] as $box ) {
|
foreach ( $wp_meta_boxes[ $screen->id ][ $context ][ $priority ] as $box ) {
|
||||||
if ( false == $box || ! $box['title'] )
|
if ( false == $box || ! $box['title'] )
|
||||||
continue;
|
continue;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.3-alpha-32706';
|
$wp_version = '4.3-alpha-32707';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user