[wp-trac] [WordPress Trac] #41333: Implement `wp_initialize_site()` and `wp_uninitialize_site()`

WordPress Trac noreply at wordpress.org
Mon Sep 10 21:49:13 UTC 2018


#41333: Implement `wp_initialize_site()` and `wp_uninitialize_site()`
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:  flixos90
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  5.0
Component:  Networks and Sites                   |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  ms-roadmap has-patch needs-unit-     |     Focuses:  multisite
  tests needs-testing needs-dev-note             |
-------------------------------------------------+-------------------------

Comment (by spacedmonkey):

 I would also have a look into change how the unit test factories, so you
 can pass an param that would disable the tables being created.

 The new param create the table and is defaults to true.
 {{{#!php
 $id = $factory->blog->create( $id, true );
 }}}

 where as this
 {{{#!php
 $id = $factory->blog->create( $id, false );
 }}}
 would not create the extra table.

 This should really speed up some of the unit tests running.

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


More information about the wp-trac mailing list