Ticket #16617: capabilities_patch.diff
File capabilities_patch.diff, 608 bytes (added by , 14 years ago) |
---|
-
wp-includes/capabilities.php
100 100 global $wpdb, $wp_user_roles; 101 101 $this->role_key = $wpdb->prefix . 'user_roles'; 102 102 if ( ! empty( $wp_user_roles ) ) { 103 $this->roles = $wp_user_roles;104 103 $this->use_db = false; 105 104 } else { 106 $ this->roles = get_option( $this->role_key );105 $wp_user_roles = get_option( $this->role_key ); 107 106 } 107 $this->roles = &$wp_user_roles; 108 108 109 109 if ( empty( $this->roles ) ) 110 110 return;