Skip to:
Content

Changeset 1747


Ignore:
Timestamp:
09/27/08 06:49:42 (6 years ago)
Author:
sambauers
Message:

Create dropdown list of keymasters from bb_capabilities, wp_capabilities and wp_1_capabilities. Allows applying keymaster role to admins on the blog with id 1 in a WPMU install.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-admin/class-install.php

    r1738 r1747  
    22932293        $bb_keymaster_meta_key = $bbdb->escape( $bb_table_prefix . 'capabilities' ); 
    22942294        $wp_administrator_meta_key = $bbdb->escape( $bb->wp_table_prefix . 'capabilities' ); 
     2295        $wpmu_administrator_meta_key = $bbdb->escape( $bb->wp_table_prefix . '1_capabilities' ); 
    22952296        $keymaster_query = <<<EOQ 
    22962297            SELECT 
     
    23032304            WHERE 
    23042305                ( 
     2306                    ( 
     2307                        meta_key = '$wpmu_administrator_meta_key' AND 
     2308                        meta_value LIKE '%administrator%' 
     2309                    ) OR 
    23052310                    ( 
    23062311                        meta_key = '$wp_administrator_meta_key' AND 
Note: See TracChangeset for help on using the changeset viewer.