[wp-trac] [WordPress Trac] #22090: Eliminate use of global $current_blog
WordPress Trac
wp-trac at lists.automattic.com
Wed Oct 3 21:06:07 UTC 2012
#22090: Eliminate use of global $current_blog
--------------------------+--------------------
Reporter: ryan | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.5
Component: Multisite | Version: 3.4.2
Severity: normal | Resolution:
Keywords: |
--------------------------+--------------------
Comment (by nacin):
Matches outside of ms-settings.php:
{{{
wp-admin/includes/class-wp-importer.php
135: // Restore global $current_blog
136: global $current_blog;
137: $current_blog = $blog;
215: global $current_blog;
wp-admin/ms-delete-site.php
75: <p><input id="confirmdelete" type="checkbox"
name="confirmdelete" value="1" /> <label for="confirmdelete"><strong><?php
printf( __( "I'm sure I want to permanently disable my site, and I am
aware I can never get it back or use %s again." ), is_subdomain_install()
? $current_blog->domain : $current_blog->domain . $current_blog->path );
?></strong></label></p>
wp-admin/network/admin.php
18:$redirect_network_admin_request = ( ( $current_blog->domain !=
$current_site->domain ) || ( $current_blog->path != $current_site->path )
);
wp-admin/user/admin.php
19:$redirect_user_admin_request = ( ( $current_blog->domain !=
$current_site->domain ) || ( $current_blog->path != $current_site->path )
);
wp-includes/class-wp-xmlrpc-server.php
3663: global $current_blog;
3664: $domain = $current_blog->domain;
3665: $path = $current_blog->path . 'xmlrpc.php';
wp-includes/functions.php
3121: global $current_site, $current_blog;
3127: $blog_id = $current_blog->blog_id;
wp-includes/ms-files.php
21:if ( $current_blog->archived == '1' || $current_blog->spam == '1' ||
$current_blog->deleted == '1' ) {
wp-includes/ms-load.php
72: global $wpdb, $current_blog;
83: if ( '1' == $current_blog->deleted ) {
90: if ( '2' == $current_blog->deleted ) {
97: if ( $current_blog->archived == '1' || $current_blog->spam == '1'
) {
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22090#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list