Docs: Mark optional method parameters as such in Walker_Page
.
Also normalizes parameter spacing following [37056]. Fixes #36300. git-svn-id: https://develop.svn.wordpress.org/trunk@37057 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b44910599c
commit
bcc058d02d
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user