Docs: Improve inline documentation for properties and methods in `Walker_PageDropdown`.
Props raimy for the initial patch. See #36300. Built from https://develop.svn.wordpress.org/trunk@37053 git-svn-id: http://core.svn.wordpress.org/trunk@37020 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0fb5b43307
commit
63582d4ecb
|
@ -15,29 +15,35 @@
|
||||||
* @see Walker
|
* @see Walker
|
||||||
*/
|
*/
|
||||||
class Walker_PageDropdown extends Walker {
|
class Walker_PageDropdown extends Walker {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Walker tree type.
|
* What the class handles.
|
||||||
*
|
*
|
||||||
* @since 2.1.0
|
* @since 2.1.0
|
||||||
* @see Walker::$tree_type
|
* @access public
|
||||||
* @var string
|
* @var string
|
||||||
|
*
|
||||||
|
* @see Walker::$tree_type
|
||||||
*/
|
*/
|
||||||
public $tree_type = 'page';
|
public $tree_type = 'page';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Database fields.
|
* Database fields to use.
|
||||||
*
|
*
|
||||||
* @since 2.1.0
|
* @since 2.1.0
|
||||||
|
* @access public
|
||||||
|
* @var array
|
||||||
|
*
|
||||||
* @see Walker::$db_fields
|
* @see Walker::$db_fields
|
||||||
* @todo Decouple this
|
* @todo Decouple this
|
||||||
* @var array
|
|
||||||
*/
|
*/
|
||||||
public $db_fields = array ('parent' => 'post_parent', 'id' => 'ID');
|
public $db_fields = array( 'parent' => 'post_parent', 'id' => 'ID' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Starts the element output.
|
* Starts the element output.
|
||||||
*
|
*
|
||||||
* @since 2.1.0
|
* @since 2.1.0
|
||||||
|
* @access public
|
||||||
*
|
*
|
||||||
* @see Walker::start_el()
|
* @see Walker::start_el()
|
||||||
*
|
*
|
||||||
|
@ -47,7 +53,7 @@ class Walker_PageDropdown extends Walker {
|
||||||
* 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 {@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 ) {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.5-beta4-37052';
|
$wp_version = '4.5-beta4-37053';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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