updated plugin `Companion Auto Update` version 3.8.8

This commit is contained in:
KawaiiPunk 2024-01-03 21:51:10 +00:00 committed by Gitium
parent f23875fb05
commit 4c9acbf50f
5 changed files with 259 additions and 617 deletions

View File

@ -30,7 +30,7 @@ if( isset( $_POST['submit'] ) ) {
$themes = isset( $_POST['themes'] ) ? sanitize_text_field( $_POST['themes'] ) : '';
$minor = isset( $_POST['minor'] ) ? sanitize_text_field( $_POST['minor'] ) : '';
$major = isset( $_POST['major'] ) ? sanitize_text_field( $_POST['major'] ) : '';
$translations = isset( $_POST['translations'] ) ? sanitize_text_field( $_POST['translations'] ) : '';
$translations = isset( $_POST['translations'] ) ? sanitize_text_field( $_POST['translations'] ) : '';
$wpdb->query( $wpdb->prepare( "UPDATE $table_name SET onoroff = %s WHERE name = 'plugins'", $plugins ) );
$wpdb->query( $wpdb->prepare( "UPDATE $table_name SET onoroff = %s WHERE name = 'themes'", $themes ) );
@ -39,11 +39,11 @@ if( isset( $_POST['submit'] ) ) {
$wpdb->query( $wpdb->prepare( "UPDATE $table_name SET onoroff = %s WHERE name = 'translations'", $translations ) );
// Emails
$send = isset( $_POST['cau_send'] ) ? sanitize_text_field( $_POST['cau_send'] ) : '';
$send = isset( $_POST['cau_send'] ) ? sanitize_text_field( $_POST['cau_send'] ) : '';
$sendupdate = isset( $_POST['cau_send_update'] ) ? sanitize_text_field( $_POST['cau_send_update'] ) : '';
$sendoutdated = isset( $_POST['cau_send_outdated'] ) ? sanitize_text_field( $_POST['cau_send_outdated'] ) : '';
$wpemails = isset( $_POST['wpemails'] ) ? sanitize_text_field( $_POST['wpemails'] ) : '';
$email = isset( $_POST['cau_email'] ) ? sanitize_text_field( $_POST['cau_email'] ) : '';
$wpemails = isset( $_POST['wpemails'] ) ? sanitize_text_field( $_POST['wpemails'] ) : '';
$email = isset( $_POST['cau_email'] ) ? sanitize_text_field( $_POST['cau_email'] ) : '';
$html_or_text = isset( $_POST['html_or_text'] ) ? sanitize_text_field( $_POST['html_or_text'] ) : 'html';
$dbupdateemails = isset( $_POST['dbupdateemails'] ) ? sanitize_text_field( $_POST['dbupdateemails'] ) : '';

View File

@ -49,17 +49,8 @@ function cau_set_email() {
// Mail format
function cau_is_html() {
// Check if cau_get_db_value() function exists.
if ( !function_exists( 'cau_get_db_value' ) ) require_once( plugin_dir_path( __FILE__ ) . 'cau_function.php' );
// Check if html
if( cau_get_db_value( 'html_or_text' ) == 'html' ) {
$html = true;
} else {
$html = false;
}
return ( cau_get_db_value( 'html_or_text' ) == 'html' ) ? true : false;
}
// Set the content for the emails about pending updates

File diff suppressed because it is too large Load Diff

View File

@ -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.8.7.1
* Version: 3.8.8
* Author: Papin Schipper
* Author URI: http://codeermeneer.nl/
* Contributors: papin

View File

@ -2,10 +2,10 @@
Contributors: Papin, qweb
Donate link: https://www.paypal.me/dakel/10/
Tags: auto, automatic, background, update, updates, updating, automatic updates, automatic background updates, easy update, wordpress update, theme update, plugin update, up-to-date, security, update latest version, update core, update wp, update wp core, major updates, minor updates, update to new version, update core, update plugin, update plugins, update plugins automatically, update theme, plugin, theme, advance, control, mail, notifations, enable
Requires at least: 3.6.0
Tested up to: 6.0
Requires at least: 5.3.0
Tested up to: 6.4
Requires PHP: 5.1
Stable tag: 3.8.7.1
Stable tag: 3.8.8
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@ -82,6 +82,11 @@ So obviously, some of you wondered what the difference would be between the defa
== Changelog ==
= 3.8.8 (December 19, 2023) =
* Fixed a few minor bugs
* Made some performance improvements
* We now require at least WordPress 5.3
= 3.8.7.1 (September 28, 2022) =
* Tweak: Extended function_exists check with get_plugins() for the fatal error when trying to send update emails