From d0333712273b674015c1a1cbe4e3cdd66bb8b7c5 Mon Sep 17 00:00:00 2001 From: Lai Power Date: Thu, 28 Mar 2024 09:39:54 +0000 Subject: [PATCH] updated plugin `Companion Auto Update` version 3.9.1 --- .../plugins/companion-auto-update/cau_functions.php | 11 ++--------- .../companion-auto-update/companion-auto-update.php | 2 +- wp-content/plugins/companion-auto-update/readme.txt | 5 ++++- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/wp-content/plugins/companion-auto-update/cau_functions.php b/wp-content/plugins/companion-auto-update/cau_functions.php index 3c745784..7cc59d17 100644 --- a/wp-content/plugins/companion-auto-update/cau_functions.php +++ b/wp-content/plugins/companion-auto-update/cau_functions.php @@ -179,10 +179,8 @@ function cau_run_custom_hooks_p() { // Run custom hooks on theme update function cau_run_custom_hooks_t() { - // Create array $allDates = array(); - - // Where to look for plugins + $totalNum = 0; $dirr = get_theme_root(); $listOfAll = wp_get_themes(); @@ -228,8 +226,6 @@ function cau_run_custom_hooks_t() { } - $totalNum = 0; - // Count number of updated plugins foreach ( $allDates as $key => $value ) $totalNum++; @@ -243,10 +239,7 @@ function cau_run_custom_hooks_t() { // Run custom hooks on core update function cau_run_custom_hooks_c() { - // Create array - $totalNum = 0; - - // Get data + $totalNum = 0; $fullPath = ABSPATH.'wp-includes/version.php'; $fileDate = date ( 'YmdHi', filemtime( $fullPath ) ); $update_time = wp_next_scheduled( 'wp_version_check' ); diff --git a/wp-content/plugins/companion-auto-update/companion-auto-update.php b/wp-content/plugins/companion-auto-update/companion-auto-update.php index 1bca27f2..247d44de 100644 --- a/wp-content/plugins/companion-auto-update/companion-auto-update.php +++ b/wp-content/plugins/companion-auto-update/companion-auto-update.php @@ -4,7 +4,7 @@ * Plugin Name: Companion Auto Update * Plugin URI: http://codeermeneer.nl/portfolio/companion-auto-update/ * Description: This plugin auto updates all plugins, all themes and the wordpress core. - * Version: 3.9.0 + * Version: 3.9.1 * Author: Papin Schipper * Author URI: http://codeermeneer.nl/ * Contributors: papin diff --git a/wp-content/plugins/companion-auto-update/readme.txt b/wp-content/plugins/companion-auto-update/readme.txt index 8eb2ed13..a6e738c2 100644 --- a/wp-content/plugins/companion-auto-update/readme.txt +++ b/wp-content/plugins/companion-auto-update/readme.txt @@ -5,7 +5,7 @@ Tags: auto, automatic, background, update, updates, updating, automatic updates, Requires at least: 5.3.0 Tested up to: 6.4 Requires PHP: 5.1 -Stable tag: 3.9.0 +Stable tag: 3.9.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -82,6 +82,9 @@ So obviously, some of you wondered what the difference would be between the defa == Changelog == += 3.9.1 (March 8, 2024) = +* Fixed: Undefined variable $totalNum + = 3.9.0 (February 2, 2024) = * Fixed: Fatal error during Cron * Fixed: PHP deprecated error for PHP 8 and up