mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
Adjust the DocBlock for wp_dropdown_pages()
to mark the entire $args
parameter array as optional instead of each individual argument.
See #12494. Built from https://develop.svn.wordpress.org/trunk@31356 git-svn-id: http://core.svn.wordpress.org/trunk@31337 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
19ba9e3715
commit
15eaa179df
@ -945,26 +945,22 @@ function the_meta() {
|
||||
* @since 4.2.0 The `$value_field` argument was added.
|
||||
*
|
||||
* @param array|string $args {
|
||||
* Array of function arguments. Optional.
|
||||
* Optional. Array or string of arguments to generate a pages drop-down element.
|
||||
*
|
||||
* @type int $depth Optional. Maximum depth. Default 0.
|
||||
* @type int $child_of Optional. Page ID to retrieve child pages of.
|
||||
* Default 0.
|
||||
* @type int|string $selected Optional. Value of the option that should be selected.
|
||||
* @type bool|int $echo Optional. Whether to echo or return the generated markup.
|
||||
* Accepts 0, 1, or their bool equivalents. Default 1.
|
||||
* @type string $name Optional. Value for the 'name' attribute of the select element.
|
||||
* Default: 'page_id'.
|
||||
* @type string $id Optional. Value for the 'id' attribute of the select element.
|
||||
* Defaults to the value of $name.
|
||||
* @type string $show_option_none Optional. Text to display for showing no pages.
|
||||
* Default is an empty string (does not display).
|
||||
* @type string $show_option_no_change Optional. Text to display for "no change" option.
|
||||
* Default is an empty string (does not display).
|
||||
* @type string $option_none_value Optional. Value to use when no page is selected.
|
||||
* Default is an empty string.
|
||||
* @type string $value_field Post field used to populate the 'value' attribute of the option
|
||||
* elements. Accepts any valid post field. Default 'ID'.
|
||||
* @type int $depth Maximum depth. Default 0.
|
||||
* @type int $child_of Page ID to retrieve child pages of. Default 0.
|
||||
* @type int|string $selected Value of the option that should be selected. Default 0.
|
||||
* @type bool|int $echo Whether to echo or return the generated markup. Accepts 0, 1,
|
||||
* or their bool equivalents. Default 1.
|
||||
* @type string $name Value for the 'name' attribute of the select element.
|
||||
* Default 'page_id'.
|
||||
* @type string $id Value for the 'id' attribute of the select element.
|
||||
* Defaults to the value of `$name`.
|
||||
* @type string $show_option_none Text to display for showing no pages. Default empty (does not display).
|
||||
* @type string $show_option_no_change Text to display for "no change" option. Default empty (does not display).
|
||||
* @type string $option_none_value Value to use when no page is selected. Default empty.
|
||||
* @type string $value_field Post field used to populate the 'value' attribute of the option
|
||||
* elements. Accepts any valid post field. Default 'ID'.
|
||||
* }
|
||||
* @return string HTML content, if not displaying.
|
||||
*/
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.2-alpha-31355';
|
||||
$wp_version = '4.2-alpha-31356';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user