Make WordPress Core

Changeset 55893


Ignore:
Timestamp:
06/08/2023 07:52:58 AM (11 months ago)
Author:
audrasjb
Message:

Docs: Mark apply_filters() third parameter $args as optional.

The $args parameter of apply_filters() is optional. This changeset updates the related Docblock description accordingly so the parameter is not marked as
required on DevHub.

Props gaeldenysiak, audrasjb, gilles66.
Fixes #58481.
See #57840.

File:
1 edited

Legend:

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

    r55753 r55893  
    168168 * @param string $hook_name The name of the filter hook.
    169169 * @param mixed  $value     The value to filter.
    170  * @param mixed  ...$args   Additional parameters to pass to the callback functions.
     170 * @param mixed  ...$args   Optional. Additional parameters to pass to the callback functions.
    171171 * @return mixed The filtered value after all hooked functions are applied to it.
    172172 */
Note: See TracChangeset for help on using the changeset viewer.