WordPress.org

Make WordPress Core

Changeset 14675


Ignore:
Timestamp:
05/15/2010 08:57:17 PM (8 years ago)
Author:
westi
Message:

Fix the column headers title override to use a special name rather than one we use elsewhere.

Location:
trunk/wp-admin/includes
Files:
2 edited

Legend:

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

    r14671 r14675  
    10051005function wp_nav_menu_manage_columns() {
    10061006    return array(
    1007         'title' => __('Show advanced menu properties'),
     1007        '_title' => __('Show advanced menu properties'),
    10081008        'cb' => '<input type="checkbox" />',
    10091009        'link-target' => __('Link Target'),
  • trunk/wp-admin/includes/template.php

    r14673 r14675  
    32463246
    32473247    foreach ( $columns as $column => $title ) {
    3248         // Can't hide these
    3249         if ( 'cb' == $column || 'title' == $column || 'name' == $column || 'username' == $column || 'media' == $column || 'comment' == $column )
     3248        // Can't hide these or they are special
     3249        if ( '_title' == $column || 'cb' == $column || 'title' == $column || 'name' == $column || 'username' == $column || 'media' == $column || 'comment' == $column )
    32503250            continue;
    32513251        if ( empty($title) )
     
    36103610        <?php endif;
    36113611        if ( ! empty($column_screens) ) : ?>
    3612         <h5><?php echo ( isset( $column_screens['title'] ) ?  $column_screens['title'] :  _x('Show on screen', 'Columns') ) ?></h5>
     3612        <h5><?php echo ( isset( $column_screens['_title'] ) ?  $column_screens['_title'] :  _x('Show on screen', 'Columns') ) ?></h5>
    36133613        <div class="metabox-prefs">
    36143614            <?php manage_columns_prefs($screen); ?>
Note: See TracChangeset for help on using the changeset viewer.