Skip to content

Commit 18f8aaa

Browse files
authored
Merge branch 'master' into dependabot/composer/phpunit/phpunit-tw-11
2 parents e3dbe4b + 9b73e72 commit 18f8aaa

38 files changed

+775
-338
lines changed

.distignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
.distignore
1616
.gitattributes
1717
.gitignore
18-
1918
.scrutinizer.yml
2019
Changelog.md
2120
Diagrams.md
@@ -30,4 +29,5 @@ phpdoc.xml
3029
phpstan.neon
3130
phpunit.xml
3231
playwright.config.ts
33-
setup.sh
32+
setup.sh
33+
multisite-language-switcher.zip

.github/workflows/assets-update.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Plugin asset/readme update
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
trunk:
8+
name: Push to trunk
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- name: WordPress.org plugin asset/readme update
13+
uses: 10up/action-wordpress-plugin-asset-update@stable
14+
env:
15+
SLUG: multisite-language-switcher
16+
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
17+
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
18+
IGNORE_OTHER_FILES: true

.github/workflows/plugin-check.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on: # rebuild any PRs and main branch changes
44
push:
55
branches:
66
- master
7-
- 'releases/*'
8-
97
jobs:
108
test:
119
runs-on: ubuntu-latest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.DS_Store
12
.idea/
23
.phpunit.result.cache
34
.phpunit.cache

.wordpress-org/banner-1544x500.png

81.3 KB
Loading

.wordpress-org/banner-772x250.png

47.4 KB
Loading

.wordpress-org/icon-128x128.png

10.9 KB
Loading

.wordpress-org/icon-256x256.png

27 KB
Loading

.wordpress-org/screenshot-1.png

916 KB
Loading

.wordpress-org/screenshot-2.png

931 KB
Loading

.wordpress-org/screenshot-3.png

927 KB
Loading

.wordpress-org/screenshot-4.png

972 KB
Loading

.wordpress-org/screenshot-5.png

826 KB
Loading

.wordpress-org/screenshot-6.png

829 KB
Loading

.wordpress-org/screenshot-7.png

803 KB
Loading

Changelog.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
1+
## 2.9.4
2+
3+
- fix: type casting for msls_id in render_option call
4+
5+
## 2.9.3
6+
7+
- bugfix Welsh css flag
8+
19
## 2.9.2
210

11+
- Addressed some of the errors that were reported by PHPStan
12+
- Upgrade of PHPUnit to version 10
13+
- Raise coverage
14+
- Plugin check workflow added and existing workflows updated
15+
- Updated JS dependencies
16+
- Fix for build script
17+
- Security fixes
18+
- Fix double output
319

420
## 2.9.1
521

LICENSE

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.

MultisiteLanguageSwitcher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @wordpress-plugin
88
*
99
* Plugin Name: Multisite Language Switcher
10-
* Version: 2.9.2
10+
* Version: 2.9.4
1111
* Plugin URI: http://msls.co/
1212
* Description: A simple but powerful plugin that will help you to manage the relations of your contents in a multilingual multisite-installation.
1313
* Author: Dennis Ploetner
@@ -40,7 +40,7 @@
4040
* @author Dennis Ploetner <[email protected]>
4141
*/
4242
if ( ! defined( 'MSLS_PLUGIN_VERSION' ) ) {
43-
define( 'MSLS_PLUGIN_VERSION', '2.9.2' );
43+
define( 'MSLS_PLUGIN_VERSION', '2.9.4' );
4444
define( 'MSLS_PLUGIN_PATH', plugin_basename( __FILE__ ) );
4545
define( 'MSLS_PLUGIN__FILE__', __FILE__ );
4646

bin/flags-svg.php

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
$content = file_get_contents( 'build/translations.json' );
3131
$json = json_decode( $content );
3232
$glob = glob( 'css-flags/flags/4x3/*.svg' );
33-
$exceptions = [
33+
$exceptions = array(
3434
'ca' => 'es-ca',
3535
'eo' => 'eu',
36-
'cy' => 'gb-ls',
36+
'cy' => 'gb-wls',
3737
'gd' => 'gb-sct',
3838
'af' => 'za',
3939
'el' => 'gr',
@@ -81,9 +81,9 @@
8181
'de_CH_informal' => 'ch',
8282
'de_DE_formal' => 'de',
8383
'nl_NL_formal' => 'nl',
84-
];
84+
);
8585

86-
$icons = $not_found = [];
86+
$icons = $not_found = array();
8787

8888
echo '<?php', PHP_EOL, PHP_EOL;
8989

@@ -121,9 +121,12 @@
121121
if ( $count > 0 ) {
122122
echo '/**', PHP_EOL, " * {$count} unused icons in css-flags/flags/4x3/", PHP_EOL, ' * ', PHP_EOL;
123123

124-
array_walk( $glob, function ( &$item ) {
125-
$item = substr( $item, 6 );
126-
} );
124+
array_walk(
125+
$glob,
126+
function ( &$item ) {
127+
$item = substr( $item, 6 );
128+
}
129+
);
127130

128131
foreach ( array_chunk( $glob, 15 ) as $flags ) {
129132
echo ' * ', implode( ', ', $flags ), PHP_EOL;

build/translations.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)