Ticket #20043: 20043.patch
File 20043.patch, 689 bytes (added by , 13 years ago) |
---|
-
wp-includes/capabilities.php
558 558 } 559 559 560 560 /** 561 * Magic method for unsetting a certain custom field 562 * 563 * @since 3.4.0 564 */ 565 function __unset( $key ) { 566 if ( 'id' == $key ) { 567 _deprecated_argument( 'WP_User->id', '2.1', __( 'Use <code>WP_User->ID</code> instead.' ) ); 568 $key = 'ID'; 569 } 570 571 if ( isset( $this->data->$key ) ) 572 unset( $this->data->$key ); 573 574 if ( isset( self::$back_compat_keys[ $key ] ) ) 575 unset( self::$back_compat_keys[ $key ] ); 576 } 577 578 /** 561 579 * Magic method for accessing custom fields 562 580 * 563 581 * @since 3.3.0