Make WordPress Core

Changeset 31355


Ignore:
Timestamp:
02/06/2015 08:50:20 AM (10 years ago)
Author:
DrewAPicture
Message:

Add documentation for the $value_field argument added to wp_dropdown_pages() in [31338].

See #12494.

File:
1 edited

Legend:

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

    r31338 r31355  
    943943 *
    944944 * @since 2.1.0
     945 * @since 4.2.0 The `$value_field` argument was added.
    945946 *
    946947 * @param array|string $args {
     
    963964 *     @type string       $option_none_value      Optional. Value to use when no page is selected.
    964965 *                                                Default is an empty string.
     966 *     @type string       $value_field            Post field used to populate the 'value' attribute of the option
     967 *                                                elements. Accepts any valid post field. Default 'ID'.
    965968 * }
    966969 * @return string HTML content, if not displaying.
Note: See TracChangeset for help on using the changeset viewer.