From fc9fa085924270bee660a253bd53686dc6e17372 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 14 Dec 2015 17:54:27 +0000 Subject: [PATCH] Docs: Add a missing description for the `$id` parameter in the DocBlock for `Walker_PageDropdown::start_el()`, which is implemented by `Walker` but unused by the subclass method. Also marks the other optional parameters as such. See #32246. Built from https://develop.svn.wordpress.org/trunk@35928 git-svn-id: http://core.svn.wordpress.org/trunk@35892 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-walker-page-dropdown.php | 10 ++++++---- wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/wp-includes/class-walker-page-dropdown.php b/wp-includes/class-walker-page-dropdown.php index e9196dd4f5..9af70d0c1b 100644 --- a/wp-includes/class-walker-page-dropdown.php +++ b/wp-includes/class-walker-page-dropdown.php @@ -36,10 +36,12 @@ class Walker_PageDropdown extends Walker { * * @param string $output Passed by reference. Used to append additional content. * @param object $page Page data object. - * @param int $depth Depth of page in reference to parent pages. Used for padding. - * @param array $args 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()}. - * @param int $id + * @param int $depth Optional. Depth of page in reference to parent pages. Used for padding. + * 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. + * @param int $id Optional. ID of the current page. Default 0 (unused). */ public function start_el( &$output, $page, $depth = 0, $args = array(), $id = 0 ) { $pad = str_repeat(' ', $depth * 3); diff --git a/wp-includes/version.php b/wp-includes/version.php index bd533cca3e..7de16bfc63 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-35927'; +$wp_version = '4.5-alpha-35928'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.