Multisite: Pass the ID of the site being updated to `wpmu_update_blog_options` action.

Props @swissspidy, @MikeHansenMe.
Fixes #32907.

Built from https://develop.svn.wordpress.org/trunk@33918


git-svn-id: http://core.svn.wordpress.org/trunk@33887 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Jeremy Felt 2015-09-05 20:39:24 +00:00
parent 9957d43e13
commit 122862b570
2 changed files with 11 additions and 7 deletions

View File

@ -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;

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-33917';
$wp_version = '4.4-alpha-33918';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.