mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-02-22 16:52:42 +00:00
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
This commit is contained in:
parent
1adb9643d9
commit
d77b6f99c6
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user