Make WordPress Core

Changeset 27065


Ignore:
Timestamp:
02/02/2014 05:32:17 AM (11 years ago)
Author:
nacin
Message:

Add arguments to the wp_dropdown_cats filter, and docs.

props olivM.
fixes #24103.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/category-template.php

    r26868 r27065  
    372372        $output .= "</select>\n";
    373373
    374     $output = apply_filters( 'wp_dropdown_cats', $output );
     374    /**
     375     * Filter the result of wp_dropdown_categories().
     376     *
     377     * @since 2.1.0
     378     *
     379     * @param $output HTML content.
     380     * @param $r      Arguments used to build the dropdown.
     381     */
     382    $output = apply_filters( 'wp_dropdown_cats', $output, $r );
    375383
    376384    if ( $echo )
Note: See TracChangeset for help on using the changeset viewer.