Ticket #19265: 19265.diff
| File 19265.diff, 943 bytes (added by , 15 years ago) |
|---|
-
wp-includes/capabilities.php
420 420 */ 421 421 var $filter = null; 422 422 423 private static $back_compat_keys = array( 424 'user_firstname' => 'first_name', 425 'user_lastname' => 'last_name', 426 'user_description' => 'description' 427 ); 423 private static $back_compat_keys; 428 424 429 425 /** 430 426 * Constructor … … 440 436 * @return WP_User 441 437 */ 442 438 function __construct( $id = 0, $name = '', $blog_id = '' ) { 439 if ( ! isset( self::$back_compat_keys ) ) { 440 self::$back_compat_keys = array( 441 'user_firstname' => 'first_name', 442 'user_lastname' => 'last_name', 443 'user_description' => 'description', 444 'user_level' => $GLOBALS['wpdb']->prefix . 'user_level', 445 ); 446 } 447 443 448 if ( ! empty( $id ) && ! is_numeric( $id ) ) { 444 449 $name = $id; 445 450 $id = 0;
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)