Make WordPress Core

Changeset 37054


Ignore:
Timestamp:
03/22/2016 05:52:53 PM (10 years ago)
Author:
DrewAPicture
Message:

Docs: The page object type in use in Walker_PageDropdown is WP_Post.

See #36300.

File:
1 edited

Legend:

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

    r37053 r37054  
    4848         * @see Walker::start_el()
    4949         *
    50          * @param string $output Passed by reference. Used to append additional content.
    51          * @param object $page   Page data object.
    52          * @param int    $depth  Optional. Depth of page in reference to parent pages. Used for padding.
    53          *                       Default 0.
    54          * @param array  $args   Optional. Uses 'selected' argument for selected page to set selected HTML
    55          *                       attribute for option element. Uses 'value_field' argument to fill "value"
    56          *                       attribute. See wp_dropdown_pages(). Default empty array.
    57          * @param int    $id     Optional. ID of the current page. Default 0 (unused).
     50         * @param string  $output Used to append additional content. Passed by reference.
     51         * @param WP_Post $page   Page data object.
     52         * @param int     $depth  Optional. Depth of page in reference to parent pages. Used for padding.
     53         *                        Default 0.
     54         * @param array   $args   Optional. Uses 'selected' argument for selected page to set selected HTML
     55         *                        attribute for option element. Uses 'value_field' argument to fill "value"
     56         *                        attribute. See wp_dropdown_pages(). Default empty array.
     57         * @param int     $id     Optional. ID of the current page. Default 0 (unused).
    5858         */
    5959        public function start_el( &$output, $page, $depth = 0, $args = array(), $id = 0 ) {
Note: See TracChangeset for help on using the changeset viewer.