WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/17/2016 09:49:49 PM (5 years ago)
Author:
westonruter
Message:

Customize: Ensure nav menu items lacking a label use the title from the original object.

Use original title as placeholder for label and in control title. Prevent original title from overriding empty label in initial setting values.

Fixes #38015.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-nav-menus.php

    r38479 r38618  
    588588
    589589                $value = (array) $item;
     590                if ( empty( $value['post_title'] ) ) {
     591                    $value['title'] = '';
     592                }
     593
    590594                $value['nav_menu_term_id'] = $menu_id;
    591595                $this->manager->add_setting( new WP_Customize_Nav_Menu_Item_Setting( $this->manager, $menu_item_setting_id, array(
Note: See TracChangeset for help on using the changeset viewer.