From afe083447f731ad670679dc21e2dfbfab0f284c0 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 5 Aug 2011 20:54:08 +0000 Subject: [PATCH] Handle id back compat in isset magic method. see #15458 git-svn-id: https://develop.svn.wordpress.org/trunk@18515 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/capabilities.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-includes/capabilities.php b/wp-includes/capabilities.php index 554f5be79c..ae2dc2a5ce 100644 --- a/wp-includes/capabilities.php +++ b/wp-includes/capabilities.php @@ -462,6 +462,10 @@ class WP_User { * @since 3.3.0 */ function __isset( $key ) { + if ( 'id' == $key ) { + _deprecated_argument( 'WP_User->id', '2.1', __( 'Use WP_User->ID instead.' ) ); + $key = 'ID'; + } return isset( $this->data->$key ); }