Make WordPress Core

Changeset 41548


Ignore:
Timestamp:
09/20/2017 06:14:13 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Twenty Seventeen: Document the type of $item argument in twentyseventeen_dropdown_icon_to_menu_link() more accurately.

Props ndoublehwp.
Fixes #41923.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/inc/icon-functions.php

    r39733 r41548  
    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 ) {
Note: See TracChangeset for help on using the changeset viewer.