Plugin Directory

Changeset 2559100


Ignore:
Timestamp:
07/06/2021 06:34:27 AM (4 years ago)
Author:
hideokamoto
Message:

v6.1.2

Location:
c3-cloudfront-clear-cache/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • c3-cloudfront-clear-cache/trunk/c3-cloudfront-clear-cache.php

    r2558516 r2559100  
    22/**
    33 * Plugin Name: C3 Cloudfront Cache Controller
    4  * Version: 6.1.1
     4 * Version: 6.1.2
    55 * Plugin URI:https://github.com/amimoto-ami/c3-cloudfront-clear-cache
    66 * Description: Manage CloudFront Cache and provide some fixtures.
  • c3-cloudfront-clear-cache/trunk/classes/WP/Environment.php

    r2558516 r2559100  
    110110    }
    111111
     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
    112125}
  • c3-cloudfront-clear-cache/trunk/classes/WP/Fixtures.php

    r2558516 r2559100  
    2121 */
    2222class Fixtures {
     23    /**
     24     * Env class
     25     *
     26     * @var Environment
     27     */
     28    private $env;
     29
    2330    /**
    2431     * Hook
     
    4653                if ( $value instanceof Hooks ) {
    4754                    $this->hook_service = $value;
     55                } elseif ( $value instanceof Environment ) {
     56                    $this->env = $value;
    4857                }
    4958            }
     
    5160        if ( ! $this->hook_service ) {
    5261            $this->hook_service = new Hooks();
     62        }
     63        if ( ! $this->env ) {
     64            $this->env = new Environment();
    5365        }
    5466
     
    97109         * @see https://github.com/amimoto-ami/c3-cloudfront-clear-cache/issues/53
    98110         */
    99         if ( version_compare( '7.3.0', phpversion(), '>=' ) ) {
     111        if ( $this->env->is_supported_version( '7.3.0', phpversion() ) ) {
    100112            // PHP 7.3.0 or higher.
    101113            $args = array(
  • c3-cloudfront-clear-cache/trunk/package.json

    r2558516 r2559100  
    44  },
    55  "name": "trunk",
    6   "version": "1.0.0",
     6  "version": "6.1.2",
    77  "main": "index.js",
    88  "directories": {
  • c3-cloudfront-clear-cache/trunk/readme.txt

    r2558516 r2559100  
    55Requires at least: 4.9.0
    66Tested up to: 5.7.2
    7 Stable tag: 6.1.1
     7Stable tag: 6.1.2
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    111111== Changelog ==
    112112
    113 == 6.1.0 ==
     113== 6.1.2 ==
     114* [Fix] php version compare issue
     115
     116== 6.1.1 ==
    114117* [Fix] Plugin deactivation issue
    115118
Note: See TracChangeset for help on using the changeset viewer.