Make WordPress Core


Ignore:
Timestamp:
11/30/2016 11:41:50 PM (10 years ago)
Author:
westonruter
Message:

Customize: Fix handling of the nav menu item labels (titles) that match defaults (original titles) and fix the display of item type labels.

  • Show default labels for nav menu item as placeholders in a control's label field instead of showing blank.
  • Store empty string as label instead of copying default labels.
  • Prevent labels for post type archive items from being dropped in preview.
  • Also ensure that the item type label is displayed on nav menu item controls for settings that are loaded from an existing changeset.

Amends [38618].
See #38015.
Fixes #38955 for 4.7 branch.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/src/wp-content/themes/twentyseventeen/template-parts/header/header-image.php

    r39394 r39395  
    1212<div class="custom-header">
    1313
    14         <?php if ( has_custom_header() ) : ?>
    15                 <div class="custom-header-image">
    16                         <?php the_custom_header_markup(); ?>
    17                 </div>
    18         <?php endif; ?>
     14        <div class="custom-header-image">
     15                <?php the_custom_header_markup(); ?>
     16        </div>
    1917
    2018        <?php get_template_part( 'template-parts/header/site', 'branding' ); ?>
Note: See TracChangeset for help on using the changeset viewer.