Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Remove support for PHP versions earlier than 7.2 (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
shinsenter authored Aug 12, 2024
1 parent ac73cca commit de2364f
Show file tree
Hide file tree
Showing 20 changed files with 689 additions and 337 deletions.
3 changes: 3 additions & 0 deletions .docker/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!.gitignore
!docker-compose.yml
4 changes: 2 additions & 2 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* and optimizing processing on the browser when rendering the WordPress page.
* (c) 2021-2024 SHIN Company <service@shin.company>
*
* PHP Version >=5.6
* PHP Version >=7.2
*
* @category Web_Performance_Optimization
* @package defer-wordpress
Expand All @@ -21,7 +21,7 @@
and optimizing processing on the browser when rendering the WordPress page.
(c) 2021-2024 SHIN Company <service@shin.company>
PHP Version >=5.6
PHP Version >=7.2
@category Web_Performance_Optimization
@package defer-wordpress
Expand Down
6 changes: 4 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: shinsenter
Donate link: https://www.paypal.me/shinsenter
Tags: lazyload,optimize,pagespeed,performance,defer.js
Requires at least: 4.0
Tested up to: 6.6
Stable tag: 2.10.0
Tested up to: 6.6.1
Stable tag: 3.0.0
Requires PHP: 5.6
License: GPLv2 or later
License URI: https://code.shin.company/defer-wordpress/blob/master/LICENSE
Expand Down Expand Up @@ -161,6 +161,8 @@ We also recommend using it in conjunction with a page-caching plugin for the ult

== Changelog ==

3.0: Remove support for PHP versions earlier than 7.2

2.10: Removed dependency from polyfill[.]io

2.9: Fixed broken feeds and API responses
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.10.0
3.0.0
2 changes: 1 addition & 1 deletion admin/class-defer-wordpress-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* and optimizing processing on the browser when rendering the WordPress page.
* (c) 2021-2024 SHIN Company <service@shin.company>
*
* PHP Version >=5.6
* PHP Version >=7.2
*
* @category Web_Performance_Optimization
* @package defer-wordpress
Expand Down
2 changes: 1 addition & 1 deletion admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* and optimizing processing on the browser when rendering the WordPress page.
* (c) 2021-2024 SHIN Company <service@shin.company>
*
* PHP Version >=5.6
* PHP Version >=7.2
*
* @category Web_Performance_Optimization
* @package defer-wordpress
Expand Down
6 changes: 3 additions & 3 deletions admin/partials/defer-wordpress-admin-display.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@
<?php } ?>

<?php if (isset($save_settings)) {
$msg = false === $save_settings ?
$msg = false === $save_settings ?
'Cannot save the settings you selected.'
: 'All changes have been saved. Please clear Wordpress cache for these changes to take effect.';
$err = false === $save_settings ? 'error' : 'updated'; ?>
$err = false === $save_settings ? 'error' : 'updated'; ?>
<div id="message" class="<?php echo $err; ?> fade">
<p><strong><?php echo esc_html($msg); ?></strong></p>
</div>
<?php
} ?>
} ?>

<?php if (!isset($reset_settings) && !isset($save_settings)) { ?>
<div id="message" class="notice notice-info fade">
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}
],
"scripts": {
"fixer": "php-cs-fixer fix --show-progress=dots --verbose --ansi",
"fixer": "PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix --show-progress=dots --verbose --ansi",
"pull": [
"rm -rf ./cache/*/ ./vendor/ ./node_modules/ ./composer.lock ./package-lock.json",
"composer clearcache --ansi",
Expand All @@ -49,14 +49,14 @@
"optimize-autoloader": true,
"sort-packages": true,
"platform": {
"php": "5.6"
"php": "7.2"
},
"allow-plugins": {
"dangoodman/composer-for-wordpress": true
}
},
"require": {
"php": ">=5.6",
"php": ">=7.2",
"shinsenter/defer.php": "^2.5",
"symfony/polyfill-mbstring": "<=1.22.0",
"dangoodman/composer-for-wordpress": "^2.0"
Expand Down
Loading

0 comments on commit de2364f

Please sign in to comment.