WordPress.org

Make WordPress Core

Changeset 35912


Ignore:
Timestamp:
12/14/2015 02:35:29 AM (4 years ago)
Author:
johnbillion
Message:

Add missing variadic markers to the optional parameters of do_action() and apply_filters().

See #32246

File:
1 edited

Legend:

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

    r35911 r35912  
    192192 * @global array $wp_current_filter Stores the list of current filters with the current one last.
    193193 *
    194  * @param string $tag   The name of the filter hook.
    195  * @param mixed  $value The value on which the filters hooked to `$tag` are applied on.
    196  * @param mixed  $var  Additional variables passed to the functions hooked to `$tag`.
     194 * @param string $tag     The name of the filter hook.
     195 * @param mixed  $value   The value on which the filters hooked to `$tag` are applied on.
     196 * @param mixed  $var,... Additional variables passed to the functions hooked to `$tag`.
    197197 * @return mixed The filtered value after all hooked functions are applied to it.
    198198 */
     
    476476 * @global array $wp_current_filter Stores the list of current filters with the current one last
    477477 *
    478  * @param string $tag The name of the action to be executed.
    479  * @param mixed  $arg Optional. Additional arguments which are passed on to the
    480  *                    functions hooked to the action. Default empty.
     478 * @param string $tag     The name of the action to be executed.
     479 * @param mixed  $arg,... Optional. Additional arguments which are passed on to the
     480 *                        functions hooked to the action. Default empty.
    481481 */
    482482function do_action($tag, $arg = '') {
Note: See TracChangeset for help on using the changeset viewer.