Skip to content

Commit

Permalink
Hotfix: Enhancement: Added support for justify-content. `align-item…
Browse files Browse the repository at this point in the history
…s`, and `flex-wrap` in CSSTidy.
  • Loading branch information
arunbasillal committed May 16, 2023
1 parent eaff7b6 commit 6287efd
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
9 changes: 5 additions & 4 deletions admincssmu.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions csstidy/data.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
12 changes: 11 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6287efd

Please sign in to comment.