From 19ba9e37150f4f1387ea5b038fe7b6984d75fa9d Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Fri, 6 Feb 2015 08:51:23 +0000 Subject: [PATCH] Add documentation for the `$value_field` argument added to `wp_dropdown_pages()` in [31338]. See #12494. Built from https://develop.svn.wordpress.org/trunk@31355 git-svn-id: http://core.svn.wordpress.org/trunk@31336 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 3 +++ wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index e91358ec6a..c7ca2b192a 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -942,6 +942,7 @@ function the_meta() { * Retrieve or display list of pages as a dropdown (select list). * * @since 2.1.0 + * @since 4.2.0 The `$value_field` argument was added. * * @param array|string $args { * Array of function arguments. Optional. @@ -962,6 +963,8 @@ function the_meta() { * 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'. * } * @return string HTML content, if not displaying. */ diff --git a/wp-includes/version.php b/wp-includes/version.php index ba375221c7..788d2b8b0a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31354'; +$wp_version = '4.2-alpha-31355'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.