Skip to content

Instantly share code, notes, and snippets.

View palaksoni's full-sized avatar

Palak Soni palaksoni

View GitHub Profile
@palaksoni
palaksoni / gist:1424948
Created December 2, 2011 21:40
[diff] Wordpress - PHP 5.4 alpha2-dev - wp-includes/user.php and wp-includes/class-wp-admin-bar.php
Index: wp-includes/user.php
===================================================================
--- wp-includes/user.php (revision 18407)
+++ wp-includes/user.php (working copy)
@@ -657,6 +657,7 @@
if ( !is_multisite() ) {
$blog_id = get_current_blog_id();
$blogs = array();
+ $blogs[ $blog_id ] = (object) $blogs[ $blog_id ];
$blogs[ $blog_id ]->userblog_id = $blog_id;