Customize: Fix toggle of title attribute field visibility on nav menus admin page.
Improves alignment with nav menus in the Customizer, fixing regression introduced in [36908]. See #35273. Props sidati, westonruter. Fixes #36353. git-svn-id: https://develop.svn.wordpress.org/trunk@37153 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0bc533e10b
commit
cfd07d69cf
@ -271,7 +271,7 @@
|
||||
}
|
||||
|
||||
#accordion-panel-nav_menus .field-link-target,
|
||||
#accordion-panel-nav_menus .field-attr-title,
|
||||
#accordion-panel-nav_menus .field-title-attribute,
|
||||
#accordion-panel-nav_menus .field-css-classes,
|
||||
#accordion-panel-nav_menus .field-xfn,
|
||||
#accordion-panel-nav_menus .field-description {
|
||||
@ -279,7 +279,7 @@
|
||||
}
|
||||
|
||||
#accordion-panel-nav_menus.field-link-target-active .field-link-target,
|
||||
#accordion-panel-nav_menus.field-attr-title-active .field-attr-title,
|
||||
#accordion-panel-nav_menus.field-title-attribute-active .field-title-attribute,
|
||||
#accordion-panel-nav_menus.field-css-classes-active .field-css-classes,
|
||||
#accordion-panel-nav_menus.field-xfn-active .field-xfn,
|
||||
#accordion-panel-nav_menus.field-description-active .field-description {
|
||||
|
@ -165,7 +165,7 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
|
||||
<input type="text" id="edit-menu-item-title-<?php echo $item_id; ?>" class="widefat edit-menu-item-title" name="menu-item-title[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->title ); ?>" />
|
||||
</label>
|
||||
</p>
|
||||
<p class="field-title-attribute description description-wide">
|
||||
<p class="field-title-attribute field-attr-title description description-wide">
|
||||
<label for="edit-menu-item-attr-title-<?php echo $item_id; ?>">
|
||||
<?php _e( 'Title Attribute' ); ?><br />
|
||||
<input type="text" id="edit-menu-item-attr-title-<?php echo $item_id; ?>" class="widefat edit-menu-item-attr-title" name="menu-item-attr-title[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->post_excerpt ); ?>" />
|
||||
|
@ -944,7 +944,7 @@ function wp_nav_menu_manage_columns() {
|
||||
'_title' => __( 'Show advanced menu properties' ),
|
||||
'cb' => '<input type="checkbox" />',
|
||||
'link-target' => __( 'Link Target' ),
|
||||
'attr-title' => __( 'Title Attribute' ),
|
||||
'title-attribute' => __( 'Title Attribute' ),
|
||||
'css-classes' => __( 'CSS Classes' ),
|
||||
'xfn' => __( 'Link Relationship (XFN)' ),
|
||||
'description' => __( 'Description' ),
|
||||
|
@ -105,7 +105,7 @@ class WP_Customize_Nav_Menu_Item_Control extends WP_Customize_Control {
|
||||
<?php _e( 'Open link in a new tab' ); ?>
|
||||
</label>
|
||||
</p>
|
||||
<p class="field-attr-title description description-thin">
|
||||
<p class="field-title-attribute field-attr-title description description-thin">
|
||||
<label for="edit-menu-item-attr-title-{{ data.menu_item_id }}">
|
||||
<?php _e( 'Title Attribute' ); ?><br />
|
||||
<input type="text" id="edit-menu-item-attr-title-{{ data.menu_item_id }}" class="widefat edit-menu-item-attr-title" name="menu-item-attr-title" />
|
||||
|
Loading…
Reference in New Issue
Block a user