Opened 7 years ago
Closed 4 years ago
#49349 closed defect (bug) (duplicate)
wpmu_new_blog deprecated notice
| Reported by: | henry.wright | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Networks and Sites | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | multisite |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks for the ticket! Introduced in [43654].
There's also a
wp_initialize_siteaction that receives the$argsarray, which should containuser_id.