Make WordPress Core

Changeset 35928


Ignore:
Timestamp:
12/14/2015 05:53:49 PM (9 years ago)
Author:
DrewAPicture
Message:

Docs: Add a missing description for the $id parameter in the DocBlock for Walker_PageDropdown::start_el(), which is implemented by Walker but unused by the subclass method.

Also marks the other optional parameters as such.

See #32246.

File:
1 edited

Legend:

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

    r34415 r35928  
    3737     * @param string $output Passed by reference. Used to append additional content.
    3838     * @param object $page   Page data object.
    39      * @param int    $depth  Depth of page in reference to parent pages. Used for padding.
    40      * @param array  $args   Uses 'selected' argument for selected page to set selected HTML attribute for option
    41      *                       element. Uses 'value_field' argument to fill "value" attribute. See {@see wp_dropdown_pages()}.
    42      * @param int    $id
     39     * @param int    $depth  Optional. Depth of page in reference to parent pages. Used for padding.
     40     *                       Default 0.
     41     * @param array  $args   Optional. Uses 'selected' argument for selected page to set selected HTML
     42     *                       attribute for option element. Uses 'value_field' argument to fill "value"
     43     *                       attribute. See {@see wp_dropdown_pages()}. Default empty array.
     44     * @param int    $id     Optional. ID of the current page. Default 0 (unused).
    4345     */
    4446    public function start_el( &$output, $page, $depth = 0, $args = array(), $id = 0 ) {
Note: See TracChangeset for help on using the changeset viewer.