Plugin Directory

Changeset 2753547


Ignore:
Timestamp:
07/08/2022 05:59:14 AM (4 years ago)
Author:
mnttech
Message:

Release 4.1.4

Location:
flush-opcache
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • flush-opcache/tags/4.1.4/admin/class-flush-opcache-admin.php

    r2575986 r2753547  
    316316                    foreach ( $raw['scripts'] as $script ) {
    317317                        /* Remove files outside of WP */
    318                         if ( false === strpos( $script['full_path'], get_home_path() ) ) {
     318                        if ( false === strpos( $script['full_path'], get_home_path() ) && false === strpos( $script['full_path'], ABSPATH ) ) {
    319319                            continue;
    320320                        }
     
    373373     */
    374374    public function flush_opcache_after_wp_update() {
    375         if ( get_site_option( 'flush-opcache-upgrade' ) === 1 ) {
     375        if ( get_site_option( 'flush-opcache-upgrade' ) === '1' ) {
    376376            $this->flush_opcache_reset();
    377377        }
  • flush-opcache/tags/4.1.4/admin/class-flush-opcache-cached-files-list.php

    r2678852 r2753547  
    103103                    foreach ( $raw['scripts'] as $script ) {
    104104                        /* Remove files outside of WP */
    105                         if ( false === strpos( $script['full_path'], get_home_path() ) ) {
     105                        if ( false !== strpos( $script['full_path'], get_home_path() ) ) {
     106                            $home_path = get_home_path();
     107                        } elseif ( false !== strpos( $script['full_path'], ABSPATH ) ) {
     108                            $home_path = ABSPATH;
     109                        } else {
    106110                            continue;
    107111                        }
    108112                        $item                        = array();
    109                         $item['full_path']           = str_replace( get_home_path(), './', $script['full_path'] );
     113                        $item['full_path']           = str_replace( $home_path, './', $script['full_path'] );
    110114                        $item['hits']                = $script['hits'];
    111115                        $item['memory_consumption']  = $script['memory_consumption'];
  • flush-opcache/tags/4.1.4/flush-opcache.php

    r2678858 r2753547  
    99 * Plugin URI:        http://wordpress.org/plugins/flush-opcache/
    1010 * Description:       This plugin allows to manage Zend OPcache inside your WordPress admin dashboard.
    11  * Version:           4.1.3
     11 * Version:           4.1.4
    1212 * Author:            nierdz
    1313 * Author URI:        https://igln.fr/
     
    2222}
    2323
    24 define( 'FLUSH_OPCACHE_VERSION', '4.1.3' );
     24define( 'FLUSH_OPCACHE_VERSION', '4.1.4' );
    2525define( 'FLUSH_OPCACHE_NAME', 'flush-opcache' );
    2626
  • flush-opcache/tags/4.1.4/readme.txt

    r2678852 r2753547  
    33Tags: opcache, cache, flush, php, multisite
    44Requires at least: 5.5
    5 Requires PHP: 7.2
    6 Tested up to: 5.9
    7 Stable tag: 4.1.3
     5Requires PHP: 7.4
     6Tested up to: 6.0
     7Stable tag: 4.1.4
    88License: GPLv2
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4848== Changelog ==
    4949
     50= 4.1.4 =
     51* Fix a bug on clearing cache after upgrade
     52* Flush files even when WP use its own directory
     53* Use WordPress 6.0 as default
     54* Use php8.0 as default
     55
    5056= 4.1.3 =
    5157* Fix a bug on datetime in cached file list
  • flush-opcache/trunk/admin/class-flush-opcache-admin.php

    r2575986 r2753547  
    316316                    foreach ( $raw['scripts'] as $script ) {
    317317                        /* Remove files outside of WP */
    318                         if ( false === strpos( $script['full_path'], get_home_path() ) ) {
     318                        if ( false === strpos( $script['full_path'], get_home_path() ) && false === strpos( $script['full_path'], ABSPATH ) ) {
    319319                            continue;
    320320                        }
     
    373373     */
    374374    public function flush_opcache_after_wp_update() {
    375         if ( get_site_option( 'flush-opcache-upgrade' ) === 1 ) {
     375        if ( get_site_option( 'flush-opcache-upgrade' ) === '1' ) {
    376376            $this->flush_opcache_reset();
    377377        }
  • flush-opcache/trunk/admin/class-flush-opcache-cached-files-list.php

    r2678852 r2753547  
    103103                    foreach ( $raw['scripts'] as $script ) {
    104104                        /* Remove files outside of WP */
    105                         if ( false === strpos( $script['full_path'], get_home_path() ) ) {
     105                        if ( false !== strpos( $script['full_path'], get_home_path() ) ) {
     106                            $home_path = get_home_path();
     107                        } elseif ( false !== strpos( $script['full_path'], ABSPATH ) ) {
     108                            $home_path = ABSPATH;
     109                        } else {
    106110                            continue;
    107111                        }
    108112                        $item                        = array();
    109                         $item['full_path']           = str_replace( get_home_path(), './', $script['full_path'] );
     113                        $item['full_path']           = str_replace( $home_path, './', $script['full_path'] );
    110114                        $item['hits']                = $script['hits'];
    111115                        $item['memory_consumption']  = $script['memory_consumption'];
  • flush-opcache/trunk/flush-opcache.php

    r2678858 r2753547  
    99 * Plugin URI:        http://wordpress.org/plugins/flush-opcache/
    1010 * Description:       This plugin allows to manage Zend OPcache inside your WordPress admin dashboard.
    11  * Version:           4.1.3
     11 * Version:           4.1.4
    1212 * Author:            nierdz
    1313 * Author URI:        https://igln.fr/
     
    2222}
    2323
    24 define( 'FLUSH_OPCACHE_VERSION', '4.1.3' );
     24define( 'FLUSH_OPCACHE_VERSION', '4.1.4' );
    2525define( 'FLUSH_OPCACHE_NAME', 'flush-opcache' );
    2626
  • flush-opcache/trunk/readme.txt

    r2678852 r2753547  
    33Tags: opcache, cache, flush, php, multisite
    44Requires at least: 5.5
    5 Requires PHP: 7.2
    6 Tested up to: 5.9
    7 Stable tag: 4.1.3
     5Requires PHP: 7.4
     6Tested up to: 6.0
     7Stable tag: 4.1.4
    88License: GPLv2
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4848== Changelog ==
    4949
     50= 4.1.4 =
     51* Fix a bug on clearing cache after upgrade
     52* Flush files even when WP use its own directory
     53* Use WordPress 6.0 as default
     54* Use php8.0 as default
     55
    5056= 4.1.3 =
    5157* Fix a bug on datetime in cached file list
Note: See TracChangeset for help on using the changeset viewer.