From d89551a8af8d21e90b74861f97f5317b326c957d Mon Sep 17 00:00:00 2001 From: Ahmed Saed Date: Mon, 22 Aug 2022 21:47:44 +0200 Subject: [PATCH 1/2] Prevent fatal error when Rocket version is float in database (PR #5329) --- inc/admin/upgrader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/admin/upgrader.php b/inc/admin/upgrader.php index 307589b749..bb28630d77 100644 --- a/inc/admin/upgrader.php +++ b/inc/admin/upgrader.php @@ -10,7 +10,7 @@ */ function rocket_upgrader() { // Grab some infos. - $actual_version = get_rocket_option( 'version' ); + $actual_version = (string) get_rocket_option( 'version' ); // You can hook the upgrader to trigger any action when WP Rocket is upgraded. // first install. if ( ! $actual_version ) { From 6155524b92a2a1d4535ace905e66fc2c3e9cf64c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Perona?= Date: Mon, 22 Aug 2022 15:48:37 -0400 Subject: [PATCH 2/2] update version to 3.12.0.1 --- wp-rocket.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-rocket.php b/wp-rocket.php index 54ad49772b..8aeac0b591 100755 --- a/wp-rocket.php +++ b/wp-rocket.php @@ -3,7 +3,7 @@ * Plugin Name: WP Rocket * Plugin URI: https://wp-rocket.me * Description: The best WordPress performance plugin. - * Version: 3.12 + * Version: 3.12.0.1 * Requires at least: 5.6 * Requires PHP: 7.2 * Code Name: Iego @@ -20,7 +20,7 @@ defined( 'ABSPATH' ) || exit; // Rocket defines. -define( 'WP_ROCKET_VERSION', '3.12' ); +define( 'WP_ROCKET_VERSION', '3.12.0.1' ); define( 'WP_ROCKET_WP_VERSION', '5.6' ); define( 'WP_ROCKET_WP_VERSION_TESTED', '5.9' ); define( 'WP_ROCKET_PHP_VERSION', '7.2' );