Make WordPress Core

Changeset 32691


Ignore:
Timestamp:
06/04/2015 04:37:02 AM (11 years ago)
Author:
helen
Message:

Nav menus: hide the title attribute field by default for new users and installs.

It is still available in screen options. This also gives the "Navigation Label", a crucial field, the room it really deserves.

props paulwilde.
fixes #32218.

File:
1 edited

Legend:

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

    r32655 r32691  
    148148                                        </p>
    149149                                <?php endif; ?>
    150                                 <p class="description description-thin">
     150                                <p class="description description-wide">
    151151                                        <label for="edit-menu-item-title-<?php echo $item_id; ?>">
    152152                                                <?php _e( 'Navigation Label' ); ?><br />
     
    154154                                        </label>
    155155                                </p>
    156                                 <p class="description description-thin">
     156                                <p class="field-title-attribute description description-wide">
    157157                                        <label for="edit-menu-item-attr-title-<?php echo $item_id; ?>">
    158158                                                <?php _e( 'Title Attribute' ); ?><br />
     
    463463                $user = wp_get_current_user();
    464464                update_user_option($user->ID, 'managenav-menuscolumnshidden',
    465                         array( 0 => 'link-target', 1 => 'css-classes', 2 => 'xfn', 3 => 'description', ),
     465                        array( 0 => 'link-target', 1 => 'css-classes', 2 => 'xfn', 3 => 'description', 4 => 'title-attribute', ),
    466466                        true);
    467467        }
     
    12341234                '_title' => __('Show advanced menu properties'),
    12351235                'cb' => '<input type="checkbox" />',
     1236                'title-attribute' => __('Title Attribute'),
    12361237                'link-target' => __('Link Target'),
    12371238                'css-classes' => __('CSS Classes'),
Note: See TracChangeset for help on using the changeset viewer.