Make WordPress Core


Ignore:
Timestamp:
10/04/2012 12:40:09 PM (14 years ago)
Author:
ryan
Message:

Reduce use of global. Use get_blog_details() instead. fixes #22090

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-importer.php

    r17771 r22108  
    133133                        }
    134134                        $blog_id = (int) $blog->blog_id;
    135                         // Restore global $current_blog
    136                         global $current_blog;
    137                         $current_blog = $blog;
    138135                }
    139136
     
    213210         */
    214211        function is_user_over_quota() {
    215                 global $current_blog;
    216 
    217212                if ( function_exists( 'upload_is_user_over_quota' ) ) {
    218213                        if ( upload_is_user_over_quota( 1 ) ) {
Note: See TracChangeset for help on using the changeset viewer.