mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01:00
Networks and Sites: Suggest wp_initialize_site
as an alternative for the deprecated wpmu_new_blog
action.
The previously suggested alternative, `wp_insert_site`, does not get passed enough arguments and runs before the new site initialization routine is actually executed. Follow-up to [43654]. Props asaquzzaman, henry.wright, MadtownLems. Fixes #49612. Built from https://develop.svn.wordpress.org/trunk@52816 git-svn-id: http://core.svn.wordpress.org/trunk@52405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cc5bacb4e4
commit
b009374817
@ -136,7 +136,7 @@ function wp_insert_site( array $data ) {
|
|||||||
'wpmu_new_blog',
|
'wpmu_new_blog',
|
||||||
array( $new_site->id, $user_id, $new_site->domain, $new_site->path, $new_site->network_id, $meta ),
|
array( $new_site->id, $user_id, $new_site->domain, $new_site->path, $new_site->network_id, $meta ),
|
||||||
'5.1.0',
|
'5.1.0',
|
||||||
'wp_insert_site'
|
'wp_initialize_site'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.0-alpha-52815';
|
$wp_version = '6.0-alpha-52816';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
Block a user