[wp-trac] [WordPress Trac] #40489: Add network ID parameter to wp_is_large_network()

WordPress Trac noreply at wordpress.org
Tue May 9 15:43:22 UTC 2017


#40489: Add network ID parameter to wp_is_large_network()
---------------------------------------------+------------------------
 Reporter:  flixos90                         |       Owner:  flixos90
     Type:  enhancement                      |      Status:  assigned
 Priority:  normal                           |   Milestone:  4.8
Component:  Networks and Sites               |     Version:
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  multisite
---------------------------------------------+------------------------
Changes (by flixos90):

 * keywords:  has-patch needs-unit-tests => has-patch has-unit-tests commit


Comment:

 [attachment:40489.2.diff] adds unit tests for the function and the filter:

 * One test with data for the default function behavior.
 * One test with data for a filter that only allows a maximum of 1000 when
 using 'users'.
 * One test with data for a filter that only allows a maximum of 1000 for a
 specific network.

 All test data includes variants with a different network than the current
 one, in order to test the actual changes from this ticket.

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


More information about the wp-trac mailing list