Skip to content

Commit d6128bc

Browse files
fix: action scheduler time issue with old method
1 parent f4ad939 commit d6128bc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

includes/util/feedzy-rss-feeds-util-scheduler.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,13 @@ class Feedzy_Rss_Feeds_Util_Scheduler {
2828
* @return bool|int
2929
*/
3030
public static function is_scheduled( string $hook, array $args = array() ) {
31-
if ( function_exists( 'as_has_scheduled_action' ) ) {
32-
return as_has_scheduled_action( $hook, $args );
33-
}
34-
3531
if ( function_exists( 'as_next_scheduled_action' ) ) {
3632
// For older versions of AS.
3733
return as_next_scheduled_action( $hook, $args );
3834
}
35+
if ( function_exists( 'as_has_scheduled_action' ) ) {
36+
return as_has_scheduled_action( $hook, $args );
37+
}
3938

4039
return wp_next_scheduled( $hook, $args );
4140
}

0 commit comments

Comments
 (0)