diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php index bc5ef44366beb..d7258e094948c 100644 --- a/src/wp-admin/includes/file.php +++ b/src/wp-admin/includes/file.php @@ -1402,30 +1402,6 @@ function verify_file_signature( $filename, $signatures, $filename_for_errors = f ); } - // Check for an edge-case affecting PHP Maths abilities. - if ( - ! extension_loaded( 'sodium' ) && - in_array( PHP_VERSION_ID, array( 70200, 70201, 70202 ), true ) && - extension_loaded( 'opcache' ) - ) { - /* - * Sodium_Compat isn't compatible with PHP 7.2.0~7.2.2 due to a bug in the PHP Opcache extension, bail early as it'll fail. - * https://bugs.php.net/bug.php?id=75938 - */ - return new WP_Error( - 'signature_verification_unsupported', - sprintf( - /* translators: %s: The filename of the package. */ - __( 'The authenticity of %s could not be verified as signature verification is unavailable on this system.' ), - '' . esc_html( $filename_for_errors ) . '' - ), - array( - 'php' => PHP_VERSION, - 'sodium' => defined( 'SODIUM_LIBRARY_VERSION' ) ? SODIUM_LIBRARY_VERSION : ( defined( 'ParagonIE_Sodium_Compat::VERSION_STRING' ) ? ParagonIE_Sodium_Compat::VERSION_STRING : false ), - ) - ); - } - // Verify runtime speed of Sodium_Compat is acceptable. if ( ! extension_loaded( 'sodium' ) && ! ParagonIE_Sodium_Compat::polyfill_is_fast() ) { $sodium_compat_is_fast = false; diff --git a/src/wp-cron.php b/src/wp-cron.php index 161478ac49469..c3161d9864865 100644 --- a/src/wp-cron.php +++ b/src/wp-cron.php @@ -24,7 +24,7 @@ } // Don't run cron until the request finishes, if possible. -if ( PHP_VERSION_ID >= 70016 && function_exists( 'fastcgi_finish_request' ) ) { +if ( function_exists( 'fastcgi_finish_request' ) ) { fastcgi_finish_request(); } elseif ( function_exists( 'litespeed_finish_request' ) ) { litespeed_finish_request();