Changeset 3425736
- Timestamp:
- 12/23/2025 02:52:42 AM (3 months ago)
- Location:
- falcon
- Files:
-
- 12 edited
- 1 copied
-
tags/2.9.2 (copied) (copied from falcon/trunk)
-
tags/2.9.2/falcon.php (modified) (1 diff)
-
tags/2.9.2/readme.txt (modified) (3 diffs)
-
tags/2.9.2/src/Components/Cache/Manager.php (modified) (2 diffs)
-
tags/2.9.2/src/Security.php (modified) (1 diff)
-
tags/2.9.2/src/Settings.php (modified) (2 diffs)
-
tags/2.9.2/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/falcon.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/src/Components/Cache/Manager.php (modified) (2 diffs)
-
trunk/src/Security.php (modified) (1 diff)
-
trunk/src/Settings.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
falcon/tags/2.9.2/falcon.php
r3425271 r3425736 4 4 * Plugin URI: https://wpfalcon.pro 5 5 * Description: WordPress optimizations & tweaks 6 * Version: 2.9. 16 * Version: 2.9.2 7 7 * Author: eLightUp 8 8 * Author URI: https://elightup.com -
falcon/tags/2.9.2/readme.txt
r3425271 r3425736 4 4 Requires at least: 6.5 5 5 Tested up to: 6.9 6 Stable tag: 2.9. 16 Stable tag: 2.9.2 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 52 52 - Remove REST API link 53 53 54 #### Media55 56 54 #### [Email](https://wpfalcon.pro/features/email/) 57 55 … … 109 107 == Changelog == 110 108 109 = 2.9.2 - 2025-12-23 = 110 111 - Allow to upload WEBP images if enable restrict upload file types module 112 - Fix PHP warning when deleting cache dir 113 111 114 = 2.9.1 - 2025-12-19 = 112 115 -
falcon/tags/2.9.2/src/Components/Cache/Manager.php
r3423539 r3425736 50 50 51 51 public function deactivate(): void { 52 unlink( $this->advanced_cache_file );52 wp_delete_file( $this->advanced_cache_file ); 53 53 $this->update_constant( false ); 54 54 $this->clear_cache(); 55 $this->remove_cache_dir(); 55 56 } 56 57 … … 96 97 97 98 public function clear_cache(): void { 98 $this->remove_dir( $this->cache_dir);99 array_map( 'wp_delete_file', glob( $this->cache_dir . '/*.html' ) ); 99 100 } 100 101 101 private function remove_dir( string $dir ): bool { 102 $files = glob( $dir . '/*' ); 103 foreach ( $files as $file ) { 104 if ( is_dir( $file ) ) { 105 $this->remove_dir( $file ); 106 } else { 107 unlink( $file ); 108 } 102 private function remove_cache_dir(): void { 103 if ( is_dir( $this->cache_dir ) ) { 104 rmdir( $this->cache_dir ); 109 105 } 110 return rmdir( $dir );111 106 } 112 107 } -
falcon/tags/2.9.2/src/Security.php
r3088130 r3425736 51 51 'gif' => 'image/gif', 52 52 'png' => 'image/png', 53 'webp' => 'image/webp', 53 54 'mp4' => 'video/mp4', 54 55 'pdf' => 'application/pdf', -
falcon/tags/2.9.2/src/Settings.php
r3423539 r3425736 99 99 wp_enqueue_script( 'falcon', FALCON_URL . 'assets/settings.js', [], filemtime( FALCON_DIR . '/assets/settings.js' ), true ); 100 100 wp_localize_script( 'falcon', 'Falcon', [ 101 'nonce' => wp_create_nonce( 'save' ),102 'nonce_email' => wp_create_nonce( 'send-email' ),103 'nonce_cache' => wp_create_nonce( 'clear-cache' ),104 'nonce_import' => wp_create_nonce( 'import' ),105 'saving' => __( 'Saving...', 'falcon' ),106 'save' => __( 'Save Changes', 'falcon' ),101 'nonce' => wp_create_nonce( 'save' ), 102 'nonce_email' => wp_create_nonce( 'send-email' ), 103 'nonce_cache' => wp_create_nonce( 'clear-cache' ), 104 'nonce_import' => wp_create_nonce( 'import' ), 105 'saving' => __( 'Saving...', 'falcon' ), 106 'save' => __( 'Save Changes', 'falcon' ), 107 107 ] ); 108 108 } … … 193 193 194 194 header( 'Content-Type: application/octet-stream' ); 195 header( "Content-Disposition: attachment; filename=falcon-settings-" . gmdate( 'Y-m-d' ) . ".json");195 header( 'Content-Disposition: attachment; filename=falcon-settings-' . gmdate( 'Y-m-d' ) . '.json' ); 196 196 header( 'Expires: 0' ); 197 197 header( 'Cache-Control: must-revalidate' ); -
falcon/tags/2.9.2/vendor/composer/installed.php
r3425271 r3425736 2 2 'root' => array( 3 3 'name' => 'elightup/falcon', 4 'pretty_version' => '2.9. 1',5 'version' => '2.9. 1.0',6 'reference' => ' c80958209bd17c195a86f7df9963d918c163cea7',4 'pretty_version' => '2.9.2', 5 'version' => '2.9.2.0', 6 'reference' => '30e05da4a03b9c177206c25ee2da9643b9048e6f', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'elightup/falcon' => array( 14 'pretty_version' => '2.9. 1',15 'version' => '2.9. 1.0',16 'reference' => ' c80958209bd17c195a86f7df9963d918c163cea7',14 'pretty_version' => '2.9.2', 15 'version' => '2.9.2.0', 16 'reference' => '30e05da4a03b9c177206c25ee2da9643b9048e6f', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
falcon/trunk/falcon.php
r3425271 r3425736 4 4 * Plugin URI: https://wpfalcon.pro 5 5 * Description: WordPress optimizations & tweaks 6 * Version: 2.9. 16 * Version: 2.9.2 7 7 * Author: eLightUp 8 8 * Author URI: https://elightup.com -
falcon/trunk/readme.txt
r3425271 r3425736 4 4 Requires at least: 6.5 5 5 Tested up to: 6.9 6 Stable tag: 2.9. 16 Stable tag: 2.9.2 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 52 52 - Remove REST API link 53 53 54 #### Media55 56 54 #### [Email](https://wpfalcon.pro/features/email/) 57 55 … … 109 107 == Changelog == 110 108 109 = 2.9.2 - 2025-12-23 = 110 111 - Allow to upload WEBP images if enable restrict upload file types module 112 - Fix PHP warning when deleting cache dir 113 111 114 = 2.9.1 - 2025-12-19 = 112 115 -
falcon/trunk/src/Components/Cache/Manager.php
r3423539 r3425736 50 50 51 51 public function deactivate(): void { 52 unlink( $this->advanced_cache_file );52 wp_delete_file( $this->advanced_cache_file ); 53 53 $this->update_constant( false ); 54 54 $this->clear_cache(); 55 $this->remove_cache_dir(); 55 56 } 56 57 … … 96 97 97 98 public function clear_cache(): void { 98 $this->remove_dir( $this->cache_dir);99 array_map( 'wp_delete_file', glob( $this->cache_dir . '/*.html' ) ); 99 100 } 100 101 101 private function remove_dir( string $dir ): bool { 102 $files = glob( $dir . '/*' ); 103 foreach ( $files as $file ) { 104 if ( is_dir( $file ) ) { 105 $this->remove_dir( $file ); 106 } else { 107 unlink( $file ); 108 } 102 private function remove_cache_dir(): void { 103 if ( is_dir( $this->cache_dir ) ) { 104 rmdir( $this->cache_dir ); 109 105 } 110 return rmdir( $dir );111 106 } 112 107 } -
falcon/trunk/src/Security.php
r3088130 r3425736 51 51 'gif' => 'image/gif', 52 52 'png' => 'image/png', 53 'webp' => 'image/webp', 53 54 'mp4' => 'video/mp4', 54 55 'pdf' => 'application/pdf', -
falcon/trunk/src/Settings.php
r3423539 r3425736 99 99 wp_enqueue_script( 'falcon', FALCON_URL . 'assets/settings.js', [], filemtime( FALCON_DIR . '/assets/settings.js' ), true ); 100 100 wp_localize_script( 'falcon', 'Falcon', [ 101 'nonce' => wp_create_nonce( 'save' ),102 'nonce_email' => wp_create_nonce( 'send-email' ),103 'nonce_cache' => wp_create_nonce( 'clear-cache' ),104 'nonce_import' => wp_create_nonce( 'import' ),105 'saving' => __( 'Saving...', 'falcon' ),106 'save' => __( 'Save Changes', 'falcon' ),101 'nonce' => wp_create_nonce( 'save' ), 102 'nonce_email' => wp_create_nonce( 'send-email' ), 103 'nonce_cache' => wp_create_nonce( 'clear-cache' ), 104 'nonce_import' => wp_create_nonce( 'import' ), 105 'saving' => __( 'Saving...', 'falcon' ), 106 'save' => __( 'Save Changes', 'falcon' ), 107 107 ] ); 108 108 } … … 193 193 194 194 header( 'Content-Type: application/octet-stream' ); 195 header( "Content-Disposition: attachment; filename=falcon-settings-" . gmdate( 'Y-m-d' ) . ".json");195 header( 'Content-Disposition: attachment; filename=falcon-settings-' . gmdate( 'Y-m-d' ) . '.json' ); 196 196 header( 'Expires: 0' ); 197 197 header( 'Cache-Control: must-revalidate' ); -
falcon/trunk/vendor/composer/installed.php
r3425271 r3425736 2 2 'root' => array( 3 3 'name' => 'elightup/falcon', 4 'pretty_version' => '2.9. 1',5 'version' => '2.9. 1.0',6 'reference' => ' c80958209bd17c195a86f7df9963d918c163cea7',4 'pretty_version' => '2.9.2', 5 'version' => '2.9.2.0', 6 'reference' => '30e05da4a03b9c177206c25ee2da9643b9048e6f', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'elightup/falcon' => array( 14 'pretty_version' => '2.9. 1',15 'version' => '2.9. 1.0',16 'reference' => ' c80958209bd17c195a86f7df9963d918c163cea7',14 'pretty_version' => '2.9.2', 15 'version' => '2.9.2.0', 16 'reference' => '30e05da4a03b9c177206c25ee2da9643b9048e6f', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.