Changeset 2728981
- Timestamp:
- 05/24/2022 02:33:33 AM (4 years ago)
- Location:
- c3-cloudfront-clear-cache/trunk
- Files:
-
- 7 edited
-
c3-cloudfront-clear-cache.php (modified) (1 diff)
-
classes/AWS/Invalidation_Batch.php (modified) (1 diff)
-
classes/AWS/Invalidation_Batch_Service.php (modified) (1 diff)
-
classes/Views/Settings.php (modified) (3 diffs)
-
composer.json (modified) (1 diff)
-
package.json (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
c3-cloudfront-clear-cache/trunk/c3-cloudfront-clear-cache.php
r2559100 r2728981 2 2 /** 3 3 * Plugin Name: C3 Cloudfront Cache Controller 4 * Version: 6.1. 24 * Version: 6.1.3 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/AWS/Invalidation_Batch.php
r2558516 r2728981 42 42 $this->items[] = $result; 43 43 $this->items = array_unique( $this->items ); 44 } 45 46 /** 47 * Apply WordPress filter hook. 48 * We can overwrite the invalidation item by manually 49 * 50 * @param \WP_Post $post WordPress Post object. 51 */ 52 public function apply_invalidation_item_filter( \WP_Post $post = null ) { 53 $this->items = apply_filters( 'c3_invalidation_items', $this->items, $post ); 44 54 } 45 55 -
c3-cloudfront-clear-cache/trunk/classes/AWS/Invalidation_Batch_Service.php
r2558516 r2728981 91 91 $invalidation_batch->put_invalidation_path( $url ); 92 92 } 93 $invalidation_batch->apply_invalidation_item_filter( $post ); 93 94 return $invalidation_batch; 94 95 } -
c3-cloudfront-clear-cache/trunk/classes/Views/Settings.php
r2558516 r2728981 59 59 $this->hook_service->add_filter( 'amimoto_show_c3_setting_form', '__return_false' ); 60 60 $this->hook_service->add_filter( 'amimoto_show_invalidation_form', '__return_false' ); 61 62 $this->hook_service->add_action( 'admin_init', array( $this, 'define_caps' ) ); 61 63 } 62 64 … … 68 70 __( 'CloudFront Settings', Constants::text_domain() ), 69 71 __( 'CloudFront Settings', Constants::text_domain() ), 70 ' administrator',72 'cloudfront_clear_cache', 71 73 Constants::MENU_ID, 72 74 function () { … … 86 88 } 87 89 90 /** 91 * Define C3 plugin capabilities 92 * 93 * @access public 94 * @param none 95 * @since 4.0.0 96 */ 97 public function define_caps() { 98 $role = get_role( 'administrator' ); 99 $role->add_cap( 'cloudfront_clear_cache' ); 100 } 88 101 /** 89 102 * Filter the saving option's request -
c3-cloudfront-clear-cache/trunk/composer.json
r2558516 r2728981 12 12 "wp-coding-standards/wpcs": "*", 13 13 "wp-phpunit/wp-phpunit": "5.7.2", 14 "phpunit/phpunit": " ^7.5.20"14 "phpunit/phpunit": "7.5.20" 15 15 }, 16 16 "autoload": { -
c3-cloudfront-clear-cache/trunk/package.json
r2559100 r2728981 4 4 }, 5 5 "name": "trunk", 6 "version": "6.1. 2",6 "version": "6.1.3", 7 7 "main": "index.js", 8 8 "directories": { -
c3-cloudfront-clear-cache/trunk/readme.txt
r2559100 r2728981 4 4 Tags: AWS,CDN,CloudFront 5 5 Requires at least: 4.9.0 6 Tested up to: 5. 7.27 Stable tag: 6.1. 26 Tested up to: 5.9.3 7 Stable tag: 6.1.3 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.3 == 114 * [Fix] Lost filter c3_invalidation_items From v6.0.0 115 113 116 == 6.1.2 == 114 117 * [Fix] php version compare issue
Note: See TracChangeset
for help on using the changeset viewer.