From 6287efd374ea7cfad913df3872a258eadc197671 Mon Sep 17 00:00:00 2001 From: Arun Basil Lal Date: Tue, 16 May 2023 12:08:18 +0530 Subject: [PATCH] Hotfix: Enhancement: Added support for `justify-content`. `align-items`, and `flex-wrap` in CSSTidy. --- admincssmu.php | 9 +++++---- csstidy/data.inc.php | 3 +++ readme.txt | 12 +++++++++++- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/admincssmu.php b/admincssmu.php index 2b997ab..5f512b4 100644 --- a/admincssmu.php +++ b/admincssmu.php @@ -5,7 +5,7 @@ Description: A plugin to load a CSS file to style the admin side. Works with Multisite. Author: Arun Basil Lal Author URI: http://millionclues.com -Version: 2.8 +Version: 2.9 Text Domain: admin-css-mu Domain Path: /languages License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html @@ -84,9 +84,10 @@ function admincssmu_register_settings() { * @constant ADMINCSSMU_VERSION_NUM the version number of the current version * @refer https://codex.wordpress.org/Creating_Tables_with_Plugins#Adding_an_Upgrade_Function */ -if ( !defined( 'ADMINCSSMU_VERSION_NUM' ) ) - define( 'ADMINCSSMU_VERSION_NUM', '2.8' ); -// update_option('abl_admincssmu_version', ADMINCSSMU_VERSION_NUM); // Disabled to set default values for Load Admin CSS checkbox +if ( !defined( 'ADMINCSSMU_VERSION_NUM' ) ) { + define( 'ADMINCSSMU_VERSION_NUM', '2.9' ); + // update_option('abl_admincssmu_version', ADMINCSSMU_VERSION_NUM); // Disabled to set default values for Load Admin CSS checkbox +} /** * Set default values for Load CSS checkboxes diff --git a/csstidy/data.inc.php b/csstidy/data.inc.php index 0969027..72bd1c2 100644 --- a/csstidy/data.inc.php +++ b/csstidy/data.inc.php @@ -394,6 +394,9 @@ $data['csstidy']['all_properties']['flex-align'] = 'CSS3.0'; $data['csstidy']['all_properties']['flex-flow'] = 'CSS3.0'; $data['csstidy']['all_properties']['flex-direction'] = 'CSS3.0'; +$data['csstidy']['all_properties']['justify-content'] = 'CSS3.0'; +$data['csstidy']['all_properties']['align-items'] = 'CSS3.0'; +$data['csstidy']['all_properties']['flex-wrap'] = 'CSS3.0'; $data['csstidy']['all_properties']['flex-line-pack'] = 'CSS3.0'; $data['csstidy']['all_properties']['flex-order'] = 'CSS3.0'; $data['csstidy']['all_properties']['flex-pack'] = 'CSS3.0'; diff --git a/readme.txt b/readme.txt index 8f5b7a8..893db2a 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: arunbasillal Donate link: http://millionclues.com/donate/ Tags: admin css, mu plugin, custom admin css, admin, admin interface, multisite, must use Requires at least: 3.0 -Tested up to: 6.1.1 +Tested up to: 6.2 Stable tag: trunk License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -52,6 +52,11 @@ I am glad to hear that! You can either [make a donation](http://millionclues.com == Changelog == += 2.9 = +* Date: 16.May.2023 +* Tested on WordPress 6.2 +* Enhancement: Added support for `justify-content`. `align-items`, and `flex-wrap` in CSSTidy. + = 2.8 = * Date: 9.February.2023 * Tested on WordPress 6.1.1 @@ -116,6 +121,11 @@ I am glad to hear that! You can either [make a donation](http://millionclues.com == Upgrade Notice == += 2.9 = +* Date: 16.May.2023 +* Tested on WordPress 6.2 +* Enhancement: Added support for `justify-content`. `align-items`, and `flex-wrap` in CSSTidy. + = 2.8 = * Date: 9.February.2023 * Tested on WordPress 6.1.1