Make WordPress Core

Changeset 60978


Ignore:
Timestamp:
10/19/2025 07:45:22 PM (11 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct DocBlock formatting for pre_site_option filter.

Includes bringing some consistency with the pre_option filter DocBlock.
.
Follow-up to [54145], [54948], [60959].

Props mukesh27, SergeyBiryukov.
See #37930, #63166.

File:
1 edited

Legend:

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

    r60959 r60978  
    133133
    134134        /**
    135          * Filters the value of all existing options before it is retrieved.
     135         * Filters the value of any existing option before it is retrieved.
    136136         *
    137137         * Returning a value other than false from the filter will short-circuit retrieval
     
    20392039
    20402040        /**
    2041          * Filters the value of an existing network options before it is retrieved.
     2041         * Filters the value of any existing network option before it is retrieved.
    20422042         *
    20432043         * Returning a value other than false from the filter will short-circuit retrieval
     
    20462046         * @since 6.9.0
    20472047         *
    2048          * @param mixed  $pre             The value to return instead of the network option value. This differs
    2049          *                                from `$default`, which is used as the fallback value in the event
    2050          *                                the option doesn't exist elsewhere in get_network_option().
    2051          *                                Default false (to skip past the short-circuit).
    2052          * @param string $option          Name of the option.
    2053          * @param int    $network_id      ID of the network.
    2054          * @param mixed  $default_value   The fallback value to return if the option does not exist.
    2055          *                                Default false.
     2048         * @param mixed  $pre_option    The value to return instead of the network option value. This differs
     2049         *                              from `$default_value`, which is used as the fallback value in the event
     2050         *                              the option doesn't exist elsewhere in get_network_option().
     2051         *                              Default false (to skip past the short-circuit).
     2052         * @param string $option        Name of the option.
     2053         * @param int    $network_id    ID of the network.
     2054         * @param mixed  $default_value The fallback value to return if the option does not exist.
     2055         *                              Default false.
    20562056         */
    20572057        $pre = apply_filters( 'pre_site_option', $pre, $option, $network_id, $default_value );
Note: See TracChangeset for help on using the changeset viewer.