[wp-trac] [WordPress Trac] #49612: wpmu_new_blog hook has been deprecated. Use wp_initialize_site instead.

WordPress Trac noreply at wordpress.org
Thu Mar 3 15:56:22 UTC 2022


#49612: wpmu_new_blog hook has been deprecated. Use wp_initialize_site instead.
--------------------------------+-----------------------------
 Reporter:  asaquzzaman         |       Owner:  SergeyBiryukov
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:  6.0
Component:  Networks and Sites  |     Version:
 Severity:  normal              |  Resolution:  fixed
 Keywords:                      |     Focuses:  multisite
--------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52816" 52816]:
 {{{
 #!CommitTicketReference repository="" revision="52816"
 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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49612#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list