From e81370f386a61b6629a794ff2872486204bc1c95 Mon Sep 17 00:00:00 2001 From: Arun Basil Lal Date: Wed, 4 Oct 2023 14:05:03 +0530 Subject: [PATCH] Added compatibility with PHP 8.x = 2.10 = * Date: 04.October.2023 * Tested with WordPress 6.3.1 * Enhancement: Added compatibility with PHP 8.x --- admincssmu.php | 4 ++-- csstidy/class.csstidy.php | 1 + csstidy/class.csstidy_optimise.php | 6 ++++++ csstidy/class.csstidy_print.php | 7 +++++++ readme.txt | 13 ++++++++++++- 5 files changed, 28 insertions(+), 3 deletions(-) diff --git a/admincssmu.php b/admincssmu.php index 5f512b4..b6d612f 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.9 +Version: 2.10 Text Domain: admin-css-mu Domain Path: /languages License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html @@ -85,7 +85,7 @@ function admincssmu_register_settings() { * @refer https://codex.wordpress.org/Creating_Tables_with_Plugins#Adding_an_Upgrade_Function */ if ( !defined( 'ADMINCSSMU_VERSION_NUM' ) ) { - define( 'ADMINCSSMU_VERSION_NUM', '2.9' ); + define( 'ADMINCSSMU_VERSION_NUM', '2.10' ); // update_option('abl_admincssmu_version', ADMINCSSMU_VERSION_NUM); // Disabled to set default values for Load Admin CSS checkbox } diff --git a/csstidy/class.csstidy.php b/csstidy/class.csstidy.php index 749986b..a0b3398 100644 --- a/csstidy/class.csstidy.php +++ b/csstidy/class.csstidy.php @@ -261,6 +261,7 @@ class csstidy { * @var array */ public $data = array(); + public $template; /** * Loads standard template and sets default settings diff --git a/csstidy/class.csstidy_optimise.php b/csstidy/class.csstidy_optimise.php index e4971f6..01a1e79 100644 --- a/csstidy/class.csstidy_optimise.php +++ b/csstidy/class.csstidy_optimise.php @@ -47,6 +47,12 @@ class csstidy_optimise { * @var object */ public $parser; + public $css; + public $sub_value; + public $at; + public $selector; + public $property; + public $value; /** * Constructor diff --git a/csstidy/class.csstidy_print.php b/csstidy/class.csstidy_print.php index e501107..2567342 100644 --- a/csstidy/class.csstidy_print.php +++ b/csstidy/class.csstidy_print.php @@ -66,6 +66,13 @@ class csstidy_print { */ public $output_css_plain = ''; + public $css; + public $template; + public $tokens; + public $charset; + public $import; + public $namespace; + /** * Constructor * @param array $css contains the class csstidy diff --git a/readme.txt b/readme.txt index 893db2a..2c72f07 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,8 @@ 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.2 +Tested up to: 6.3.1 +Requires PHP: 7.0 Stable tag: trunk License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -52,6 +53,11 @@ I am glad to hear that! You can either [make a donation](http://millionclues.com == Changelog == += 2.10 = +* Date: 04.October.2023 +* Tested with WordPress 6.3.1 +* Enhancement: Added compatibility with PHP 8.x + = 2.9 = * Date: 16.May.2023 * Tested on WordPress 6.2 @@ -121,6 +127,11 @@ I am glad to hear that! You can either [make a donation](http://millionclues.com == Upgrade Notice == += 2.10 = +* Date: 04.October.2023 +* Tested with WordPress 6.3.1 +* Enhancement: Added compatibility with PHP 8.x + = 2.9 = * Date: 16.May.2023 * Tested on WordPress 6.2