Changeset 2559100
- Timestamp:
- 07/06/2021 06:34:27 AM (4 years ago)
- Location:
- c3-cloudfront-clear-cache/trunk
- Files:
-
- 5 edited
-
c3-cloudfront-clear-cache.php (modified) (1 diff)
-
classes/WP/Environment.php (modified) (1 diff)
-
classes/WP/Fixtures.php (modified) (4 diffs)
-
package.json (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
c3-cloudfront-clear-cache/trunk/c3-cloudfront-clear-cache.php
r2558516 r2559100 2 2 /** 3 3 * Plugin Name: C3 Cloudfront Cache Controller 4 * Version: 6.1. 14 * Version: 6.1.2 5 5 * Plugin URI:https://github.com/amimoto-ami/c3-cloudfront-clear-cache 6 6 * Description: Manage CloudFront Cache and provide some fixtures. -
c3-cloudfront-clear-cache/trunk/classes/WP/Environment.php
r2558516 r2559100 110 110 } 111 111 112 /** 113 * Compare php version 114 * 115 * @param string $supported_version PHP version that will support at least. 116 * @param string $version Current php version. 117 */ 118 public function is_supported_version( string $supported_version, $version = null ) { 119 if ( ! isset( $version ) ) { 120 $version = phpversion(); 121 } 122 return version_compare( $supported_version, $version, '<=' ); 123 } 124 112 125 } -
c3-cloudfront-clear-cache/trunk/classes/WP/Fixtures.php
r2558516 r2559100 21 21 */ 22 22 class Fixtures { 23 /** 24 * Env class 25 * 26 * @var Environment 27 */ 28 private $env; 29 23 30 /** 24 31 * Hook … … 46 53 if ( $value instanceof Hooks ) { 47 54 $this->hook_service = $value; 55 } elseif ( $value instanceof Environment ) { 56 $this->env = $value; 48 57 } 49 58 } … … 51 60 if ( ! $this->hook_service ) { 52 61 $this->hook_service = new Hooks(); 62 } 63 if ( ! $this->env ) { 64 $this->env = new Environment(); 53 65 } 54 66 … … 97 109 * @see https://github.com/amimoto-ami/c3-cloudfront-clear-cache/issues/53 98 110 */ 99 if ( version_compare( '7.3.0', phpversion(), '>=') ) {111 if ( $this->env->is_supported_version( '7.3.0', phpversion() ) ) { 100 112 // PHP 7.3.0 or higher. 101 113 $args = array( -
c3-cloudfront-clear-cache/trunk/package.json
r2558516 r2559100 4 4 }, 5 5 "name": "trunk", 6 "version": " 1.0.0",6 "version": "6.1.2", 7 7 "main": "index.js", 8 8 "directories": { -
c3-cloudfront-clear-cache/trunk/readme.txt
r2558516 r2559100 5 5 Requires at least: 4.9.0 6 6 Tested up to: 5.7.2 7 Stable tag: 6.1. 17 Stable tag: 6.1.2 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 111 111 == Changelog == 112 112 113 == 6.1.0 == 113 == 6.1.2 == 114 * [Fix] php version compare issue 115 116 == 6.1.1 == 114 117 * [Fix] Plugin deactivation issue 115 118
Note: See TracChangeset
for help on using the changeset viewer.