Docs: Add missing property and method summaries in DocBlocks for Walker_PageDropdown
.
See #32246. git-svn-id: https://develop.svn.wordpress.org/trunk@35961 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d727e3b516
commit
7b51c13f17
@ -16,24 +16,31 @@
|
|||||||
*/
|
*/
|
||||||
class Walker_PageDropdown extends Walker {
|
class Walker_PageDropdown extends Walker {
|
||||||
/**
|
/**
|
||||||
* @see Walker::$tree_type
|
* Walker tree type.
|
||||||
|
*
|
||||||
* @since 2.1.0
|
* @since 2.1.0
|
||||||
|
* @see Walker::$tree_type
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public $tree_type = 'page';
|
public $tree_type = 'page';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see Walker::$db_fields
|
* Database fields.
|
||||||
|
*
|
||||||
* @since 2.1.0
|
* @since 2.1.0
|
||||||
|
* @see Walker::$db_fields
|
||||||
* @todo Decouple this
|
* @todo Decouple this
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
public $db_fields = array ('parent' => 'post_parent', 'id' => 'ID');
|
public $db_fields = array ('parent' => 'post_parent', 'id' => 'ID');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see Walker::start_el()
|
* Starts the element output.
|
||||||
|
*
|
||||||
* @since 2.1.0
|
* @since 2.1.0
|
||||||
*
|
*
|
||||||
|
* @see Walker::start_el()
|
||||||
|
*
|
||||||
* @param string $output Passed by reference. Used to append additional content.
|
* @param string $output Passed by reference. Used to append additional content.
|
||||||
* @param object $page Page data object.
|
* @param object $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.
|
||||||
@ -70,6 +77,7 @@ class Walker_PageDropdown extends Walker {
|
|||||||
* @param object $page Page data object.
|
* @param object $page Page data object.
|
||||||
*/
|
*/
|
||||||
$title = apply_filters( 'list_pages', $title, $page );
|
$title = apply_filters( 'list_pages', $title, $page );
|
||||||
|
|
||||||
$output .= $pad . esc_html( $title );
|
$output .= $pad . esc_html( $title );
|
||||||
$output .= "</option>\n";
|
$output .= "</option>\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user