[wp-trac] [WordPress Trac] #13317: Code Impriovement in get_userdata
WordPress Trac
wp-trac at lists.automattic.com
Sun May 16 02:28:58 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):
Gosh, there are really tons of the {{{array_map('absint'}}} calls. well,
if I did knew that, I must say, why did no one thought of really making
the job easier for the coders here by just allowing using absint on an
array by design?
like so:
{{{
function absint( $maybeint ) {
if ( is_array($maybeint) )
return array_map('absint', $maybeint);
return abs( intval( $maybeint ) );
}
}}}
That would finally provide some use then for the wpquery subroutine. and
it would make my live harder to remove it all over the place *gg*.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13317#comment:23>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list