[wp-trac] [WordPress Trac] #16101: Numeric term fields are strings

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 15 03:46:29 UTC 2011


#16101: Numeric term fields are strings
-------------------------------------+-----------------------------
 Reporter:  foofy                    |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Taxonomy                 |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch  dev-feedback  |
-------------------------------------+-----------------------------
Changes (by mdawaffe):

 * keywords:  has-patch => has-patch  dev-feedback
 * milestone:  Awaiting Review => Future Release


Comment:

 Can use {{{ctype_digit( $term )}}} without making changes to
 {{{sanitize_term*()}}}.

 Casting everything to (int) could change the output of XML-RPC requests
 which can break clients, so we need to be super careful there.

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


More information about the wp-trac mailing list