[wp-trac] [WordPress Trac] #49349: wpmu_new_blog deprecated notice

WordPress Trac noreply at wordpress.org
Mon Feb 3 02:09:18 UTC 2020


#49349: wpmu_new_blog deprecated notice
--------------------------+-----------------------------
 Reporter:  henry.wright  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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}}}.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49349>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list