| 1 |
<?php |
| 2 |
|
| 3 |
namespace Yoast\WP\SEO\Conditionals; |
| 4 |
|
| 5 |
/** |
| 6 |
* Conditional that is only met when Jetpack exists. |
| 7 |
*/ |
| 8 |
class Jetpack_Conditional implements Conditional { |
| 9 |
|
| 10 |
/** |
| 11 |
* Returns `true` when the Jetpack plugin exists on this |
| 12 |
* WordPress installation. |
| 13 |
* |
| 14 |
* @return bool `true` when the Jetpack plugin exists on this WordPress installation. |
| 15 |
*/ |
| 16 |
public function is_met() { |
| 17 |
return \class_exists( 'Jetpack' ); |
| 18 |
} |
| 19 |
} |
| 20 |
|