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.
Built from https://develop.svn.wordpress.org/trunk@32889


git-svn-id: http://core.svn.wordpress.org/trunk@32860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2015-06-20 18:47:27 +00:00
parent 1d953f8258
commit 2e8245ba0e
3 changed files with 9 additions and 9 deletions

View File

@ -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 ) { #>

View File

@ -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>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-alpha-32888';
$wp_version = '4.3-alpha-32889';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.