[wp-trac] [WordPress Trac] #47195: Switch WP_UnitTest_Factory_For_Blog->create_object() to use wp_insert_site()

WordPress Trac noreply at wordpress.org
Thu May 9 00:17:54 UTC 2019


#47195: Switch WP_UnitTest_Factory_For_Blog->create_object() to use
wp_insert_site()
------------------------------+-------------------------
 Reporter:  danielbachhuber   |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  5.3
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  needs-patch
  Focuses:                    |
------------------------------+-------------------------
 `WP_UnitTest_Factory_For_Blog->create_object()` currently uses
 `wpmu_create_blog()`, which produces a deprecated notice (and then fails
 the test).

 It should be switched over to use the `wp_insert_site()` that landed in
 r43548

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


More information about the wp-trac mailing list