updated plugin Companion Auto Update
version 3.8.0
This commit is contained in:
@ -36,6 +36,7 @@
|
||||
global $wpdb;
|
||||
$table_name = $wpdb->prefix . "auto_updates";
|
||||
$schedules = wp_get_schedules();
|
||||
$interval_names = cau_wp_get_schedules();
|
||||
|
||||
?>
|
||||
|
||||
@ -75,7 +76,7 @@
|
||||
$__status = 'enabled';
|
||||
$__icon = 'yes-alt';
|
||||
$__text = __( 'Enabled', 'companion-auto-update' );
|
||||
$__interval = wp_get_schedule( $eventNames[$key] );
|
||||
$__interval = $interval_names[wp_get_schedule( $eventNames[$key] )];
|
||||
$__next = date_i18n( $dateFormat, wp_next_scheduled( $eventNames[$key] ) );
|
||||
} else {
|
||||
$__status = 'disabled';
|
||||
@ -132,7 +133,7 @@
|
||||
$__status = 'enabled';
|
||||
$__icon = 'yes-alt';
|
||||
$__text = __( 'Enabled', 'companion-auto-update' );
|
||||
$__interval = wp_get_schedule( $other_eventNames[$key] );
|
||||
$__interval = $interval_names[wp_get_schedule( $other_eventNames[$key] )];
|
||||
$__next = date_i18n( $dateFormat, wp_next_scheduled( $other_eventNames[$key] ) );
|
||||
} else {
|
||||
$__status = 'warning';
|
||||
@ -322,7 +323,7 @@
|
||||
<tbody id="the-list">
|
||||
<tr>
|
||||
<td>
|
||||
<div class='button button-primary toggle_advanced_button'>Toggle</div>
|
||||
<div class='button button-primary toggle_advanced_button'><?php _e( 'Toggle', 'companion-auto-update' ); ?></div>
|
||||
|
||||
<div class='toggle_advanced_content' style='display: none;'>
|
||||
<?php
|
||||
|
Reference in New Issue
Block a user