Docs: Mark optional method parameters as such in `Walker_Page`.

Also normalizes parameter spacing following [37056].

Fixes #36300.

Built from https://develop.svn.wordpress.org/trunk@37057


git-svn-id: http://core.svn.wordpress.org/trunk@37024 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2016-03-22 18:07:27 +00:00
parent a336735c13
commit c5053ef0be
2 changed files with 10 additions and 10 deletions

View File

@ -82,11 +82,11 @@ class Walker_Page extends Walker {
* @since 2.1.0 * @since 2.1.0
* @access public * @access public
* *
* @param string $output Passed by reference. Used to append additional content. * @param string $output Used to append additional content. Passed by reference.
* @param WP_Post $page Page data object. * @param WP_Post $page Page data object.
* @param int $depth Depth of page. Used for padding. * @param int $depth Optional. Depth of page. Used for padding. Default 0.
* @param array $args Optional arguments. * @param array $args Optional. Array of arguments. Default empty array.
* @param int $current_page Page ID. * @param int $current_page Optional. Page ID. Default 0.
*/ */
public function start_el( &$output, $page, $depth = 0, $args = array(), $current_page = 0 ) { public function start_el( &$output, $page, $depth = 0, $args = array(), $current_page = 0 ) {
if ( $depth ) { if ( $depth ) {
@ -123,7 +123,7 @@ class Walker_Page extends Walker {
* @see wp_list_pages() * @see wp_list_pages()
* *
* @param array $css_class An array of CSS classes to be applied * @param array $css_class An array of CSS classes to be applied
* to each list item. * to each list item.
* @param WP_Post $page Page data object. * @param WP_Post $page Page data object.
* @param int $depth Depth of page, used for padding. * @param int $depth Depth of page, used for padding.
* @param array $args An array of arguments. * @param array $args An array of arguments.
@ -169,10 +169,10 @@ class Walker_Page extends Walker {
* *
* @see Walker::end_el() * @see Walker::end_el()
* *
* @param string $output Passed by reference. Used to append additional content. * @param string $output Used to append additional content. Passed by reference.
* @param WP_Post $page Page data object. Not used. * @param WP_Post $page Page data object. Not used.
* @param int $depth Depth of page. Not Used. * @param int $depth Optional. Depth of page. Default 0 (unused).
* @param array $args * @param array $args Optional. Array of arguments. Default empty array.
*/ */
public function end_el( &$output, $page, $depth = 0, $args = array() ) { public function end_el( &$output, $page, $depth = 0, $args = array() ) {
$output .= "</li>\n"; $output .= "</li>\n";

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.5-beta4-37056'; $wp_version = '4.5-beta4-37057';
/** /**
* 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.