Ticket #50784: 50784.substr_compare_warning.diff
File 50784.substr_compare_warning.diff, 506 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..1c8123f62dd 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 ( 4 <= strlen( $filepath ) 2360 && 0 !== substr_compare( $filepath, '.php', -4, 4, true ) ) { 2360 2361 return false; 2361 2362 } 2362 2363