mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
Docs: Correct the first parameter name for the pre_site_option_{$option}
filter.
Follow-up to [27365], [41013], [48193]. See #61608. git-svn-id: https://develop.svn.wordpress.org/trunk@58993 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b73edfb4af
commit
852848ac0e
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user