plugin updates
This commit is contained in:
@@ -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.' ),
|
||||
'<span class="code">' . esc_html( $filename_for_errors ) . '</span>'
|
||||
),
|
||||
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;
|
||||
@@ -2496,7 +2472,7 @@ function request_filesystem_credentials( $form_post, $type = '', $error = false,
|
||||
);
|
||||
|
||||
if ( ! wp_installing() ) {
|
||||
update_option( 'ftp_credentials', $stored_credentials );
|
||||
update_option( 'ftp_credentials', $stored_credentials, false );
|
||||
}
|
||||
|
||||
return $credentials;
|
||||
|
||||
Reference in New Issue
Block a user