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

View File

@ -4,7 +4,7 @@
*
* @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.