Skip to content

Commit

Permalink
small code rule fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bueltge committed Nov 14, 2019
1 parent b7a0ab9 commit 8b6e1e3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions inc/autoload/class-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ class Multisite_Core {
* Init the class.
*/
public static function init() {

$class = __CLASS__;
if ( empty( $GLOBALS[ $class ] ) ) {
$GLOBALS[ $class ] = new $class;
$GLOBALS[ $class ] = new $class();
}
}

Expand Down Expand Up @@ -72,7 +71,6 @@ public static function get_blog_list( $start = 0, $num = 10, $details = false, $
}

if ( false === $blogs ) {

global $wpdb;

// Add limit for select.
Expand Down Expand Up @@ -107,7 +105,6 @@ public static function get_blog_list( $start = 0, $num = 10, $details = false, $

// Only if usable, set via var.
if (true === $details ) {

/**
* Get data to each site in the network.
*
Expand All @@ -121,7 +118,6 @@ public static function get_blog_list( $start = 0, $num = 10, $details = false, $
}

if ( false === $blog_list ) {

global $wpdb;
/**
* The data details of each site of the network.
Expand Down

0 comments on commit 8b6e1e3

Please sign in to comment.