From d77b6f99c62263bb029dddbb28dca1faa9b99aa0 Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Sat, 5 Sep 2015 20:38:27 +0000 Subject: [PATCH] Multisite: Pass the ID of the site being updated to `wpmu_update_blog_options` action. Props @swissspidy, @MikeHansenMe. Fixes #32907. git-svn-id: https://develop.svn.wordpress.org/trunk@33918 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/network/site-settings.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/wp-admin/network/site-settings.php b/src/wp-admin/network/site-settings.php index ddc0f18ab1..879363e343 100644 --- a/src/wp-admin/network/site-settings.php +++ b/src/wp-admin/network/site-settings.php @@ -62,12 +62,16 @@ if ( isset($_REQUEST['action']) && 'update-site' == $_REQUEST['action'] && is_ar update_option( $key, $val ); } -/** - * Fires after the site options are updated. - * - * @since 3.0.0 - */ - do_action( 'wpmu_update_blog_options' ); + /** + * Fires after the site options are updated. + * + * @since 3.0.0 + * @since 4.4.0 Added `$id` parameter. + * + * @param int $id The ID of the site being updated. + */ + do_action( 'wpmu_update_blog_options', $id ); + restore_current_blog(); wp_redirect( add_query_arg( array( 'update' => 'updated', 'id' => $id ), 'site-settings.php') ); exit;