mirror of
git://develop.git.wordpress.org/
synced 2025-03-21 04:20:01 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@52816 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b28dcfd832
commit
3788002728
@ -136,7 +136,7 @@ function wp_insert_site( array $data ) {
|
||||
'wpmu_new_blog',
|
||||
array( $new_site->id, $user_id, $new_site->domain, $new_site->path, $new_site->network_id, $meta ),
|
||||
'5.1.0',
|
||||
'wp_insert_site'
|
||||
'wp_initialize_site'
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user