You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: includes/Base/AdminNotice.php
+1-25Lines changed: 1 addition & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -34,36 +34,12 @@ public function register() {
34
34
* Show internal admin notices.
35
35
*/
36
36
publicfunctionnotice() {
37
-
global$wp_version;
38
-
39
-
// Show a warning to sites running PHP < 5.6
40
-
if ( version_compare( $wp_version, '5.2.0', '<' ) ) {
41
-
deactivate_plugins( $this->plugin );
42
-
if ( isset( $_GET['activate'] ) ) { // phpcs:ignore
43
-
unset( $_GET['activate'] ); // phpcs:ignore
44
-
}
45
-
/* translators: %s: Plugin Name */
46
-
echo'<div class="error"><p>' . sprintf( esc_html__( 'Your version of WordPress is below the minimum version of WordPress required by %s plugin. Please upgrade WordPress to 5.2.0 or later.', 'migrate-wp-cron-to-action-scheduler' ), esc_html( $this->name ) ) . '</p></div>';
47
-
return;
48
-
}
49
-
50
-
// Show a warning to sites running PHP < 5.6
51
-
if ( version_compare( PHP_VERSION, '5.6', '<' ) ) {
52
-
deactivate_plugins( $this->plugin );
53
-
if ( isset( $_GET['activate'] ) ) { // phpcs:ignore
54
-
unset( $_GET['activate'] ); // phpcs:ignore
55
-
}
56
-
/* translators: %s: Plugin Name */
57
-
echo'<div class="error"><p>' . sprintf( esc_html__( 'Your version of PHP is below the minimum version of PHP required by %s plugin. Please contact your host and request that your version be upgraded to 5.6 or later.', 'migrate-wp-cron-to-action-scheduler' ), esc_html( $this->name ) ) . '</p></div>';
58
-
return;
59
-
}
60
-
61
37
// Check transient, if available display notice
62
38
if ( get_transient( 'acswp-show-notice-on-activation' ) !== false ) { ?>
Copy file name to clipboardExpand all lines: includes/Core/MigrateActions.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ public function regenerate_crons() {
74
74
}
75
75
76
76
$statement = $wpdb->prepare( "SELECT a.action_id, a.hook, a.scheduled_date_gmt, a.args, g.slug AS `group` FROM {$wpdb->actionscheduler_actions} a LEFT JOIN {$wpdb->actionscheduler_groups} g ON a.group_id=g.group_id WHERE a.status=%s AND g.slug=%s", 'pending', 'mwpcac' );
0 commit comments