Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,21 @@ jobs:
uses: codecov/codecov-action@v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: tests/coverage.xml
file: tests/coverage.xml
php74-compat:
name: PHP 7.4 (production dependencies)
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v7
- name: Setup PHP 7.4
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
tools: composer:v2
- name: Install production dependencies
run: composer install --no-dev --prefer-dist --no-progress
# Syntax only. php -l rejects PHP 8 grammar on 7.4, but not calls to PHP 8
# library functions: includes/ relies on WordPress polyfilling str_starts_with().
- name: Lint the shipped PHP files for PHP 7.4 syntax
run: git ls-files '*.php' | grep -vE '^(tests|bin)/' | xargs -n1 -P4 php -l
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.0.3
* Fix: the plugin required PHP-DI 7, which needs PHP 8.0, while MSLS itself declares PHP 7.4 as its minimum. PHP-DI is back on the 6.4 series, so an installation on PHP 7.4 can resolve the dependencies again.
* Internal: declare `Requires PHP: 7.4` in the plugin header so WordPress blocks activation on older PHP versions, and check the production dependencies against PHP 7.4 in CI.

## 3.0.2
* Fix: opening the settings page on a blog with more users than the "Reference user" dropdown shows raised a PHP notice, which landed in the error log and in services such as Sentry. The limit is now reported as a hint below the dropdown, where it belongs.
* Internal: detect the truncated user list from the query itself instead of calling `count_users()`, which drops a costly query from the settings page on blogs with many users.
Expand Down
5 changes: 3 additions & 2 deletions MultisiteLanguageSwitcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
* Multisite Language Switcher Plugin
*
* Plugin Name: Multisite Language Switcher
* Version: 3.0.2
* Version: 3.0.3
* Plugin URI: http://msls.co/
* Description: A simple but powerful plugin that will help you to manage the relations of your contents in a multilingual multisite-installation.
* Requires PHP: 7.4
* Author: Dennis Ploetner
* Author URI: http://lloc.de/
* Text Domain: multisite-language-switcher
Expand Down Expand Up @@ -42,7 +43,7 @@
* @author Dennis Ploetner <re@lloc.de>
*/
if ( ! defined( 'MSLS_PLUGIN_VERSION' ) ) {
define( 'MSLS_PLUGIN_VERSION', '3.0.2' );
define( 'MSLS_PLUGIN_VERSION', '3.0.3' );
define( 'MSLS_PLUGIN_PATH', plugin_basename( __FILE__ ) );
define( 'MSLS_PLUGIN__FILE__', __FILE__ );

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"require": {
"php": ">=7.4",
"composer/installers": "~2.3.0",
"php-di/php-di": "^7.0",
"php-di/php-di": "^6.4",
"ext-json": "*"
},
"require-dev": {
Expand Down
130 changes: 85 additions & 45 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Tags: multilingual, multisite, language, switcher, localization
Requires at least: 6.1
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 3.0.2
Stable tag: 3.0.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -93,6 +93,10 @@ Please visit the [MSLS website](https://msls.co/) or use the [WordPress support

== Changelog ==

= 3.0.3 =

* Fixed: on PHP 7.4 the plugin's dependencies could not be installed, because one of them required PHP 8. MSLS supports PHP 7.4 again, as documented.

= 3.0.2 =

* Fixed: with more than 100 users on a blog, opening the settings page raised a PHP notice that ended up in the error log (and in services such as Sentry). The truncated user list is now reported as a hint below the "Reference user" dropdown instead.
Expand Down Expand Up @@ -134,6 +138,12 @@ The full history is kept in the separate [Changelog](https://github.com/lloc/Mul

== Upgrade Notice ==

= 3.0.3 =

Maintenance release for PHP 7.4 installations. One of the plugin's dependencies required
PHP 8, which broke the installation on the PHP version MSLS documents as its minimum. No
changes to the plugin's behaviour.

= 3.0.2 =

Bugfix release. The settings page no longer logs a PHP notice when the blog has more users
Expand Down
2 changes: 1 addition & 1 deletion src/msls-widget-block/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"icon": "translation",
"category": "widgets",
"name": "lloc/msls-widget-block",
"version": "3.0.2",
"version": "3.0.3",
"description": "Review the settings for the Multisite Language Switcher plugin, as the block utilizes the API function `msls_the_switcher()` for its output.",
"example": {},
"supports": {
Expand Down
Loading