mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 13:47:02 +01:00
Customizer: Use valid markup for menu items.
Replace `<d(l|t)>` with `<div>` for `.menu-item-bar` and `.menu-item-handle`. see #32724, #32721, #31817. git-svn-id: https://develop.svn.wordpress.org/trunk@32889 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
684d129a99
commit
21d76509c4
@ -1553,8 +1553,8 @@ class WP_Customize_Nav_Menu_Item_Control extends WP_Customize_Control {
|
||||
*/
|
||||
public function content_template() {
|
||||
?>
|
||||
<dl class="menu-item-bar">
|
||||
<dt class="menu-item-handle">
|
||||
<div class="menu-item-bar">
|
||||
<div class="menu-item-handle">
|
||||
<span class="item-type">{{ data.item_type_label }}</span>
|
||||
<span class="item-title">
|
||||
<span class="spinner"></span>
|
||||
@ -1564,8 +1564,8 @@ class WP_Customize_Nav_Menu_Item_Control extends WP_Customize_Control {
|
||||
<button type="button" class="not-a-button item-edit"><span class="screen-reader-text"><?php _e( 'Edit Menu Item' ); ?></span></button>
|
||||
<button type="button" class="not-a-button item-delete submitdelete deletion"><span class="screen-reader-text"><?php _e( 'Remove Menu Item' ); ?></span></button>
|
||||
</span>
|
||||
</dt>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="menu-item-settings" id="menu-item-settings-{{ data.menu_item_id }}">
|
||||
<# if ( 'custom' === data.item_type ) { #>
|
||||
|
@ -564,13 +564,13 @@ final class WP_Customize_Nav_Menus {
|
||||
?>
|
||||
<script type="text/html" id="tmpl-available-menu-item">
|
||||
<div id="menu-item-tpl-{{ data.id }}" class="menu-item-tpl" data-menu-item-id="{{ data.id }}">
|
||||
<dl class="menu-item-bar">
|
||||
<dt class="menu-item-handle">
|
||||
<div class="menu-item-bar">
|
||||
<div class="menu-item-handle">
|
||||
<span class="item-type">{{ data.type_label }}</span>
|
||||
<span class="item-title">{{ data.title || wp.customize.Menus.data.l10n.untitled }}</span>
|
||||
<button type="button" class="not-a-button item-add"><span class="screen-reader-text"><?php _e( 'Add Menu Item' ) ?></span></button>
|
||||
</dt>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user