We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4ad939 commit d6128bcCopy full SHA for d6128bc
includes/util/feedzy-rss-feeds-util-scheduler.php
@@ -28,14 +28,13 @@ class Feedzy_Rss_Feeds_Util_Scheduler {
28
* @return bool|int
29
*/
30
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
-
35
if ( function_exists( 'as_next_scheduled_action' ) ) {
36
// For older versions of AS.
37
return as_next_scheduled_action( $hook, $args );
38
}
+ if ( function_exists( 'as_has_scheduled_action' ) ) {
+ return as_has_scheduled_action( $hook, $args );
+ }
39
40
return wp_next_scheduled( $hook, $args );
41
0 commit comments