[wp-trac] [WordPress Trac] #13317: Code Impriovement in get_userdata

WordPress Trac wp-trac at lists.automattic.com
Thu May 13 18:50:01 UTC 2010


#13317: Code Impriovement in get_userdata
------------------------------------+---------------------------------------
 Reporter:  hakre                   |        Owner:          
     Type:  defect (bug)            |       Status:  reopened
 Priority:  high                    |    Milestone:  3.0     
Component:  Security                |      Version:          
 Severity:  major                   |   Resolution:          
 Keywords:  has-patch dev-feedback  |  
------------------------------------+---------------------------------------

Comment(by hakre):

 Finally I was able to run some tests to find out more. The Absint()
 function should be put on the deprecated list and replaced with a single
 function call:
 {{{
 abs( (int) $val );
 }}}
 because it just does the job, this behaves absolutely the same as
 {{{absint( $val );}}}. I've attached a detailed testfile and exemplary
 output results.

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


More information about the wp-trac mailing list