updated plugin Companion Auto Update version 3.9.0

This commit is contained in:
KawaiiPunk 2024-02-08 12:31:32 +00:00 committed by Gitium
parent d12aa8efdc
commit c93ddc8e7a
3 changed files with 13 additions and 7 deletions

View File

@ -62,7 +62,7 @@ function cau_incompatiblePlugins() {
$return = false; $return = false;
foreach ( cau_incompatiblePluginlist() as $key => $value ) { foreach ( cau_incompatiblePluginlist() as $key => $value ) {
if( is_plugin_active( $key ) ) { if( function_exists( 'is_plugin_active' ) && is_plugin_active( $key ) ) {
$return = true; $return = true;
} }
} }
@ -97,7 +97,7 @@ function cau_pluginIssueCount() {
// cau_incompatiblePlugins // cau_incompatiblePlugins
if( cau_incompatiblePlugins() ) { if( cau_incompatiblePlugins() ) {
foreach ( cau_incompatiblePluginlist() as $key => $value ) { foreach ( cau_incompatiblePluginlist() as $key => $value ) {
if( is_plugin_active( $key ) ) { if( function_exists( 'is_plugin_active' ) && is_plugin_active( $key ) ) {
$count++; $count++;
} }
} }
@ -276,7 +276,6 @@ function cau_run_custom_hooks_c() {
} }
if( $fileDate >= $lastday ) { if( $fileDate >= $lastday ) {
array_push( $allDates, $fileDate );
$status = ( $fileTime > $range_start && $fileTime < $range_end ) ? __( 'Automatic', 'companion-auto-update' ) : __( 'Manual', 'companion-auto-update' ); $status = ( $fileTime > $range_start && $fileTime < $range_end ) ? __( 'Automatic', 'companion-auto-update' ) : __( 'Manual', 'companion-auto-update' );
$totalNum++; $totalNum++;
cau_updatePluginInformation( 'core', $status ); cau_updatePluginInformation( 'core', $status );
@ -717,10 +716,10 @@ function cau_list_outdated() {
$api = plugins_api( 'plugin_information', array( 'slug' => wp_unslash( $actualSlug ), 'tested' => true ) ); $api = plugins_api( 'plugin_information', array( 'slug' => wp_unslash( $actualSlug ), 'tested' => true ) );
// Version compare // Version compare
$tested_version = substr( $api->tested, 0, 3 ); // Format version number $tested_version = !empty( $api->tested ) ? substr( $api->tested, 0, 3 ) : false; // Format version number
// Check if "tested up to" version number is set // Check if "tested up to" version number is set
if( $tested_version != '' ) { if( $tested_version ) {
$current_version = substr( get_bloginfo( 'version' ), 0, 3 ); // Format version number $current_version = substr( get_bloginfo( 'version' ), 0, 3 ); // Format version number
$version_difference = ( (int)$current_version - (int)$tested_version ); // Get the difference $version_difference = ( (int)$current_version - (int)$tested_version ); // Get the difference

View File

@ -4,7 +4,7 @@
* Plugin Name: Companion Auto Update * Plugin Name: Companion Auto Update
* Plugin URI: http://codeermeneer.nl/portfolio/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. * Description: This plugin auto updates all plugins, all themes and the wordpress core.
* Version: 3.8.8 * Version: 3.9.0
* Author: Papin Schipper * Author: Papin Schipper
* Author URI: http://codeermeneer.nl/ * Author URI: http://codeermeneer.nl/
* Contributors: papin * Contributors: papin

View File

@ -5,7 +5,7 @@ Tags: auto, automatic, background, update, updates, updating, automatic updates,
Requires at least: 5.3.0 Requires at least: 5.3.0
Tested up to: 6.4 Tested up to: 6.4
Requires PHP: 5.1 Requires PHP: 5.1
Stable tag: 3.8.8 Stable tag: 3.9.0
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
@ -82,6 +82,13 @@ So obviously, some of you wondered what the difference would be between the defa
== Changelog == == Changelog ==
= 3.9.0 (February 2, 2024) =
* Fixed: Fatal error during Cron
* Fixed: PHP deprecated error for PHP 8 and up
= 3.8.9 (January 9, 2024) =
* Fixed error: Call to undefined function is_plugin_active()
= 3.8.8 (December 19, 2023) = = 3.8.8 (December 19, 2023) =
* Fixed a few minor bugs * Fixed a few minor bugs
* Made some performance improvements * Made some performance improvements