WordPress.org

Make WordPress Core

Ticket #19848: is_main_site.diff

File is_main_site.diff, 420 bytes (added by tw2113, 2 years ago)

Changed $current_blog->blog_id to $current_blog->id

  • wp-includes/functions.php

     
    31063106                return true; 
    31073107 
    31083108        if ( !$blog_id ) 
    3109                 $blog_id = $current_blog->blog_id; 
     3109                $blog_id = $current_blog->id; 
    31103110 
    3111         return $blog_id == $current_site->blog_id; 
     3111        return $blog_id == $current_site->id; 
    31123112} 
    31133113 
    31143114/**