Changeset 19596 for trunk/wp-includes/capabilities.php
- Timestamp:
- 12/14/2011 05:36:38 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
r19593 r19596 488 488 global $wpdb; 489 489 490 if ( 'id' == $field ) 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; 491 495 $value = absint( $value ); 492 else496 } else { 493 497 $value = trim( $value ); 498 } 494 499 495 500 if ( !$value )
Note: See TracChangeset
for help on using the changeset viewer.