Changes from branches/3.3/wp-includes/capabilities.php at r19668 to trunk/wp-includes/capabilities.php at r19325
- File:
-
- 1 edited
-
trunk/wp-includes/capabilities.php (modified) (1 diff, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
- Property svn:mergeinfo deleted
r19668 r19325 488 488 global $wpdb; 489 489 490 if ( 'id' == $field ) { 491 // Make sure the value is numeric to avoid casting objects, for example, 492 // to int 1. 493 if ( ! is_numeric( $value ) ) 494 return false; 490 if ( 'id' == $field ) 495 491 $value = absint( $value ); 496 } else {492 else 497 493 $value = trim( $value ); 498 }499 494 500 495 if ( !$value )
Note: See TracChangeset
for help on using the changeset viewer.