33 * Plugin Name: Multisite Enhancements
44 * Description: Enhance Multisite for Network Admins with different topics
55 * Plugin URI: https://github.com/bueltge/WordPress-Multisite-Enhancements
6- * Version: 1.5.1
6+ * Version: 1.5.2
77 * Author: Frank Bültge
88 * Author URI: https://bueltge.de
99 * License: GPLv2+
@@ -49,7 +49,7 @@ class Multisite_Enhancements {
4949 public static function get_object () {
5050
5151 if ( null === self ::$ class_object ) {
52- self ::$ class_object = new self ;
52+ self ::$ class_object = new self () ;
5353 }
5454
5555 return self ::$ class_object ;
@@ -82,7 +82,6 @@ public function __construct() {
8282 * @since 2016-10-23
8383 */
8484 public function load_translation () {
85-
8685 load_plugin_textdomain (
8786 'multisite-enhancements ' ,
8887 false ,
@@ -96,7 +95,6 @@ public function load_translation() {
9695 * @since 0.0.1
9796 */
9897 public function error_msg_no_multisite () {
99-
10098 deactivate_plugins ( plugin_basename ( __FILE__ ) );
10199 ?>
102100 <div class="error">
@@ -133,17 +131,16 @@ public function error_msg_no_multisite() {
133131 * @since 0.0.1
134132 */
135133 public static function load () {
136-
137134 $ file_base = self ::$ file_base ;
138135 define ( 'MULTISITE_ENHANCEMENT_BASE ' , $ file_base );
139136
140137 $ autoload_paths = glob ( "$ file_base/autoload/*.php " );
141138
142139 foreach ( $ autoload_paths as $ classnames => $ path ) {
143- $ path_split = explode ( DIRECTORY_SEPARATOR , $ path );
144- $ class = end ( $ path_split );
140+ $ path_split = explode ( DIRECTORY_SEPARATOR , $ path );
141+ $ class = end ( $ path_split );
145142 $ autoload_files [$ class ] = $ path ;
146- }
143+ }
147144
148145 $ autoload_files = (array ) apply_filters ( 'multisite_enhancements_autoload ' , $ autoload_files );
149146
0 commit comments