Opened 5 years ago
Closed 3 years ago
#49349 closed defect (bug) (duplicate)
wpmu_new_blog deprecated notice
Reported by: | henry.wright | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Networks and Sites | Keywords: | |
Focuses: | multisite | Cc: |
Description
If you try to use the wpmu_new_blog
action you get this notice:
Notice: wpmu_new_blog is deprecated since version 5.1.0! Use wp_insert_site instead.
The wpmu_new_blog
and wp_insert_site
actions aren't directly comparable. For example, $user_id
is passed to functions and methods hooked to wpmu_new_blog
. It isn't available to functions and methods hooked to wp_insert_site
.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Thanks for the ticket! Introduced in [43654].
There's also a
wp_initialize_site
action that receives the$args
array, which should containuser_id
.