WordPress.org

Make WordPress Core

Changeset 48101


Ignore:
Timestamp:
06/20/2020 07:22:31 AM (18 months ago)
Author:
johnbillion
Message:

Docs: Fix some documentation errors in bundled themes.

See #49572.

Location:
trunk/src/wp-content/themes
Files:
4 edited

Legend:

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

    r47214 r48101  
    3535 * @param  WP_Post $item        Menu item object.
    3636 * @param  int     $depth       Depth of the menu.
    37  * @param  array   $args        wp_nav_menu() arguments.
    38  * @return string  $item_output The menu item output with social icon.
     37 * @param  object  $args        wp_nav_menu() arguments.
     38 * @return string The menu item output with social icon.
    3939 */
    4040function twentynineteen_nav_menu_social_icons( $item_output, $item, $depth, $args ) {
  • trunk/src/wp-content/themes/twentyseventeen/functions.php

    r48067 r48101  
    312312 * @since Twenty Seventeen 1.0
    313313 *
    314  * @param array  $urls           URLs to print for resource hints.
    315  * @param string $relation_type  The relation type the URLs are printed.
    316  * @return array $urls           URLs to print for resource hints.
     314 * @param array  $urls          URLs to print for resource hints.
     315 * @param string $relation_type The relation type the URLs are printed.
     316 * @return array URLs to print for resource hints.
    317317 */
    318318function twentyseventeen_resource_hints( $urls, $relation_type ) {
  • trunk/src/wp-content/themes/twentyseventeen/inc/icon-functions.php

    r48027 r48101  
    121121 * @param  WP_Post $item        Menu item object.
    122122 * @param  int     $depth       Depth of the menu.
    123  * @param  array   $args        wp_nav_menu() arguments.
    124  * @return string  $item_output The menu item output with social icon.
     123 * @param  object  $args        wp_nav_menu() arguments.
     124 * @return string The menu item output with social icon.
    125125 */
    126126function twentyseventeen_nav_menu_social_icons( $item_output, $item, $depth, $args ) {
     
    146146 * @param  string  $title The menu item's title.
    147147 * @param  WP_Post $item  The current menu item.
    148  * @param  array   $args  An array of wp_nav_menu() arguments.
     148 * @param  object  $args  An array of wp_nav_menu() arguments.
    149149 * @param  int     $depth Depth of menu item. Used for padding.
    150  * @return string  $title The menu item's title with dropdown icon.
     150 * @return string The menu item's title with dropdown icon.
    151151 */
    152152function twentyseventeen_dropdown_icon_to_menu_link( $title, $item, $args, $depth ) {
     
    166166 * Returns an array of supported social links (URL and icon name).
    167167 *
    168  * @return array $social_links_icons
     168 * @return array Array of social links icons.
    169169 */
    170170function twentyseventeen_social_links_icons() {
  • trunk/src/wp-content/themes/twentysixteen/functions.php

    r47122 r48101  
    239239 * @since Twenty Sixteen 1.6
    240240 *
    241  * @param array  $urls           URLs to print for resource hints.
    242  * @param string $relation_type  The relation type the URLs are printed.
    243  * @return array $urls           URLs to print for resource hints.
     241 * @param array  $urls          URLs to print for resource hints.
     242 * @param string $relation_type The relation type the URLs are printed.
     243 * @return array URLs to print for resource hints.
    244244 */
    245245function twentysixteen_resource_hints( $urls, $relation_type ) {
Note: See TracChangeset for help on using the changeset viewer.