Make WordPress Core

Opened 2 years ago

Last modified 22 months ago

#49349 new defect (bug)

wpmu_new_blog deprecated notice

Reported by: henry.wright Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Networks and Sites Keywords:
Focuses: multisite Cc:


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 (2)

#1 @SergeyBiryukov
2 years ago

  • Component changed from General to Networks and Sites
  • Focuses multisite added

Thanks for the ticket! Introduced in [43654].

There's also a wp_initialize_site action that receives the $args array, which should contain user_id.

#2 @SergeyBiryukov
22 months ago

Related/duplicate: #49612

Note: See TracTickets for help on using tickets.