WordPress.org

Make WordPress Core

Changeset 14637


Ignore:
Timestamp:
05/14/10 16:39:56 (4 years ago)
Author:
westi
Message:

Try and tidy up the show_screen logic a little.
Implement a better override of the column header.
See #13393.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r14636 r14637  
    35923592        case 'widgets': 
    35933593            $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"; 
     3594            $show_screen = true; 
    35943595            break; 
    35953596    } 
    3596     if( $settings ) 
     3597    if( !empty($settings) ) 
    35973598        $show_screen = true; 
    35983599?> 
     
    36093610        <?php endif; 
    36103611        if ( ! empty($column_screens) ) : ?> 
    3611         <h5><?php echo _x('Show on screen', 'Columns') ?></h5> 
     3612        <h5><?php echo ( isset( $column_screens['title'] ) ?  $column_screens['title'] :  _x('Show on screen', 'Columns') ) ?></h5> 
    36123613        <div class="metabox-prefs"> 
    36133614            <?php manage_columns_prefs($screen); ?> 
Note: See TracChangeset for help on using the changeset viewer.