WordPress.org

Make WordPress Core

Changeset 13666


Ignore:
Timestamp:
03/11/2010 06:24:37 PM (10 years ago)
Author:
nacin
Message:

Fix assignment in WP_User::for_blog(). props prettyboymp, fixes #12587

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/capabilities.php

    r13547 r13666  
    769769    function for_blog( $blog_id = '' ) {
    770770        global $wpdb;
    771         if ( !empty($blog_id) ) {
    772             $cap_key = $wpdb->get_blog_prefix( $blog_id );
    773             $cap_key. 'capabilities';
    774         } else {
     771        if ( ! empty( $blog_id ) )
     772            $cap_key = $wpdb->get_blog_prefix( $blog_id ) . 'capabilities';
     773        else
    775774            $cap_key = '';
    776         }
    777         $this->_init_caps($cap_key);
     775        $this->_init_caps( $cap_key );
    778776    }
    779777}
Note: See TracChangeset for help on using the changeset viewer.