Skip to content

Commit c780072

Browse files
Bill Van PeltBill Van Pelt
authored andcommitted
Making sure if the PHP version is above 7.2 it will throw the error.
PHP Version 7.1.3.4 is not >= to 7.2. No error PHP Version 7.2.3 is >= 7.2. Error
1 parent ee01ad4 commit c780072

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/inc/api/class-mcrypt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public static function upgrade_mcrypt_option( $encrypted_string ) {
8484
* @return string
8585
*/
8686
public static function mcrypt_decrypt( $encrypted_string ) {
87-
if ( version_compare( phpversion(), '7.1', '>' ) ) {
87+
if ( version_compare( phpversion(), '7.2', '>=' ) ) {
8888
return new \WP_Error( 'php_version', __( 'PHP version is to low to support mcrypt_decrypt. This function has been DEPRECATED as of PHP 7.1.0 and REMOVED as of PHP 7.2.0. Relying on this function is highly discouraged.', 'wpop' ) );
8989
}
9090

0 commit comments

Comments
 (0)