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:
Drew Jaynes 2016-03-22 18:06:58 +00:00
parent b44910599c
commit bcc058d02d

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";