diff --git a/wp-includes/option.php b/wp-includes/option.php index 2903da6b92..35a1594dd3 100644 --- a/wp-includes/option.php +++ b/wp-includes/option.php @@ -1419,13 +1419,15 @@ function update_network_option( $network_id, $option, $value ) { * * @since 2.9.0 As 'pre_update_site_option_' . $key * @since 3.0.0 - * @since 4.4.0 The `$option` parameter was added + * @since 4.4.0 The `$option` parameter was added. + * @since 4.7.0 The `$network_id` parameter was added. * - * @param mixed $value New value of the network option. - * @param mixed $old_value Old value of the network option. - * @param string $option Option name. + * @param mixed $value New value of the network option. + * @param mixed $old_value Old value of the network option. + * @param string $option Option name. + * @param int $network_id ID of the network. */ - $value = apply_filters( "pre_update_site_option_{$option}", $value, $old_value, $option ); + $value = apply_filters( "pre_update_site_option_{$option}", $value, $old_value, $option, $network_id ); if ( $value === $old_value ) { return false; @@ -1465,23 +1467,27 @@ function update_network_option( $network_id, $option, $value ) { * * @since 2.9.0 As "update_site_option_{$key}" * @since 3.0.0 + * @since 4.7.0 The `$network_id` parameter was added. * - * @param string $option Name of the network option. - * @param mixed $value Current value of the network option. - * @param mixed $old_value Old value of the network option. + * @param string $option Name of the network option. + * @param mixed $value Current value of the network option. + * @param mixed $old_value Old value of the network option. + * @param int $network_id ID of the network. */ - do_action( "update_site_option_{$option}", $option, $value, $old_value ); + do_action( "update_site_option_{$option}", $option, $value, $old_value, $network_id ); /** * Fires after the value of a network option has been successfully updated. * * @since 3.0.0 + * @since 4.7.0 The `$network_id` parameter was added. * - * @param string $option Name of the network option. - * @param mixed $value Current value of the network option. - * @param mixed $old_value Old value of the network option. + * @param string $option Name of the network option. + * @param mixed $value Current value of the network option. + * @param mixed $old_value Old value of the network option. + * @param int $network_id ID of the network. */ - do_action( 'update_site_option', $option, $value, $old_value ); + do_action( 'update_site_option', $option, $value, $old_value, $network_id ); return true; } diff --git a/wp-includes/version.php b/wp-includes/version.php index d4f8059297..655e06a5c9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38816'; +$wp_version = '4.7-alpha-38817'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.