Make WordPress Core

Ticket #41923: 41923.diff

File 41923.diff, 1.1 KB (added by ndoublehwp, 7 years ago)

Correct inline docs for menu item

  • src/wp-content/themes/twentyseventeen/inc/icon-functions.php

     
    143143/**
    144144 * Add dropdown icon if menu item has children.
    145145 *
    146  * @param  string $title The menu item's title.
    147  * @param  object $item  The current menu item.
    148  * @param  array  $args  An array of wp_nav_menu() arguments.
    149  * @param  int    $depth Depth of menu item. Used for padding.
    150  * @return string $title The menu item's title with dropdown icon.
     146 * @param  string  $title The menu item's title.
     147 * @param  WP_Post $item  The current menu item.
     148 * @param  array   $args  An array of wp_nav_menu() arguments.
     149 * @param  int     $depth Depth of menu item. Used for padding.
     150 * @return string  $title The menu item's title with dropdown icon.
    151151 */
    152152function twentyseventeen_dropdown_icon_to_menu_link( $title, $item, $args, $depth ) {
    153153        if ( 'top' === $args->theme_location ) {