Changeset 2753547
- Timestamp:
- 07/08/2022 05:59:14 AM (4 years ago)
- Location:
- flush-opcache
- Files:
-
- 8 edited
- 1 copied
-
tags/4.1.4 (copied) (copied from flush-opcache/trunk)
-
tags/4.1.4/admin/class-flush-opcache-admin.php (modified) (2 diffs)
-
tags/4.1.4/admin/class-flush-opcache-cached-files-list.php (modified) (1 diff)
-
tags/4.1.4/flush-opcache.php (modified) (2 diffs)
-
tags/4.1.4/readme.txt (modified) (2 diffs)
-
trunk/admin/class-flush-opcache-admin.php (modified) (2 diffs)
-
trunk/admin/class-flush-opcache-cached-files-list.php (modified) (1 diff)
-
trunk/flush-opcache.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
flush-opcache/tags/4.1.4/admin/class-flush-opcache-admin.php
r2575986 r2753547 316 316 foreach ( $raw['scripts'] as $script ) { 317 317 /* 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 ) ) { 319 319 continue; 320 320 } … … 373 373 */ 374 374 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' ) { 376 376 $this->flush_opcache_reset(); 377 377 } -
flush-opcache/tags/4.1.4/admin/class-flush-opcache-cached-files-list.php
r2678852 r2753547 103 103 foreach ( $raw['scripts'] as $script ) { 104 104 /* 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 { 106 110 continue; 107 111 } 108 112 $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'] ); 110 114 $item['hits'] = $script['hits']; 111 115 $item['memory_consumption'] = $script['memory_consumption']; -
flush-opcache/tags/4.1.4/flush-opcache.php
r2678858 r2753547 9 9 * Plugin URI: http://wordpress.org/plugins/flush-opcache/ 10 10 * Description: This plugin allows to manage Zend OPcache inside your WordPress admin dashboard. 11 * Version: 4.1. 311 * Version: 4.1.4 12 12 * Author: nierdz 13 13 * Author URI: https://igln.fr/ … … 22 22 } 23 23 24 define( 'FLUSH_OPCACHE_VERSION', '4.1. 3' );24 define( 'FLUSH_OPCACHE_VERSION', '4.1.4' ); 25 25 define( 'FLUSH_OPCACHE_NAME', 'flush-opcache' ); 26 26 -
flush-opcache/tags/4.1.4/readme.txt
r2678852 r2753547 3 3 Tags: opcache, cache, flush, php, multisite 4 4 Requires at least: 5.5 5 Requires PHP: 7. 26 Tested up to: 5.97 Stable tag: 4.1. 35 Requires PHP: 7.4 6 Tested up to: 6.0 7 Stable tag: 4.1.4 8 8 License: GPLv2 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 48 48 == Changelog == 49 49 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 50 56 = 4.1.3 = 51 57 * Fix a bug on datetime in cached file list -
flush-opcache/trunk/admin/class-flush-opcache-admin.php
r2575986 r2753547 316 316 foreach ( $raw['scripts'] as $script ) { 317 317 /* 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 ) ) { 319 319 continue; 320 320 } … … 373 373 */ 374 374 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' ) { 376 376 $this->flush_opcache_reset(); 377 377 } -
flush-opcache/trunk/admin/class-flush-opcache-cached-files-list.php
r2678852 r2753547 103 103 foreach ( $raw['scripts'] as $script ) { 104 104 /* 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 { 106 110 continue; 107 111 } 108 112 $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'] ); 110 114 $item['hits'] = $script['hits']; 111 115 $item['memory_consumption'] = $script['memory_consumption']; -
flush-opcache/trunk/flush-opcache.php
r2678858 r2753547 9 9 * Plugin URI: http://wordpress.org/plugins/flush-opcache/ 10 10 * Description: This plugin allows to manage Zend OPcache inside your WordPress admin dashboard. 11 * Version: 4.1. 311 * Version: 4.1.4 12 12 * Author: nierdz 13 13 * Author URI: https://igln.fr/ … … 22 22 } 23 23 24 define( 'FLUSH_OPCACHE_VERSION', '4.1. 3' );24 define( 'FLUSH_OPCACHE_VERSION', '4.1.4' ); 25 25 define( 'FLUSH_OPCACHE_NAME', 'flush-opcache' ); 26 26 -
flush-opcache/trunk/readme.txt
r2678852 r2753547 3 3 Tags: opcache, cache, flush, php, multisite 4 4 Requires at least: 5.5 5 Requires PHP: 7. 26 Tested up to: 5.97 Stable tag: 4.1. 35 Requires PHP: 7.4 6 Tested up to: 6.0 7 Stable tag: 4.1.4 8 8 License: GPLv2 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 48 48 == Changelog == 49 49 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 50 56 = 4.1.3 = 51 57 * Fix a bug on datetime in cached file list
Note: See TracChangeset
for help on using the changeset viewer.