WordPress.org

Make WordPress Core

Changeset 18515


Ignore:
Timestamp:
08/05/11 20:54:08 (3 years ago)
Author:
ryan
Message:

Handle id back compat in isset magic method. see #15458

File:
1 edited

Legend:

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

    r18513 r18515  
    463463     */ 
    464464    function __isset( $key ) { 
     465        if ( 'id' == $key ) { 
     466            _deprecated_argument( 'WP_User->id', '2.1', __( 'Use <code>WP_User->ID</code> instead.' ) ); 
     467            $key = 'ID'; 
     468        } 
    465469        return isset( $this->data->$key ); 
    466470    } 
Note: See TracChangeset for help on using the changeset viewer.