Skip to content

Commit

Permalink
Version 2.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
lloc committed Aug 9, 2023
1 parent 2ea922d commit af37b95
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
11 changes: 8 additions & 3 deletions MslsSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin Name: MslsSelect
Plugin URI: https://github.com/lloc/MslsSelect
Description: Transforms the output of the Multisite Language Switcher to an HTML select
Version: 2.2.6
Version: 2.2.7
Author: Dennis Ploetner
Author URI: http://lloc.de/
*/
Expand Down Expand Up @@ -35,11 +35,14 @@
*/
class MslsSelect {

const VERSION = '2.2.6';
const VERSION = '2.2.7';

public function __construct() {
$options = get_option( 'msls' );

/**
* Check and set - if needed - the option to true because we want to have also the current blog in the list.
*/
if ( empty( $options['output_current_blog'] ) ) {
$options['output_current_blog'] = 1;

Expand All @@ -64,6 +67,8 @@ public static function init(): self {

/**
* Enqueue scripts action
*
* @return void
*/
public static function enqueue_scripts(): void {
wp_enqueue_script( 'mslsselect', plugins_url( '/js/mslsselect.min.js', __FILE__ ), [], self::VERSION, true );
Expand All @@ -85,7 +90,7 @@ public static function output_get( string $url, $link, bool $current ): string {
/**
* Filter for the 'msls_output_get_tags'-hook
*
* @return array
* @return array<string, string>
*/
public static function get_tags(): array {
return [
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
]
},
"require-dev": {
"phpunit/phpunit": "^8.3",
"phpunit/phpunit": "~9.6",
"brain/monkey": "2.*",
"phpstan/phpstan": "^1.8",
"szepeviktor/phpstan-wordpress": "^1.3.0",
"szepeviktor/phpstan-wordpress": "^1.1",
"phpstan/extension-installer": "^1.1"
},
"scripts": {
Expand Down
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Contributors: realloc
Donate link: http://www.greenpeace.org/international/
Tags: multilingual, multisite, language, switcher, international, localization, i18n, menu, select-box, html select
Requires at least: 3.6.1
Tested up to: 6.2
Tested up to: 6.3
Requires PHP: 7.1
Stable tag: 2.2.6
Stable tag: 2.2.7
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -26,6 +26,10 @@ But if you look for an **easy way** to change the output of the _Multisite Langu

== Changelog ==

= 2.2.7 =
* WordPress 6.3 tested
* Small enhancements

= 2.2.6 =
* WordPress 6.2.2 tested

Expand Down

0 comments on commit af37b95

Please sign in to comment.