Plugin Directory

Changeset 3425736


Ignore:
Timestamp:
12/23/2025 02:52:42 AM (3 months ago)
Author:
rilwis
Message:

Update to version 2.9.2 from GitHub

Location:
falcon
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • falcon/tags/2.9.2/falcon.php

    r3425271 r3425736  
    44 * Plugin URI:  https://wpfalcon.pro
    55 * Description: WordPress optimizations & tweaks
    6  * Version:     2.9.1
     6 * Version:     2.9.2
    77 * Author:      eLightUp
    88 * Author URI:  https://elightup.com
  • falcon/tags/2.9.2/readme.txt

    r3425271 r3425736  
    44Requires at least: 6.5
    55Tested up to: 6.9
    6 Stable tag: 2.9.1
     6Stable tag: 2.9.2
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    5252- Remove REST API link
    5353
    54 #### Media
    55 
    5654#### [Email](https://wpfalcon.pro/features/email/)
    5755
     
    109107== Changelog ==
    110108
     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
    111114= 2.9.1 - 2025-12-19 =
    112115
  • falcon/tags/2.9.2/src/Components/Cache/Manager.php

    r3423539 r3425736  
    5050
    5151    public function deactivate(): void {
    52         unlink( $this->advanced_cache_file );
     52        wp_delete_file( $this->advanced_cache_file );
    5353        $this->update_constant( false );
    5454        $this->clear_cache();
     55        $this->remove_cache_dir();
    5556    }
    5657
     
    9697
    9798    public function clear_cache(): void {
    98         $this->remove_dir( $this->cache_dir );
     99        array_map( 'wp_delete_file', glob( $this->cache_dir . '/*.html' ) );
    99100    }
    100101
    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 );
    109105        }
    110         return rmdir( $dir );
    111106    }
    112107}
  • falcon/tags/2.9.2/src/Security.php

    r3088130 r3425736  
    5151            'gif'      => 'image/gif',
    5252            'png'      => 'image/png',
     53            'webp'     => 'image/webp',
    5354            'mp4'      => 'video/mp4',
    5455            'pdf'      => 'application/pdf',
  • falcon/tags/2.9.2/src/Settings.php

    r3423539 r3425736  
    9999        wp_enqueue_script( 'falcon', FALCON_URL . 'assets/settings.js', [], filemtime( FALCON_DIR . '/assets/settings.js' ), true );
    100100        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' ),
    107107        ] );
    108108    }
     
    193193
    194194        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' );
    196196        header( 'Expires: 0' );
    197197        header( 'Cache-Control: must-revalidate' );
  • falcon/tags/2.9.2/vendor/composer/installed.php

    r3425271 r3425736  
    22    'root' => array(
    33        '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',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        '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',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
  • falcon/trunk/falcon.php

    r3425271 r3425736  
    44 * Plugin URI:  https://wpfalcon.pro
    55 * Description: WordPress optimizations & tweaks
    6  * Version:     2.9.1
     6 * Version:     2.9.2
    77 * Author:      eLightUp
    88 * Author URI:  https://elightup.com
  • falcon/trunk/readme.txt

    r3425271 r3425736  
    44Requires at least: 6.5
    55Tested up to: 6.9
    6 Stable tag: 2.9.1
     6Stable tag: 2.9.2
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    5252- Remove REST API link
    5353
    54 #### Media
    55 
    5654#### [Email](https://wpfalcon.pro/features/email/)
    5755
     
    109107== Changelog ==
    110108
     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
    111114= 2.9.1 - 2025-12-19 =
    112115
  • falcon/trunk/src/Components/Cache/Manager.php

    r3423539 r3425736  
    5050
    5151    public function deactivate(): void {
    52         unlink( $this->advanced_cache_file );
     52        wp_delete_file( $this->advanced_cache_file );
    5353        $this->update_constant( false );
    5454        $this->clear_cache();
     55        $this->remove_cache_dir();
    5556    }
    5657
     
    9697
    9798    public function clear_cache(): void {
    98         $this->remove_dir( $this->cache_dir );
     99        array_map( 'wp_delete_file', glob( $this->cache_dir . '/*.html' ) );
    99100    }
    100101
    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 );
    109105        }
    110         return rmdir( $dir );
    111106    }
    112107}
  • falcon/trunk/src/Security.php

    r3088130 r3425736  
    5151            'gif'      => 'image/gif',
    5252            'png'      => 'image/png',
     53            'webp'     => 'image/webp',
    5354            'mp4'      => 'video/mp4',
    5455            'pdf'      => 'application/pdf',
  • falcon/trunk/src/Settings.php

    r3423539 r3425736  
    9999        wp_enqueue_script( 'falcon', FALCON_URL . 'assets/settings.js', [], filemtime( FALCON_DIR . '/assets/settings.js' ), true );
    100100        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' ),
    107107        ] );
    108108    }
     
    193193
    194194        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' );
    196196        header( 'Expires: 0' );
    197197        header( 'Cache-Control: must-revalidate' );
  • falcon/trunk/vendor/composer/installed.php

    r3425271 r3425736  
    22    'root' => array(
    33        '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',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        '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',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.