Changeset 25615 for trunk/src/wp-includes/capabilities.php
- Timestamp:
- 09/24/2013 11:40:41 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/capabilities.php
r25438 r25615 96 96 function _init () { 97 97 global $wpdb, $wp_user_roles; 98 $this->role_key = $wpdb-> prefix. 'user_roles';98 $this->role_key = $wpdb->get_blog_prefix() . 'user_roles'; 99 99 if ( ! empty( $wp_user_roles ) ) { 100 100 $this->roles = $wp_user_roles; … … 132 132 133 133 // Duplicated from _init() to avoid an extra function call. 134 $this->role_key = $wpdb-> prefix. 'user_roles';134 $this->role_key = $wpdb->get_blog_prefix() . 'user_roles'; 135 135 $this->roles = get_option( $this->role_key ); 136 136 if ( empty( $this->roles ) ) … … 710 710 711 711 if ( empty($cap_key) ) 712 $this->cap_key = $wpdb-> prefix. 'capabilities';712 $this->cap_key = $wpdb->get_blog_prefix() . 'capabilities'; 713 713 else 714 714 $this->cap_key = $cap_key; … … 860 860 global $wpdb; 861 861 $this->user_level = array_reduce( array_keys( $this->allcaps ), array( $this, 'level_reduction' ), 0 ); 862 update_user_meta( $this->ID, $wpdb-> prefix. 'user_level', $this->user_level );862 update_user_meta( $this->ID, $wpdb->get_blog_prefix() . 'user_level', $this->user_level ); 863 863 } 864 864 … … 902 902 $this->caps = array(); 903 903 delete_user_meta( $this->ID, $this->cap_key ); 904 delete_user_meta( $this->ID, $wpdb-> prefix. 'user_level' );904 delete_user_meta( $this->ID, $wpdb->get_blog_prefix() . 'user_level' ); 905 905 $this->get_role_caps(); 906 906 }
Note: See TracChangeset
for help on using the changeset viewer.