Ticket #15458: set.15458.diff

File set.15458.diff, 484 bytes (added by scribu, 22 months ago)
Line 
1Index: wp-includes/capabilities.php
2===================================================================
3--- wp-includes/capabilities.php        (revision 18504)
4+++ wp-includes/capabilities.php        (working copy)
5@@ -507,6 +507,12 @@
6         * @since 3.3.0
7         */
8        function __set( $key, $value ) {
9+               if ( 'id' == $key ) {
10+                       _deprecated_argument( 'WP_User->id', '2.1', __( 'Use <code>WP_User->ID</code> instead.' ) );
11+                       $this->ID = $value;
12+                       return;
13+               }
14+
15                $this->data->$key = $value;
16        }
17