Skip to content

Commit

Permalink
ready for a new version
Browse files Browse the repository at this point in the history
  • Loading branch information
bueltge committed Nov 14, 2019
1 parent 32b0c2c commit ba03a3e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
13 changes: 5 additions & 8 deletions multisite-enhancements.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Multisite Enhancements
* Description: Enhance Multisite for Network Admins with different topics
* Plugin URI: https://github.com/bueltge/WordPress-Multisite-Enhancements
* Version: 1.5.1
* Version: 1.5.2
* Author: Frank Bültge
* Author URI: https://bueltge.de
* License: GPLv2+
Expand Down Expand Up @@ -49,7 +49,7 @@ class Multisite_Enhancements {
public static function get_object() {

if ( null === self::$class_object ) {
self::$class_object = new self;
self::$class_object = new self();
}

return self::$class_object;
Expand Down Expand Up @@ -82,7 +82,6 @@ public function __construct() {
* @since 2016-10-23
*/
public function load_translation() {

load_plugin_textdomain(
'multisite-enhancements',
false,
Expand All @@ -96,7 +95,6 @@ public function load_translation() {
* @since 0.0.1
*/
public function error_msg_no_multisite() {

deactivate_plugins( plugin_basename( __FILE__ ) );
?>
<div class="error">
Expand Down Expand Up @@ -133,17 +131,16 @@ public function error_msg_no_multisite() {
* @since 0.0.1
*/
public static function load() {

$file_base = self::$file_base;
define( 'MULTISITE_ENHANCEMENT_BASE', $file_base );

$autoload_paths = glob( "$file_base/autoload/*.php" );

foreach ( $autoload_paths as $classnames => $path ) {
$path_split = explode( DIRECTORY_SEPARATOR, $path );
$class = end( $path_split );
$path_split = explode( DIRECTORY_SEPARATOR, $path );
$class = end( $path_split );
$autoload_files[$class] = $path;
}
}

$autoload_files = (array) apply_filters( 'multisite_enhancements_autoload', $autoload_files );

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wordpress-multisite-enhancements",
"version": "1.5.1",
"version": "1.5.2",
"description": "Enhance WordPress Multisite for Network Admins with different topics.",
"homepage": "https://github.com/bueltge/wordpress-multisite-enhancements",
"bugs": "https://github.com/bueltge/wordpress-multisite-enhancements/issues",
Expand Down
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
Contributors: Bueltge, inpsyde
Tags: multisite, administration, admin bar, network,
Requires at least: 4.6
Tested up to: 5.1
Tested up to: 5.3
Requires PHP: 5.6
Stable tag: 1.5.1
Stable tag: 1.5.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -97,6 +97,10 @@ I'm German and my English might be gruesome here and there.
So please be patient with me and let me know of typos or grammatical parts. Thanks

== Changelog ==
= 1.5.2 (2019-11-14) =
* Fix style problem on list of all sites for admin bar.
* Change enqueue of styles and script to default variants.

= 1.5.1 (2019-02-25) =
* Remove feature 'Networkmenu is now scrollable'.

Expand Down

0 comments on commit ba03a3e

Please sign in to comment.