diff --git a/src/wp-includes/class-walker-page-dropdown.php b/src/wp-includes/class-walker-page-dropdown.php index 9af70d0c1b..be8382fdd8 100644 --- a/src/wp-includes/class-walker-page-dropdown.php +++ b/src/wp-includes/class-walker-page-dropdown.php @@ -16,24 +16,31 @@ */ class Walker_PageDropdown extends Walker { /** - * @see Walker::$tree_type + * Walker tree type. + * * @since 2.1.0 + * @see Walker::$tree_type * @var string */ public $tree_type = 'page'; /** - * @see Walker::$db_fields + * Database fields. + * * @since 2.1.0 + * @see Walker::$db_fields * @todo Decouple this * @var array */ public $db_fields = array ('parent' => 'post_parent', 'id' => 'ID'); /** - * @see Walker::start_el() + * Starts the element output. + * * @since 2.1.0 * + * @see Walker::start_el() + * * @param string $output Passed by reference. Used to append additional content. * @param object $page Page data object. * @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. */ $title = apply_filters( 'list_pages', $title, $page ); + $output .= $pad . esc_html( $title ); $output .= "\n"; }