Remove one-time loop and redundant isset() checks.
props ipm-frommen. fixes #30093. Built from https://develop.svn.wordpress.org/trunk@30022 git-svn-id: http://core.svn.wordpress.org/trunk@30022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d4f1296098
commit
1bd594f033
|
@ -1111,13 +1111,11 @@ function do_accordion_sections( $screen, $context, $object ) {
|
||||||
<?php
|
<?php
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$first_open = false;
|
$first_open = false;
|
||||||
do {
|
|
||||||
if ( ! isset( $wp_meta_boxes ) || ! isset( $wp_meta_boxes[$page] ) || ! isset( $wp_meta_boxes[$page][$context] ) )
|
|
||||||
break;
|
|
||||||
|
|
||||||
|
if ( isset( $wp_meta_boxes[ $page ][ $context ] ) ) {
|
||||||
foreach ( array( 'high', 'core', 'default', 'low' ) as $priority ) {
|
foreach ( array( 'high', 'core', 'default', 'low' ) as $priority ) {
|
||||||
if ( isset( $wp_meta_boxes[$page][$context][$priority] ) ) {
|
if ( isset( $wp_meta_boxes[ $page ][ $context ][ $priority ] ) ) {
|
||||||
foreach ( $wp_meta_boxes[$page][$context][$priority] as $box ) {
|
foreach ( $wp_meta_boxes[ $page ][ $context ][ $priority ] as $box ) {
|
||||||
if ( false == $box || ! $box['title'] )
|
if ( false == $box || ! $box['title'] )
|
||||||
continue;
|
continue;
|
||||||
$i++;
|
$i++;
|
||||||
|
@ -1144,7 +1142,7 @@ function do_accordion_sections( $screen, $context, $object ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while(0);
|
}
|
||||||
?>
|
?>
|
||||||
</ul><!-- .outer-border -->
|
</ul><!-- .outer-border -->
|
||||||
</div><!-- .accordion-container -->
|
</div><!-- .accordion-container -->
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.1-alpha-30021';
|
$wp_version = '4.1-alpha-30022';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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