Make WordPress Core


Ignore:
Timestamp:
05/25/2019 09:58:18 PM (5 years ago)
Author:
johnbillion
Message:

Docs: Switch to the more common syntax for variadic function documentation.

See #37402

File:
1 edited

Legend:

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

    r42343 r45418  
    171171 * @global array $wp_current_filter Stores the list of current filters with the current one last.
    172172 *
    173  * @param string $tag     The name of the filter hook.
    174  * @param mixed  $value   The value on which the filters hooked to `$tag` are applied on.
    175  * @param mixed  $var,... Additional variables passed to the functions hooked to `$tag`.
     173 * @param string $tag    The name of the filter hook.
     174 * @param mixed  $value  The value on which the filters hooked to `$tag` are applied on.
     175 * @param mixed  ...$var Additional variables passed to the functions hooked to `$tag`.
    176176 * @return mixed The filtered value after all hooked functions are applied to it.
    177177 */
     
    422422 * @global array $wp_current_filter Stores the list of current filters with the current one last
    423423 *
    424  * @param string $tag     The name of the action to be executed.
    425  * @param mixed  $arg,... Optional. Additional arguments which are passed on to the
    426  *                        functions hooked to the action. Default empty.
     424 * @param string $tag    The name of the action to be executed.
     425 * @param mixed  ...$arg Optional. Additional arguments which are passed on to the
     426 *                       functions hooked to the action. Default empty.
    427427 */
    428428function do_action( $tag, $arg = '' ) {
Note: See TracChangeset for help on using the changeset viewer.