Make WordPress Core

Ticket #47056: 47056-3.diff

File 47056-3.diff, 1.2 KB (added by birgire, 7 years ago)
  • src/wp-admin/includes/class-walker-nav-menu-edit.php

    diff --git src/wp-admin/includes/class-walker-nav-menu-edit.php src/wp-admin/includes/class-walker-nav-menu-edit.php
    index eb940af..aef9397 100644
    class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { 
    205205                                        </label>
    206206                                </p>
    207207
     208                                <?php
     209                                /**
     210                                 * Fires just before the move buttons of a nav menu item in the menu editor.
     211                                 *
     212                                 * @since 5.3.0
     213                                 *
     214                                 * @param int    $item_id The ID of the nav menu item.
     215                                 * @param object $item    The data object of the nav menu item.
     216                                 * @param int    $depth   The depth of the nav menu item.
     217                                 * @param array  $args    The nav menu item's arguments.
     218                                 * @param int    $id      The nav menu ID.
     219                                 */
     220                                do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args, $id );
     221                                ?>
     222
    208223                                <fieldset class="field-move hide-if-no-js description description-wide">
    209224                                        <span class="field-move-visual-label" aria-hidden="true"><?php _e( 'Move' ); ?></span>
    210225                                        <button type="button" class="button-link menus-move menus-move-up" data-dir="up"><?php _e( 'Up one' ); ?></button>