Changeset 13337
- Timestamp:
- 02/23/2010 07:58:53 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network.php
r13025 r13337 16 16 if ( ! is_super_admin() ) 17 17 wp_die( __( 'You do not have sufficient permissions to manage options for this blog.' ) ); 18 19 // We need to create references to ms global tables to enable Network. 20 foreach ( $wpdb->tables( 'ms_global' ) as $table => $prefixed_table ) 21 $wpdb->$table = $prefixed_table; 18 22 19 23 $title = __( 'Network Settings' ); -
trunk/wp-includes/wp-db.php
r13327 r13337 626 626 * @uses is_multisite() 627 627 * 628 * @param string $scope Can be all, global, blog, or old tables. Default all.628 * @param string $scope Can be all, global, ms_global, blog, or old tables. Default all. 629 629 * All returns the blog tables for the queried blog and all global tables. 630 630 * @param bool $prefix Whether to include table prefixes. Default true. If blog 631 631 * prefix is requested, then the custom users and usermeta tables will be mapped. 632 632 * @param int $blog_id The blog_id to prefix. Defaults to main blog. Used only when prefix is requested. 633 * @return array Table names. When a prefix is requested, the key is the 634 * unprefixed table name. 633 * @return array Table names. When a prefix is requested, the key is the unprefixed table name. 635 634 */ 636 635 function tables( $scope = 'all', $prefix = true, $blog_id = 0 ) { … … 641 640 case 'blog' : 642 641 $tables = $this->tables; 642 break; 643 case 'ms_global' : 644 $tables = $this->ms_global_tables; 643 645 break; 644 646 case 'global' :
Note: See TracChangeset
for help on using the changeset viewer.