[wp-trac] [WordPress Trac] #19265: WP_User user_level property doesn't exist any more

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 16 19:56:29 UTC 2011


#19265: WP_User user_level property doesn't exist any more
--------------------------+------------------------------
 Reporter:  duck_         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  high          |  Milestone:  3.3
Component:  General       |    Version:  3.3
 Severity:  major         |   Keywords:  needs-unit-tests
--------------------------+------------------------------
 [18597] for #15458 removed _fill_single_user() which had the following
 piece of code to set up `user_level` from `$wpdb->prefix . 'user_level'`:

 {{{
 $level = $wpdb->prefix . 'user_level';
 if ( isset( $user->{$level} ) )
     $user->user_level = $user->{$level};
 }}}

 This mapping no longer exists so `$user->user_level` yields an empty
 string.

 This also means that the `$user_level` global isn't set correctly.

 See report at http://wordpress.org/support/topic/get_currentuserinfo-
 alternative-in-33-beta-3.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19265>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list