admin-menu-nav-unification-rtl.css
2 years ago
admin-menu-nav-unification-rtl.min.css
2 years ago
admin-menu-nav-unification.css
2 years ago
admin-menu-nav-unification.min.css
2 years ago
admin-menu-rtl.css
2 years ago
admin-menu-rtl.min.css
2 years ago
admin-menu.css
2 years ago
admin-menu.js
2 years ago
admin-menu.min.css
2 years ago
class-admin-menu.php
2 years ago
class-atomic-admin-menu.php
2 years ago
class-dashboard-switcher-tracking.php
2 years ago
class-domain-only-admin-menu.php
2 years ago
class-jetpack-admin-menu.php
2 years ago
class-p2-admin-menu.php
2 years ago
class-wpcom-admin-menu.php
2 years ago
class-wpcom-email-subscription-checker.php
2 years ago
dashicon-set.php
2 years ago
globe-icon.svg
3 years ago
load.php
2 years ago
menu-mappings.php
2 years ago
class-wpcom-email-subscription-checker.php
30 lines
| 1 | <?php |
| 2 | /** |
| 3 | * A class that checks for the existence of email subscriptions for a user. |
| 4 | * |
| 5 | * @deprecated 13.7 Use Automattic\Jetpack\Masterbar\WPCOM_Email_Subscription_Checker instead. |
| 6 | * |
| 7 | * @package automattic/jetpack |
| 8 | */ |
| 9 | |
| 10 | use Automattic\Jetpack\Masterbar\WPCOM_Email_Subscription_Checker as Masterbar_WPCOM_Email_Subscription_Checker; |
| 11 | /** |
| 12 | * WPCOM_Email_Subscription_Checker |
| 13 | */ |
| 14 | class WPCOM_Email_Subscription_Checker { |
| 15 | /** |
| 16 | * Checks if a user's site has an email subscription |
| 17 | * |
| 18 | * @deprecated 13.7 |
| 19 | * |
| 20 | * @return bool |
| 21 | */ |
| 22 | public function has_email() { |
| 23 | _deprecated_function( __METHOD__, 'jetpack-13.7', 'Automattic\\Jetpack\\Masterbar\\WPCOM_Email_Subscription_Checker::has_email' ); |
| 24 | |
| 25 | $email_subscriptions_checker_wrapper = new Masterbar_WPCOM_Email_Subscription_Checker(); |
| 26 | |
| 27 | return $email_subscriptions_checker_wrapper->has_email(); |
| 28 | } |
| 29 | } |
| 30 |