Changeset 37985 for trunk/src/wp-includes/class-wp-user.php
- Timestamp:
- 07/06/2016 12:39:01 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-user.php
r37431 r37985 270 270 public function __isset( $key ) { 271 271 if ( 'id' == $key ) { 272 _deprecated_argument( 'WP_User->id', '2.1 ',272 _deprecated_argument( 'WP_User->id', '2.1.0', 273 273 sprintf( 274 274 /* translators: %s: WP_User->ID */ … … 300 300 public function __get( $key ) { 301 301 if ( 'id' == $key ) { 302 _deprecated_argument( 'WP_User->id', '2.1 ',302 _deprecated_argument( 'WP_User->id', '2.1.0', 303 303 sprintf( 304 304 /* translators: %s: WP_User->ID */ … … 339 339 public function __set( $key, $value ) { 340 340 if ( 'id' == $key ) { 341 _deprecated_argument( 'WP_User->id', '2.1 ',341 _deprecated_argument( 'WP_User->id', '2.1.0', 342 342 sprintf( 343 343 /* translators: %s: WP_User->ID */ … … 363 363 public function __unset( $key ) { 364 364 if ( 'id' == $key ) { 365 _deprecated_argument( 'WP_User->id', '2.1 ',365 _deprecated_argument( 'WP_User->id', '2.1.0', 366 366 sprintf( 367 367 /* translators: %s: WP_User->ID */ … … 713 713 public function has_cap( $cap ) { 714 714 if ( is_numeric( $cap ) ) { 715 _deprecated_argument( __FUNCTION__, '2.0 ', __('Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.') );715 _deprecated_argument( __FUNCTION__, '2.0.0', __('Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.') ); 716 716 $cap = $this->translate_level_to_cap( $cap ); 717 717 }
Note: See TracChangeset
for help on using the changeset viewer.