[wp-trac] [WordPress Trac] #49796: wpmu_new_blog is deprecated since version 5.1.0 warning

WordPress Trac noreply at wordpress.org
Fri Apr 3 13:30:31 UTC 2020


#49796: wpmu_new_blog is deprecated since version 5.1.0 warning
--------------------------------+----------------------
 Reporter:  oldrup              |       Owner:  (none)
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:
Component:  Networks and Sites  |     Version:  5.4
 Severity:  minor               |  Resolution:  invalid
 Keywords:                      |     Focuses:
--------------------------------+----------------------
Changes (by swissspidy):

 * status:  new => closed
 * resolution:   => invalid
 * focuses:  multisite, coding-standards =>
 * component:  General => Networks and Sites
 * milestone:  Awaiting Review =>


Comment:

 Hi there

 You appear to be using some plugin that hooks into the `wpmu_new_blog`
 action, which has been deprecated .  That's why there is this message
 `Deprecated: wpmu_new_blog is deprecated since version 5.1.0! Use
 wp_insert_site instead.`. The file location might be misleading, as it's
 just the location where the warning has been triggered, and not the
 location of the actual caller.

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


More information about the wp-trac mailing list