mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Coding Standards: Always use parentheses when instantiating an object.
Note: This will be enforced by WPCS 3.0.0. Props jrf. See #56791. git-svn-id: https://develop.svn.wordpress.org/trunk@54891 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -951,7 +951,7 @@ function get_blogs_of_user( $user_id, $all = false ) {
|
||||
|
||||
if ( ! is_multisite() ) {
|
||||
$site_id = get_current_blog_id();
|
||||
$sites = array( $site_id => new stdClass );
|
||||
$sites = array( $site_id => new stdClass() );
|
||||
$sites[ $site_id ]->userblog_id = $site_id;
|
||||
$sites[ $site_id ]->blogname = get_option( 'blogname' );
|
||||
$sites[ $site_id ]->domain = '';
|
||||
|
||||
Reference in New Issue
Block a user