[wp-trac] [WordPress Trac] #17673: get_adjacent_post() uses ' and ' as undocumented separator for excluded categories

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 4 07:26:24 UTC 2011


#17673: get_adjacent_post() uses ' and ' as undocumented separator for excluded
categories
------------------------------+-----------------------------
 Reporter:  kawauso           |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Future Release
Component:  Template          |     Version:  3.1
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+-----------------------------

Comment (by dd32):

 I'd change that check to ` if ( !is_array($excluded_categories) )` for 2
 reasons, is_string() will return false for ints, and, it's best to check
 to see if something is not in the expected form and process (in turn,
 casting to string magically by php) parsing the inputs.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17673#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list