Make WordPress Core

Changeset 31337


Ignore:
Timestamp:
02/05/2015 06:59:22 PM (10 years ago)
Author:
boonebgorges
Message:

Use hash notation for wp_dropdown_pages() argument documentation.

File:
1 edited

Legend:

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

    r31271 r31337  
    944944 * @since 2.1.0
    945945 *
    946  * @param array|string $args Optional. Override default arguments.
     946 * @param array|string $args {
     947 *     Array of function arguments. Optional.
     948 *
     949 *     @type int          $depth                  Optional. Maximum depth. Default 0.
     950 *     @type int          $child_of               Optional. Page ID to retrieve child pages of.
     951 *                                                Default 0.
     952 *     @type int|string   $selected               Optional. Value of the option that should be selected.
     953 *     @type bool|int     $echo                   Optional. Whether to echo or return the generated markup.
     954 *                                                Accepts 0, 1, or their bool equivalents. Default 1.
     955 *     @type string       $name                   Optional. Value for the 'name' attribute of the select element.
     956 *                                                Default: 'page_id'.
     957 *     @type string       $id                     Optional. Value for the 'id' attribute of the select element.
     958 *                                                Defaults to the value of $name.
     959 *     @type string       $show_option_none       Optional. Text to display for showing no pages.
     960 *                                                Default is an empty string (does not display).
     961 *     @type string       $show_option_no_change  Optional. Text to display for "no change" option.
     962 *                                                Default is an empty string (does not display).
     963 *     @type string       $option_none_value      Optional. Value to use when no page is selected.
     964 *                                                Default is an empty string.
     965 * }
    947966 * @return string HTML content, if not displaying.
    948967 */
Note: See TracChangeset for help on using the changeset viewer.