WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/22/2016 06:06:58 PM (6 years ago)
Author:
DrewAPicture
Message:

Docs: Mark optional method parameters as such in Walker_Page.

Also normalizes parameter spacing following [37056].

Fixes #36300.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-walker-page.php

    r37056 r37057  
    8383     * @access public
    8484     *
    85      * @param string $output       Passed by reference. Used to append additional content.
     85     * @param string  $output       Used to append additional content. Passed by reference.
    8686     * @param WP_Post $page         Page data object.
    87      * @param int    $depth        Depth of page. Used for padding.
    88      * @param array  $args         Optional arguments.
    89      * @param int    $current_page Page ID.
     87     * @param int     $depth        Optional. Depth of page. Used for padding. Default 0.
     88     * @param array   $args         Optional. Array of arguments. Default empty array.
     89     * @param int     $current_page Optional. Page ID. Default 0.
    9090     */
    9191    public function start_el( &$output, $page, $depth = 0, $args = array(), $current_page = 0 ) {
     
    124124         *
    125125         * @param array   $css_class    An array of CSS classes to be applied
    126          *                             to each list item.
     126         *                              to each list item.
    127127         * @param WP_Post $page         Page data object.
    128128         * @param int     $depth        Depth of page, used for padding.
     
    170170     * @see Walker::end_el()
    171171     *
    172      * @param string $output Passed by reference. Used to append additional content.
    173      * @param WP_Post $page Page data object. Not used.
    174      * @param int    $depth Depth of page. Not Used.
    175      * @param array  $args
     172     * @param string  $output Used to append additional content. Passed by reference.
     173     * @param WP_Post $page   Page data object. Not used.
     174     * @param int     $depth  Optional. Depth of page. Default 0 (unused).
     175     * @param array   $args   Optional. Array of arguments. Default empty array.
    176176     */
    177177    public function end_el( &$output, $page, $depth = 0, $args = array() ) {
Note: See TracChangeset for help on using the changeset viewer.