[wp-trac] [WordPress Trac] #34525: Use wp_parse_id_list() in the WP_Query class
WordPress Trac
noreply at wordpress.org
Mon Nov 2 01:46:55 UTC 2015
#34525: Use wp_parse_id_list() in the WP_Query class
-------------------------+------------------------------
Reporter: birgire | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 4.3.1
Severity: normal | Resolution:
Keywords: close | Focuses:
-------------------------+------------------------------
Comment (by dd32):
Although micro optimizations can add up, given these are not called
repetitively on each pageload I think we can deal with the function call
overhead for more standardised code.
If we want to retain the no-comma-seperator behaviour, we simply need to
pass the array in, as in: `wp_parse_id_list( (array) $q['category__in']
);`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34525#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list