[wp-trac] [WordPress Trac] #37937: Support boolean strings for the 'public', 'archived', 'mature', 'spam' and 'deleted' attributes in WP_Site_Query

WordPress Trac noreply at wordpress.org
Tue Sep 19 12:19:47 UTC 2017


#37937: Support boolean strings for the 'public', 'archived', 'mature', 'spam' and
'deleted' attributes in WP_Site_Query
--------------------------------------+------------------------------
 Reporter:  birgire                   |       Owner:
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Networks and Sites        |     Version:  4.6
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  multisite
--------------------------------------+------------------------------

Comment (by birgire):

 Thanks for the follow up @desrosj

 In [attachment:37937.4.patch]:

 - Added {{{true, 'true', 1, '1'}}} and {{{false, 'false', 0, '0'}}} tests
 for all the parameters, i.e.  {{{'public', 'archived', 'mature', 'spam'}}}
 and {{{'deleted'}}}.

 - Removed the extra empty lines.

 - Combined patch and tests into a file.

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


More information about the wp-trac mailing list