Skip to content

Commit

Permalink
Docs: Correct the first parameter name for the `pre_site_option_{$opt…
Browse files Browse the repository at this point in the history
…ion}` filter.

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

See #61608.

git-svn-id: https://develop.svn.wordpress.org/trunk@58993 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Sep 4, 2024
1 parent b73edfb commit 852848a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/wp-includes/option.php
Original file line number Diff line number Diff line change
Expand Up @@ -2001,14 +2001,14 @@ function get_network_option( $network_id, $option, $default_value = false ) {
* @since 4.7.0 The `$network_id` parameter was added.
* @since 4.9.0 The `$default_value` parameter was added.
*
* @param mixed $pre_option The value to return instead of the option value. This differs from
* `$default_value`, which is used as the fallback value in the event
* the option doesn't exist elsewhere in get_network_option().
* Default false (to skip past the short-circuit).
* @param string $option Option name.
* @param int $network_id ID of the network.
* @param mixed $default_value The fallback value to return if the option does not exist.
* Default false.
* @param mixed $pre_site_option The value to return instead of the option value. This differs from
* `$default_value`, which is used as the fallback value in the event
* the option doesn't exist elsewhere in get_network_option().
* Default false (to skip past the short-circuit).
* @param string $option Option name.
* @param int $network_id ID of the network.
* @param mixed $default_value The fallback value to return if the option does not exist.
* Default false.
*/
$pre = apply_filters( "pre_site_option_{$option}", false, $option, $network_id, $default_value );

Expand Down

0 comments on commit 852848a

Please sign in to comment.