Try and tidy up the show_screen logic a little.
Implement a better override of the column header. See #13393. git-svn-id: http://svn.automattic.com/wordpress/trunk@14637 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7d40d97601
commit
e5fa82c152
|
@ -3591,9 +3591,10 @@ function screen_meta($screen) {
|
|||
switch ( $screen->id ) {
|
||||
case 'widgets':
|
||||
$settings = '<p><a id="access-on" href="widgets.php?widgets-access=on">' . __('Enable accessibility mode') . '</a><a id="access-off" href="widgets.php?widgets-access=off">' . __('Disable accessibility mode') . "</a></p>\n";
|
||||
$show_screen = true;
|
||||
break;
|
||||
}
|
||||
if( $settings )
|
||||
if( !empty($settings) )
|
||||
$show_screen = true;
|
||||
?>
|
||||
<div id="screen-meta">
|
||||
|
@ -3608,7 +3609,7 @@ function screen_meta($screen) {
|
|||
</div>
|
||||
<?php endif;
|
||||
if ( ! empty($column_screens) ) : ?>
|
||||
<h5><?php echo _x('Show on screen', 'Columns') ?></h5>
|
||||
<h5><?php echo ( isset( $column_screens['title'] ) ? $column_screens['title'] : _x('Show on screen', 'Columns') ) ?></h5>
|
||||
<div class="metabox-prefs">
|
||||
<?php manage_columns_prefs($screen); ?>
|
||||
<br class="clear" />
|
||||
|
|
Loading…
Reference in New Issue