WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/capabilities.php

    • Property svn:mergeinfo deleted
    r19668 r19325  
    488488        global $wpdb;
    489489
    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 )
    495491            $value = absint( $value );
    496         } else {
     492        else
    497493            $value = trim( $value );
    498         }
    499494
    500495        if ( !$value )
Note: See TracChangeset for help on using the changeset viewer.