Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
level: 2
level: 3
paths:
- wp-multi-network/includes
- wpmn-loader.php
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ protected function handle_row_actions( $network, $column_name, $primary ) {

// Bail if not primary column.
if ( $primary !== $column_name ) {
return;
return '';
}

switch_to_network( $network->id );
Expand Down
2 changes: 1 addition & 1 deletion wp-multi-network/includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function user_has_networks( $user_id = 0 ) {
* @since 1.3.0
*
* @param int|WP_Network $network Optional. Network ID or object. Default is the current network.
* @return int Main site ID for the network.
* @return int|bool Main site ID for the network or false if network not found.
*/
function get_main_site_for_network( $network = null ) {
$network = get_network( $network );
Expand Down
2 changes: 1 addition & 1 deletion wpmn-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class WPMN_Loader {
* @since 1.3.0
* @var string
*/
public $asset_version = 202108250001;
public $asset_version = '202108250001';

/**
* Network admin class instance.
Expand Down
Loading