WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/09/2016 09:40:27 PM (4 years ago)
Author:
westonruter
Message:

Customize: Fix persistence of toggles for displayed nav menu item properties.

  • Eliminates need to click more than one checkbox to have preferences saved.
  • Adds debouncing to saving user-selected menu item properties.
  • Also removes discrepancies between available nav menu item properties on admin page vs Customizer.

Fixes #35273.
Props afercia, westonruter.

File:
1 edited

Legend:

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

    r36422 r36908  
    938938 * @since 3.0.0
    939939 *
    940  * @return string|WP_Error $output The menu formatted to edit or error object on failure.
     940 * @return array Columns.
    941941 */
    942942function wp_nav_menu_manage_columns() {
    943943    return array(
    944         '_title' => __('Show advanced menu properties'),
    945         'cb' => '<input type="checkbox" />',
    946         'title-attribute' => __('Title Attribute'),
    947         'link-target' => __('Link Target'),
    948         'css-classes' => __('CSS Classes'),
    949         'xfn' => __('Link Relationship (XFN)'),
    950         'description' => __('Description'),
     944        '_title'      => __( 'Show advanced menu properties' ),
     945        'cb'          => '<input type="checkbox" />',
     946        'link-target' => __( 'Link Target' ),
     947        'attr-title'  => __( 'Title Attribute' ),
     948        'css-classes' => __( 'CSS Classes' ),
     949        'xfn'         => __( 'Link Relationship (XFN)' ),
     950        'description' => __( 'Description' ),
    951951    );
    952952}
Note: See TracChangeset for help on using the changeset viewer.