Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions network-plugin-auditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ function manage_plugins_custom_column( $column_name, $plugin_file, $plugin_data

$blog_details = get_blog_details( $blog_id, true );

if ( isset( $blog_details->siteurl ) && isset( $blog_details->blogname ) ) {
if ( isset( $blog_details->siteurl ) ) {
$blog_url = $blog_details->siteurl;
$blog_name = $blog_details->blogname;
$blog_name = ! empty( $blog_details->blogname ) ? $blog_details->blogname : $blog_details->siteurl;
$blog_state = '';
$style = '';

Expand Down Expand Up @@ -294,10 +294,10 @@ static function get_network_blog_list( ) {

if ( function_exists( 'get_sites' ) && function_exists( 'wp_is_large_network' ) ) {
// number for get_sites(), uses the wp_is_large_network upper limit
$args = apply_filters( 'npa_get_network_blog_list_args', array(
'number' => 10000
$args = apply_filters( 'npa_get_network_blog_list_args', array(
'number' => 10000
) );

// If wp_is_large_network() returns TRUE, get_sites() will return an empty array.
// By default wp_is_large_network() returns TRUE if there are 10,000 or more sites in your network.
// This can be filtered using the wp_is_large_network filter.
Expand All @@ -307,9 +307,9 @@ static function get_network_blog_list( ) {

} else if ( function_exists( 'wp_get_sites' ) && function_exists( 'wp_is_large_network' ) ) {
// limit for wp_get_sites(), uses the wp_is_large_network upper limit
$args = apply_filters( 'npa_get_network_blog_list_args', array(
$args = apply_filters( 'npa_get_network_blog_list_args', array(
'network_id' => null, // all networks
'limit' => 10000
'limit' => 10000
) );

// If wp_is_large_network() returns TRUE, wp_get_sites() will return an empty array.
Expand Down Expand Up @@ -512,9 +512,9 @@ static function get_theme_link( $blog_id, $display='blog' ) {

$blog_details = get_blog_details( $blog_id, true );

if ( isset( $blog_details->siteurl ) && isset( $blog_details->blogname ) ) {
if ( isset( $blog_details->siteurl ) ) {
$blog_url = $blog_details->siteurl;
$blog_name = $blog_details->blogname;
$blog_name = ! empty( $blog_details->blogname ) ? $blog_details->blogname : $blog_details->siteurl;
$blog_state = '';
$style = '';

Expand Down