Make WordPress Core

Changeset 37053


Ignore:
Timestamp:
03/22/2016 05:50:35 PM (8 years ago)
Author:
DrewAPicture
Message:

Docs: Improve inline documentation for properties and methods in Walker_PageDropdown.

Props raimy for the initial patch.
See #36300.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-walker-page-dropdown.php

    r35961 r37053  
    1616 */
    1717class Walker_PageDropdown extends Walker {
     18
    1819    /**
    19      * Walker tree type.
     20     * What the class handles.
    2021     *
    2122     * @since 2.1.0
     23     * @access public
     24     * @var string
     25     *
    2226     * @see Walker::$tree_type
    23      * @var string
    2427     */
    2528    public $tree_type = 'page';
    2629
    2730    /**
    28      * Database fields.
     31     * Database fields to use.
    2932     *
    3033     * @since 2.1.0
     34     * @access public
     35     * @var array
     36     *
    3137     * @see Walker::$db_fields
    3238     * @todo Decouple this
    33      * @var array
    3439     */
    35     public $db_fields = array ('parent' => 'post_parent', 'id' => 'ID');
     40    public $db_fields = array( 'parent' => 'post_parent', 'id' => 'ID' );
    3641
    3742    /**
     
    3944     *
    4045     * @since 2.1.0
     46     * @access public
    4147     *
    4248     * @see Walker::start_el()
     
    4854     * @param array  $args   Optional. Uses 'selected' argument for selected page to set selected HTML
    4955     *                       attribute for option element. Uses 'value_field' argument to fill "value"
    50      *                       attribute. See {@see wp_dropdown_pages()}. Default empty array.
     56     *                       attribute. See wp_dropdown_pages(). Default empty array.
    5157     * @param int    $id     Optional. ID of the current page. Default 0 (unused).
    5258     */
Note: See TracChangeset for help on using the changeset viewer.