| 1 |
<?php |
| 2 |
|
| 3 |
namespace Yoast\WP\SEO\Conditionals; |
| 4 |
|
| 5 |
/** |
| 6 |
* Class that checks if WP_CRON is enabled. |
| 7 |
*/ |
| 8 |
class WP_CRON_Enabled_Conditional implements Conditional { |
| 9 |
|
| 10 |
/** |
| 11 |
* Checks if WP_CRON is enabled. |
| 12 |
* |
| 13 |
* @return bool True when WP_CRON is enabled. |
| 14 |
*/ |
| 15 |
public function is_met() { |
| 16 |
return ! ( \defined( 'DISABLE_WP_CRON' ) && \DISABLE_WP_CRON ); |
| 17 |
} |
| 18 |
} |
| 19 |
|