Make WordPress Core


Ignore:
Timestamp:
09/04/2024 09:08:48 PM (5 weeks ago)
Author:
SergeyBiryukov
Message:

Docs: Correct the first parameter name for the pre_site_option_{$option} filter.

Follow-up to [27365], [41013], [48193].

See #61608.

File:
1 edited

Legend:

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

    r58949 r58993  
    20022002     * @since 4.9.0 The `$default_value` parameter was added.
    20032003     *
    2004      * @param mixed  $pre_option    The value to return instead of the option value. This differs from
    2005      *                              `$default_value`, which is used as the fallback value in the event
    2006      *                              the option doesn't exist elsewhere in get_network_option().
    2007      *                              Default false (to skip past the short-circuit).
    2008      * @param string $option        Option name.
    2009      * @param int    $network_id    ID of the network.
    2010      * @param mixed  $default_value The fallback value to return if the option does not exist.
    2011      *                              Default false.
     2004     * @param mixed  $pre_site_option The value to return instead of the option value. This differs from
     2005     *                                `$default_value`, which is used as the fallback value in the event
     2006     *                                the option doesn't exist elsewhere in get_network_option().
     2007     *                                Default false (to skip past the short-circuit).
     2008     * @param string $option          Option name.
     2009     * @param int    $network_id      ID of the network.
     2010     * @param mixed  $default_value   The fallback value to return if the option does not exist.
     2011     *                                Default false.
    20122012     */
    20132013    $pre = apply_filters( "pre_site_option_{$option}", false, $option, $network_id, $default_value );
Note: See TracChangeset for help on using the changeset viewer.