Make WordPress Core

Changeset 32879


Ignore:
Timestamp:
06/19/2015 10:22:00 PM (9 years ago)
Author:
wonderboymusic
Message:

Use valid markup in Walker_Nav_Menu_Edit::start_el() - replace <d(l|t)> with <div> for .menu-item-bar and .menu-item-handle.

Props sagarjadhav.
Fixes #31817.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/nav-menus.css

    r32051 r32879  
    518518
    519519/* Sortables */
    520 li.menu-item.ui-sortable-helper dl {
     520li.menu-item.ui-sortable-helper .menu-item-bar {
    521521    margin-top: 0;
    522522}
    523523
    524 li.menu-item.ui-sortable-helper .menu-item-transport dl {
     524li.menu-item.ui-sortable-helper .menu-item-transport .menu-item-bar {
    525525    margin-top: 13px;
    526526}
  • trunk/src/wp-admin/includes/nav-menu.php

    r32842 r32879  
    100100        ?>
    101101        <li id="menu-item-<?php echo $item_id; ?>" class="<?php echo implode(' ', $classes ); ?>">
    102             <dl class="menu-item-bar">
    103                 <dt class="menu-item-handle">
     102            <div class="menu-item-bar">
     103                <div class="menu-item-handle">
    104104                    <span class="item-title"><span class="menu-item-title"><?php echo esc_html( $title ); ?></span> <span class="is-submenu" <?php echo $submenu_text; ?>><?php _e( 'sub item' ); ?></span></span>
    105105                    <span class="item-controls">
     
    136136                        ?>"><?php _e( 'Edit Menu Item' ); ?></a>
    137137                    </span>
    138                 </dt>
    139             </dl>
     138                </div>
     139            </div>
    140140
    141141            <div class="menu-item-settings" id="menu-item-settings-<?php echo $item_id; ?>">
Note: See TracChangeset for help on using the changeset viewer.