WordPress.org

Make WordPress Core

Changeset 42721


Ignore:
Timestamp:
02/19/2018 10:23:58 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add a reference to get_pages() arguments in wp_dropdown_pages() and wp_list_pages(), as they both use the function internally.

Props birgire.
Fixes #43355.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-template.php

    r42710 r42721  
    10561056
    10571057/**
    1058  * Display list of post custom fields.
     1058 * Display a list of post custom fields.
    10591059 *
    10601060 * @since 1.2.0
     
    11041104
    11051105/**
    1106  * Retrieve or display list of pages as a dropdown (select list).
     1106 * Retrieve or display a list of pages as a dropdown (select list).
    11071107 *
    11081108 * @since 2.1.0
     
    11101110 * @since 4.3.0 The `$class` argument was added.
    11111111 *
     1112 * @see get_pages()
     1113 *
    11121114 * @param array|string $args {
    1113  *     Optional. Array or string of arguments to generate a pages drop-down element.
     1115 *     Optional. Array or string of arguments to generate a page dropdown. See `get_pages()` for additional arguments.
    11141116 *
    11151117 *     @type int          $depth                 Maximum depth. Default 0.
     
    11911193
    11921194/**
    1193  * Retrieve or display list of pages (or hierarchical post type items) in list (li) format.
     1195 * Retrieve or display a list of pages (or hierarchical post type items) in list (li) format.
    11941196 *
    11951197 * @since 1.5.0
     
    12011203 *
    12021204 * @param array|string $args {
    1203  *     Array or string of arguments. Optional.
     1205 *     Optional. Array or string of arguments to generate a list of pages. See `get_pages()` for additional arguments.
    12041206 *
    12051207 *     @type int          $child_of     Display only the sub-pages of a single page by ID. Default 0 (all pages).
     
    13291331 *
    13301332 * @param array|string $args {
    1331  *     Optional. Arguments to generate a page menu. See wp_list_pages() for additional arguments.
     1333 *     Optional. Array or string of arguments to generate a page menu. See `wp_list_pages()` for additional arguments.
    13321334 *
    13331335 *     @type string          $sort_column  How to sort the list of pages. Accepts post column names.
     
    13441346 *     @type string          $before       The HTML or text to prepend to the menu. Default is '<ul>'.
    13451347 *     @type string          $after        The HTML or text to append to the menu. Default is '</ul>'.
    1346  *     @type string          $item_spacing Whether to preserve whitespace within the menu's HTML. Accepts 'preserve' or 'discard'. Default 'discard'.
     1348 *     @type string          $item_spacing Whether to preserve whitespace within the menu's HTML. Accepts 'preserve'
     1349 *                                         or 'discard'. Default 'discard'.
    13471350 *     @type Walker          $walker       Walker instance to use for listing pages. Default empty (Walker_Page).
    13481351 * }
     
    18621865
    18631866/**
    1864  * Display list of a post's revisions.
     1867 * Display a list of a post's revisions.
    18651868 *
    18661869 * Can output either a UL with edit links or a TABLE with diff interface, and
Note: See TracChangeset for help on using the changeset viewer.