From eacd0d863d6de24cb7e9157a179c20026ebae5f9 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 22 Mar 2016 17:50:35 +0000 Subject: [PATCH] Docs: Improve inline documentation for properties and methods in `Walker_PageDropdown`. Props raimy for the initial patch. See #36300. git-svn-id: https://develop.svn.wordpress.org/trunk@37053 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-walker-page-dropdown.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/wp-includes/class-walker-page-dropdown.php b/src/wp-includes/class-walker-page-dropdown.php index be8382fdd8..5954be9093 100644 --- a/src/wp-includes/class-walker-page-dropdown.php +++ b/src/wp-includes/class-walker-page-dropdown.php @@ -15,29 +15,35 @@ * @see Walker */ class Walker_PageDropdown extends Walker { + /** - * Walker tree type. + * What the class handles. * * @since 2.1.0 - * @see Walker::$tree_type + * @access public * @var string + * + * @see Walker::$tree_type */ public $tree_type = 'page'; /** - * Database fields. + * Database fields to use. * * @since 2.1.0 + * @access public + * @var array + * * @see Walker::$db_fields * @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. * * @since 2.1.0 + * @access public * * @see Walker::start_el() * @@ -47,7 +53,7 @@ class Walker_PageDropdown extends Walker { * Default 0. * @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. 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). */ public function start_el( &$output, $page, $depth = 0, $args = array(), $id = 0 ) {