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:
parent
9957d43e13
commit
122862b570
|
@ -62,12 +62,16 @@ if ( isset($_REQUEST['action']) && 'update-site' == $_REQUEST['action'] && is_ar
|
||||||
update_option( $key, $val );
|
update_option( $key, $val );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fires after the site options are updated.
|
* Fires after the site options are updated.
|
||||||
*
|
*
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*/
|
* @since 4.4.0 Added `$id` parameter.
|
||||||
do_action( 'wpmu_update_blog_options' );
|
*
|
||||||
|
* @param int $id The ID of the site being updated.
|
||||||
|
*/
|
||||||
|
do_action( 'wpmu_update_blog_options', $id );
|
||||||
|
|
||||||
restore_current_blog();
|
restore_current_blog();
|
||||||
wp_redirect( add_query_arg( array( 'update' => 'updated', 'id' => $id ), 'site-settings.php') );
|
wp_redirect( add_query_arg( array( 'update' => 'updated', 'id' => $id ), 'site-settings.php') );
|
||||||
exit;
|
exit;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue