WordPress.org

Make WordPress Core

Ticket #18049: diff

File diff, 1.4 KB (added by eko-fr, 3 years ago)
  • wp-includes/user.php

     
    657657        if ( !is_multisite() ) { 
    658658                $blog_id = get_current_blog_id(); 
    659659                $blogs = array(); 
     660                $blogs[ $blog_id ] = (object) $blogs[ $blog_id ]; 
    660661                $blogs[ $blog_id ]->userblog_id = $blog_id; 
    661662                $blogs[ $blog_id ]->blogname = get_option('blogname'); 
    662663                $blogs[ $blog_id ]->domain = ''; 
  • wp-includes/class-wp-admin-bar.php

     
    164164        function add_node( $parent_id, &$menu, $child ) { 
    165165                foreach( $menu as $id => $menu_item ) { 
    166166                        if ( $parent_id == $id ) { 
     167                            $menu->{$parent_id}['children'] = (object) $menu->{$parent_id}['children']; 
    167168                                $menu->{$parent_id}['children']->{$child['id']} = $child; 
    168169                                $child = null; 
    169170                                return true; 
  • wp-admin/includes/theme.php

     
    2020                delete_option( 'current_theme' ); 
    2121                $current_theme = get_current_theme(); 
    2222        } 
     23        $ct = new stdClass(); 
    2324        $ct->name = $current_theme; 
    2425        $ct->title = $themes[$current_theme]['Title']; 
    2526        $ct->version = $themes[$current_theme]['Version'];