From 902cbda4247daab365bf52d7d4554029aaa97cfb Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 5 Aug 2011 20:54:08 +0000 Subject: [PATCH] Handle id back compat in isset magic method. see #15458 git-svn-id: http://svn.automattic.com/wordpress/trunk@18515 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 ); }