[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:07:43 UTC 2020
#49796: wpmu_new_blog is deprecated since version 5.1.0 warning
-----------------------------------------+-----------------------------
Reporter: oldrup | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.4
Severity: minor | Keywords:
Focuses: multisite, coding-standards |
-----------------------------------------+-----------------------------
Hey. Whenever I'm creating new sites on my multisite installation, I get
the following warnings (since I activated debugging due to another issue).
It seems that WordPress uses a deprecated function when new sites are
created. The site is created just fine, its just warnings.
Deprecated: wpmu_new_blog is deprecated since version 5.1.0! Use
wp_insert_site instead. in /home/oldrupdk/labs.oldrup.net/wp-
includes/functions.php on line 5088
Warning: Cannot modify header information - headers already sent by
(output started at /home/oldrupdk/labs.oldrup.net/wp-
includes/functions.php:5088) in /home/oldrupdk/labs.oldrup.net/wp-
includes/pluggable.php on line 1281
Warning: Cannot modify header information - headers already sent by
(output started at /home/oldrupdk/labs.oldrup.net/wp-
includes/functions.php:5088) in /home/oldrupdk/labs.oldrup.net/wp-
includes/pluggable.php on line 1284
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49796>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list