[wp-trac] [WordPress Trac] #39879: wp_get_sites() with a false limit no longer returns all sites

WordPress Trac noreply at wordpress.org
Mon Mar 13 20:37:22 UTC 2017


#39879: wp_get_sites() with a false limit no longer returns all sites
--------------------------------------+------------------------
 Reporter:  iandunn                   |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  4.8
Component:  Networks and Sites        |     Version:  4.6
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  multisite
--------------------------------------+------------------------

Comment (by iandunn):

 > Creating that many sites introduces a performance issue to the test
 suite

 Maybe one way to solve that would be to create a flag to control whether
 or not the extra sites would be created. It would default to `false`, so
 developers could continue running the group with a small amount of data
 during development.

 Then, before creating a patch, they could set the flag to `true` with
 something like `USE_LARGE_DATA=1 phpunit --group=wp-get-site` to run the
 full group. Travis could be configured to always set the flag to `true`.

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


More information about the wp-trac mailing list