From 61e4b312dad2ef300b776695817f2a5d7b1c5a05 Mon Sep 17 00:00:00 2001 From: bueltge Date: Thu, 14 Dec 2017 13:15:52 +0100 Subject: [PATCH] Use scricto code rule for jquery script --- must_use_loader.php | 6 +++--- readme.md | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/must_use_loader.php b/must_use_loader.php index 8f32f40..cee4b7e 100644 --- a/must_use_loader.php +++ b/must_use_loader.php @@ -224,7 +224,7 @@ public function get_mu_plugins() { foreach ( $mu_plugins as $plugin_file => $not_used ) { // Skip files directly at root // And skip folders starting with an underscore as we want to turn those plugins off. - if ( '.' !== dirname( $plugin_file ) && dirname($plugin_file)[0] !== '_' ) { + if ( '.' !== dirname( $plugin_file ) && dirname( $plugin_file )[0] !== '_' ) { $plugins[] = $plugin_file; } } @@ -293,7 +293,7 @@ public function change_view_values() { $item = sprintf( _n( 'item', 'items', $this->mustuse_total ), number_format_i18n( $this->mustuse_total ) ); ?>