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:
parent
a336735c13
commit
c5053ef0be
|
@ -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 ) {
|
||||
|
@ -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 string $output Used to append additional content. Passed by reference.
|
||||
* @param WP_Post $page Page data object. Not used.
|
||||
* @param int $depth Depth of page. Not Used.
|
||||
* @param array $args
|
||||
* @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";
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue