Changeset 3300443
- Timestamp:
- 05/26/2025 06:49:57 AM (10 months ago)
- Location:
- amimoto-dashboard
- Files:
-
- 2 added
- 22 edited
- 1 copied
-
assets/banner-1544x500.png (modified) (1 prop) (previous)
-
assets/banner-772x250.png (modified) (1 prop) (previous)
-
assets/icon-128x128.png (modified) (1 prop) (previous)
-
assets/icon-256x256.png (modified) (1 prop) (previous)
-
tags/1.0.1 (copied) (copied from amimoto-dashboard/trunk)
-
tags/1.0.1/.github/workflows/push-asset-readme-update.yml (modified) (1 diff)
-
tags/1.0.1/.github/workflows/push-deploy.yml (modified) (1 diff)
-
tags/1.0.1/.github/workflows/test.yml (modified) (1 diff)
-
tags/1.0.1/.wp-env.json (modified) (1 diff)
-
tags/1.0.1/amimoto-plugin-dashboard.php (modified) (1 diff)
-
tags/1.0.1/classes/C3_Service.php (modified) (2 diffs)
-
tags/1.0.1/classes/NCC_Service.php (modified) (1 diff)
-
tags/1.0.1/classes/WP/Plugins.php (modified) (2 diffs)
-
tags/1.0.1/composer-php7.json (added)
-
tags/1.0.1/readme.txt (modified) (2 diffs)
-
trunk/.github/workflows/push-asset-readme-update.yml (modified) (1 diff)
-
trunk/.github/workflows/push-deploy.yml (modified) (1 diff)
-
trunk/.github/workflows/test.yml (modified) (1 diff)
-
trunk/.wp-env.json (modified) (1 diff)
-
trunk/amimoto-plugin-dashboard.php (modified) (1 diff)
-
trunk/classes/C3_Service.php (modified) (2 diffs)
-
trunk/classes/NCC_Service.php (modified) (1 diff)
-
trunk/classes/WP/Plugins.php (modified) (2 diffs)
-
trunk/composer-php7.json (added)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
amimoto-dashboard/assets/banner-1544x500.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
amimoto-dashboard/assets/banner-772x250.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
amimoto-dashboard/assets/icon-128x128.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
amimoto-dashboard/assets/icon-256x256.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
amimoto-dashboard/tags/1.0.1/.github/workflows/push-asset-readme-update.yml
r2538297 r3300443 11 11 - uses: actions/checkout@master 12 12 - name: WordPress.org plugin asset/readme update 13 uses: 10up/action s-wordpress/dotorg-plugin-asset-update@master13 uses: 10up/action-wordpress-plugin-asset-update@stable 14 14 env: 15 15 SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} -
amimoto-dashboard/tags/1.0.1/.github/workflows/push-deploy.yml
r2538297 r3300443 11 11 - uses: actions/checkout@master 12 12 - name: WordPress Plugin Deploy 13 uses: 10up/action-wordpress-plugin-deploy@ master13 uses: 10up/action-wordpress-plugin-deploy@stable 14 14 env: 15 15 SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} -
amimoto-dashboard/tags/1.0.1/.github/workflows/test.yml
r2538297 r3300443 1 1 name: Test plugin 2 on: 3 push 2 on: [push, pull_request] 4 3 5 4 jobs: 6 t ag:5 test: 7 6 name: PHP ${{ matrix.php }} / WP ${{ matrix.wp }} Test 8 7 runs-on: ubuntu-latest 9 services:10 mysql:11 image: mysql:5.712 env:13 MYSQL_ALLOW_EMPTY_PASSWORD: true14 MYSQL_ROOT_PASSWORD: root15 MYSQL_DATABASE: wordpress_test16 ports:17 - 3306:330618 options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=319 8 strategy: 20 9 matrix: 21 10 include: 22 #- php: 8.023 # wp: trunk24 # experimental: true25 11 - php: 7.4 26 wp: trunk 27 experimental: true 28 - php: 7.4 29 wp: latest 30 - php: 7.3 31 wp: trunk 32 experimental: true 33 - php: 7.3 34 wp: latest 35 - php: 7.2 36 wp: trunk 37 experimental: true 38 - php: 7.2 39 wp: latest 12 wp: 6.7 13 composer_file: composer-php7.json 14 - php: 8.2 15 wp: 6.7 16 composer_file: composer.json 40 17 steps: 41 18 - name: Checkout 42 19 uses: actions/checkout@master 43 - name: PHP ${{ matrix.php }} / WP ${{ matrix.wp }} Test 20 21 - name: PHP ${{ matrix.php }} Test 44 22 uses: shivammathur/setup-php@v2 45 23 with: 46 24 php-version: ${{ matrix.php }} 47 extensions: mbstring, intl , mysqli 48 ini-values: post_max_size=256M, short_open_tag=On #optional, setup php.ini configuration 49 coverage: xdebug #optional, setup coverage driver 50 51 - name: Check PHP Version 52 run: php -v 53 54 - name: Install phpunit global 25 extensions: mbstring, intl, mysqli 26 ini-values: post_max_size=256M, short_open_tag=On 27 coverage: xdebug 28 tools: composer:v2 29 30 - name: Setup Node.js 31 uses: actions/setup-node@v3 32 with: 33 node-version: '22' 34 35 - name: Ensure Yarn is installed 55 36 run: | 56 composer global require "phpunit/phpunit=5.7.*|6.*.*|7.*.*" 57 phpunit --version 58 59 - name: Cache composer packages 60 uses: actions/cache@v2 37 if ! command -v yarn &> /dev/null; then 38 echo "Yarn not found, installing..." 39 npm install -g yarn 40 fi 41 yarn --version 42 43 - name: Install plugin dependencies for PHP 7.4 44 if: ${{ matrix.php == '7.4' }} 45 run: | 46 if [ -f "${{ matrix.composer_file }}" ]; then 47 cp ${{ matrix.composer_file }} composer.json 48 fi 49 composer update --optimize-autoloader --prefer-dist 50 51 - name: Install plugin dependencies for PHP 8.2 52 if: ${{ matrix.php == '8.2' }} 53 run: | 54 composer install --optimize-autoloader --prefer-dist 55 56 - name: Start WP-ENV 57 uses: godaddy-wordpress/setup-wp-env@v1 58 with: 59 core: 'WordPress/WordPress#${{ matrix.wp }}' 60 phpVersion: '${{ matrix.php }}' 61 62 - name: Cache Composer packages 63 uses: actions/cache@v3 61 64 with: 62 65 path: vendor 63 key: composer-${{ hashFiles('composer.lock') }} 64 65 - name: Composer install 66 run: composer install --optimize-autoloader --prefer-dist 67 68 - name: Install WP Tests 69 run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 ${{ matrix.wp }} true 66 key: ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }} 67 restore-keys: | 68 ${{ runner.os }}-php-${{ matrix.php }}- 70 69 71 - name: phpunit tests70 - name: Run tests with PHPUnit 72 71 run: | 73 phpunit 74 WP_MULTISITE=1 phpunit 72 yarn test -
amimoto-dashboard/tags/1.0.1/.wp-env.json
r2538297 r3300443 1 1 { 2 "plugins": [ 3 "." 4 ] 2 "core": null, 3 "plugins": [ 4 ".", 5 "https://downloads.wordpress.org/plugin/wordpress-importer.zip" 6 ], 7 "phpVersion": "8.2", 8 "port": 8888, 9 "env": { 10 "tests": { 11 "port": 8889 12 } 13 } 5 14 } -
amimoto-dashboard/tags/1.0.1/amimoto-plugin-dashboard.php
r2538297 r3300443 2 2 /** 3 3 * Plugin Name: AMIMOTO Plugin Dashboard 4 * Version: 1.0. 04 * Version: 1.0.1 5 5 * Description: Control AMIMOTO helper plugins 6 6 * Author: hideokamoto,amimotoami -
amimoto-dashboard/tags/1.0.1/classes/C3_Service.php
r2538297 r3300443 68 68 return; 69 69 } 70 $result ;70 $result = null; 71 71 if ( isset( $_POST[ Constants::PLUGIN_ACTIVATION ] ) && $_POST[ Constants::PLUGIN_ACTIVATION ] ) { 72 72 if ( check_admin_referer( Constants::PLUGIN_ACTIVATION, Constants::PLUGIN_ACTIVATION ) ) { … … 108 108 $target = 'all'; 109 109 if ( isset( $_POST['invalidation_target'] ) && $_POST['invalidation_target'] ) { 110 $target = $_POST['invalidation_target'];110 $target = sanitize_text_field( $_POST['invalidation_target'] ); 111 111 } 112 112 $result = $this->invalidation( $target ); -
amimoto-dashboard/tags/1.0.1/classes/NCC_Service.php
r2538297 r3300443 62 62 return; 63 63 } 64 $result ;64 $result = null; 65 65 if ( isset( $_POST[ Constants::PLUGIN_ACTIVATION ] ) && $_POST[ Constants::PLUGIN_ACTIVATION ] ) { 66 66 if ( check_admin_referer( Constants::PLUGIN_ACTIVATION, Constants::PLUGIN_ACTIVATION ) ) { -
amimoto-dashboard/tags/1.0.1/classes/WP/Plugins.php
r2538297 r3300443 51 51 $activate_plugins = self::_get_active_plugins(); 52 52 if ( 53 array_search( $amimoto_plugins['C3 Cloudfront Cache Controller'], $activate_plugins, true ) > -153 array_search( $amimoto_plugins['C3 Cloudfront Cache Controller'], $activate_plugins, true ) !== false 54 54 ) { 55 55 return true; … … 83 83 $activate_plugins = self::_get_active_plugins(); 84 84 if ( 85 array_search( $amimoto_plugins['Nginx Cache Controller on GitHub'], $activate_plugins, true ) > -1||86 array_search( $amimoto_plugins['Nginx Cache Controller on WP.org'], $activate_plugins, true ) > -185 array_search( $amimoto_plugins['Nginx Cache Controller on GitHub'], $activate_plugins, true ) !== false || 86 array_search( $amimoto_plugins['Nginx Cache Controller on WP.org'], $activate_plugins, true ) !== false 87 87 ) { 88 88 return true; -
amimoto-dashboard/tags/1.0.1/readme.txt
r2538297 r3300443 5 5 Requires at least: 4.4.0 6 6 Tested up to: 5.7.2 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 37 37 38 38 == Changelog == 39 40 = 1.0.1 = 41 * Fixed PHP 8 compatibility issues while maintaining PHP 7 compatibility 42 * Updated GitHub Actions workflow to use wp-env for testing 43 39 44 40 45 = 1.0.0 = -
amimoto-dashboard/trunk/.github/workflows/push-asset-readme-update.yml
r2538297 r3300443 11 11 - uses: actions/checkout@master 12 12 - name: WordPress.org plugin asset/readme update 13 uses: 10up/action s-wordpress/dotorg-plugin-asset-update@master13 uses: 10up/action-wordpress-plugin-asset-update@stable 14 14 env: 15 15 SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} -
amimoto-dashboard/trunk/.github/workflows/push-deploy.yml
r2538297 r3300443 11 11 - uses: actions/checkout@master 12 12 - name: WordPress Plugin Deploy 13 uses: 10up/action-wordpress-plugin-deploy@ master13 uses: 10up/action-wordpress-plugin-deploy@stable 14 14 env: 15 15 SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} -
amimoto-dashboard/trunk/.github/workflows/test.yml
r2538297 r3300443 1 1 name: Test plugin 2 on: 3 push 2 on: [push, pull_request] 4 3 5 4 jobs: 6 t ag:5 test: 7 6 name: PHP ${{ matrix.php }} / WP ${{ matrix.wp }} Test 8 7 runs-on: ubuntu-latest 9 services:10 mysql:11 image: mysql:5.712 env:13 MYSQL_ALLOW_EMPTY_PASSWORD: true14 MYSQL_ROOT_PASSWORD: root15 MYSQL_DATABASE: wordpress_test16 ports:17 - 3306:330618 options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=319 8 strategy: 20 9 matrix: 21 10 include: 22 #- php: 8.023 # wp: trunk24 # experimental: true25 11 - php: 7.4 26 wp: trunk 27 experimental: true 28 - php: 7.4 29 wp: latest 30 - php: 7.3 31 wp: trunk 32 experimental: true 33 - php: 7.3 34 wp: latest 35 - php: 7.2 36 wp: trunk 37 experimental: true 38 - php: 7.2 39 wp: latest 12 wp: 6.7 13 composer_file: composer-php7.json 14 - php: 8.2 15 wp: 6.7 16 composer_file: composer.json 40 17 steps: 41 18 - name: Checkout 42 19 uses: actions/checkout@master 43 - name: PHP ${{ matrix.php }} / WP ${{ matrix.wp }} Test 20 21 - name: PHP ${{ matrix.php }} Test 44 22 uses: shivammathur/setup-php@v2 45 23 with: 46 24 php-version: ${{ matrix.php }} 47 extensions: mbstring, intl , mysqli 48 ini-values: post_max_size=256M, short_open_tag=On #optional, setup php.ini configuration 49 coverage: xdebug #optional, setup coverage driver 50 51 - name: Check PHP Version 52 run: php -v 53 54 - name: Install phpunit global 25 extensions: mbstring, intl, mysqli 26 ini-values: post_max_size=256M, short_open_tag=On 27 coverage: xdebug 28 tools: composer:v2 29 30 - name: Setup Node.js 31 uses: actions/setup-node@v3 32 with: 33 node-version: '22' 34 35 - name: Ensure Yarn is installed 55 36 run: | 56 composer global require "phpunit/phpunit=5.7.*|6.*.*|7.*.*" 57 phpunit --version 58 59 - name: Cache composer packages 60 uses: actions/cache@v2 37 if ! command -v yarn &> /dev/null; then 38 echo "Yarn not found, installing..." 39 npm install -g yarn 40 fi 41 yarn --version 42 43 - name: Install plugin dependencies for PHP 7.4 44 if: ${{ matrix.php == '7.4' }} 45 run: | 46 if [ -f "${{ matrix.composer_file }}" ]; then 47 cp ${{ matrix.composer_file }} composer.json 48 fi 49 composer update --optimize-autoloader --prefer-dist 50 51 - name: Install plugin dependencies for PHP 8.2 52 if: ${{ matrix.php == '8.2' }} 53 run: | 54 composer install --optimize-autoloader --prefer-dist 55 56 - name: Start WP-ENV 57 uses: godaddy-wordpress/setup-wp-env@v1 58 with: 59 core: 'WordPress/WordPress#${{ matrix.wp }}' 60 phpVersion: '${{ matrix.php }}' 61 62 - name: Cache Composer packages 63 uses: actions/cache@v3 61 64 with: 62 65 path: vendor 63 key: composer-${{ hashFiles('composer.lock') }} 64 65 - name: Composer install 66 run: composer install --optimize-autoloader --prefer-dist 67 68 - name: Install WP Tests 69 run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 ${{ matrix.wp }} true 66 key: ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }} 67 restore-keys: | 68 ${{ runner.os }}-php-${{ matrix.php }}- 70 69 71 - name: phpunit tests70 - name: Run tests with PHPUnit 72 71 run: | 73 phpunit 74 WP_MULTISITE=1 phpunit 72 yarn test -
amimoto-dashboard/trunk/.wp-env.json
r2538297 r3300443 1 1 { 2 "plugins": [ 3 "." 4 ] 2 "core": null, 3 "plugins": [ 4 ".", 5 "https://downloads.wordpress.org/plugin/wordpress-importer.zip" 6 ], 7 "phpVersion": "8.2", 8 "port": 8888, 9 "env": { 10 "tests": { 11 "port": 8889 12 } 13 } 5 14 } -
amimoto-dashboard/trunk/amimoto-plugin-dashboard.php
r2538297 r3300443 2 2 /** 3 3 * Plugin Name: AMIMOTO Plugin Dashboard 4 * Version: 1.0. 04 * Version: 1.0.1 5 5 * Description: Control AMIMOTO helper plugins 6 6 * Author: hideokamoto,amimotoami -
amimoto-dashboard/trunk/classes/C3_Service.php
r2538297 r3300443 68 68 return; 69 69 } 70 $result ;70 $result = null; 71 71 if ( isset( $_POST[ Constants::PLUGIN_ACTIVATION ] ) && $_POST[ Constants::PLUGIN_ACTIVATION ] ) { 72 72 if ( check_admin_referer( Constants::PLUGIN_ACTIVATION, Constants::PLUGIN_ACTIVATION ) ) { … … 108 108 $target = 'all'; 109 109 if ( isset( $_POST['invalidation_target'] ) && $_POST['invalidation_target'] ) { 110 $target = $_POST['invalidation_target'];110 $target = sanitize_text_field( $_POST['invalidation_target'] ); 111 111 } 112 112 $result = $this->invalidation( $target ); -
amimoto-dashboard/trunk/classes/NCC_Service.php
r2538297 r3300443 62 62 return; 63 63 } 64 $result ;64 $result = null; 65 65 if ( isset( $_POST[ Constants::PLUGIN_ACTIVATION ] ) && $_POST[ Constants::PLUGIN_ACTIVATION ] ) { 66 66 if ( check_admin_referer( Constants::PLUGIN_ACTIVATION, Constants::PLUGIN_ACTIVATION ) ) { -
amimoto-dashboard/trunk/classes/WP/Plugins.php
r2538297 r3300443 51 51 $activate_plugins = self::_get_active_plugins(); 52 52 if ( 53 array_search( $amimoto_plugins['C3 Cloudfront Cache Controller'], $activate_plugins, true ) > -153 array_search( $amimoto_plugins['C3 Cloudfront Cache Controller'], $activate_plugins, true ) !== false 54 54 ) { 55 55 return true; … … 83 83 $activate_plugins = self::_get_active_plugins(); 84 84 if ( 85 array_search( $amimoto_plugins['Nginx Cache Controller on GitHub'], $activate_plugins, true ) > -1||86 array_search( $amimoto_plugins['Nginx Cache Controller on WP.org'], $activate_plugins, true ) > -185 array_search( $amimoto_plugins['Nginx Cache Controller on GitHub'], $activate_plugins, true ) !== false || 86 array_search( $amimoto_plugins['Nginx Cache Controller on WP.org'], $activate_plugins, true ) !== false 87 87 ) { 88 88 return true; -
amimoto-dashboard/trunk/readme.txt
r2538297 r3300443 5 5 Requires at least: 4.4.0 6 6 Tested up to: 5.7.2 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 37 37 38 38 == Changelog == 39 40 = 1.0.1 = 41 * Fixed PHP 8 compatibility issues while maintaining PHP 7 compatibility 42 * Updated GitHub Actions workflow to use wp-env for testing 43 39 44 40 45 = 1.0.0 =
Note: See TracChangeset
for help on using the changeset viewer.