Docs: The page object type in use in `Walker_PageDropdown` is `WP_Post`.
See #36300. Built from https://develop.svn.wordpress.org/trunk@37054 git-svn-id: http://core.svn.wordpress.org/trunk@37021 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
63582d4ecb
commit
3cdef41502
|
@ -47,14 +47,14 @@ class Walker_PageDropdown extends Walker {
|
||||||
*
|
*
|
||||||
* @see Walker::start_el()
|
* @see Walker::start_el()
|
||||||
*
|
*
|
||||||
* @param string $output Passed by reference. Used to append additional content.
|
* @param string $output Used to append additional content. Passed by reference.
|
||||||
* @param object $page Page data object.
|
* @param WP_Post $page Page data object.
|
||||||
* @param int $depth Optional. Depth of page in reference to parent pages. Used for padding.
|
* @param int $depth Optional. Depth of page in reference to parent pages. Used for padding.
|
||||||
* Default 0.
|
* Default 0.
|
||||||
* @param array $args Optional. Uses 'selected' argument for selected page to set selected HTML
|
* @param array $args Optional. Uses 'selected' argument for selected page to set selected HTML
|
||||||
* attribute for option element. Uses 'value_field' argument to fill "value"
|
* attribute for option element. Uses 'value_field' argument to fill "value"
|
||||||
* attribute. See wp_dropdown_pages(). Default empty array.
|
* attribute. See wp_dropdown_pages(). Default empty array.
|
||||||
* @param int $id Optional. ID of the current page. Default 0 (unused).
|
* @param int $id Optional. ID of the current page. Default 0 (unused).
|
||||||
*/
|
*/
|
||||||
public function start_el( &$output, $page, $depth = 0, $args = array(), $id = 0 ) {
|
public function start_el( &$output, $page, $depth = 0, $args = array(), $id = 0 ) {
|
||||||
$pad = str_repeat(' ', $depth * 3);
|
$pad = str_repeat(' ', $depth * 3);
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.5-beta4-37053';
|
$wp_version = '4.5-beta4-37054';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue