Ticket #50784: 50784.substr_compare.diff
File 50784.substr_compare.diff, 475 bytes (added by , 5 years ago) |
---|
-
src/wp-admin/includes/file.php
diff --git src/wp-admin/includes/file.php src/wp-admin/includes/file.php index f9f5be10cea..988c7007218 100644
function wp_opcache_invalidate( $filepath, $force = false ) { 2356 2356 } 2357 2357 2358 2358 // Verify that file to be invalidated has a PHP extension. 2359 if ( ! preg_match( '/\.(?:php)$/i', $filepath) ) {2359 if ( 0 !== substr_compare( $filepath, '.php', -4, 4, true ) ) { 2360 2360 return false; 2361 2361 } 2362 2362