PluginProbe ʕ •ᴥ•ʔ
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 27.7
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v27.7
27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 19.1 19.10 19.11 19.12 19.13 19.14 19.2 19.3 19.4 19.5 19.5.1 19.6 19.6.1 19.7 19.7.1 19.7.2 19.8 19.9 20.0 20.1 20.10 20.11 20.12 20.13 20.2 20.2.1 20.3 20.4 20.5 20.6 20.7 20.8 20.9 21.0 21.1 21.2 21.3 21.4 21.5 21.6 21.7 21.8 21.8.1 21.9 21.9.1 22.0 22.1 22.2 22.3 22.4 22.5 22.6 22.7 22.8 22.9 23.0 23.1 23.2 23.3 23.4 23.5 23.6 23.7 23.8 23.9 24.0 24.1 24.2 24.3 24.4 24.5 24.6 24.7 24.8 24.8.1 24.9 25.0 25.1 25.2 25.3 25.3.1 25.4 25.5 25.6 25.7 25.8 25.9 26.0 26.1 26.1.1 26.2 26.3 26.4 26.5 26.6 26.7 26.8 26.9 27.0 27.1 27.1.1 27.2 27.3 27.4
wordpress-seo / src / integrations / watchers / auto-update-watcher.php
wordpress-seo / src / integrations / watchers Last commit date
addon-update-watcher.php 3 months ago auto-update-watcher.php 2 years ago indexable-ancestor-watcher.php 3 months ago indexable-attachment-watcher.php 1 year ago indexable-author-archive-watcher.php 3 months ago indexable-author-watcher.php 1 year ago indexable-category-permalink-watcher.php 2 years ago indexable-date-archive-watcher.php 2 years ago indexable-home-page-watcher.php 1 year ago indexable-homeurl-watcher.php 5 years ago indexable-permalink-watcher.php 2 years ago indexable-post-meta-watcher.php 2 years ago indexable-post-type-archive-watcher.php 1 year ago indexable-post-type-change-watcher.php 1 year ago indexable-post-watcher.php 3 months ago indexable-static-home-page-watcher.php 2 years ago indexable-system-page-watcher.php 2 years ago indexable-taxonomy-change-watcher.php 1 year ago indexable-term-watcher.php 1 year ago option-titles-watcher.php 3 months ago option-wpseo-watcher.php 1 year ago primary-category-quick-edit-watcher.php 2 years ago primary-term-watcher.php 1 year ago search-engines-discouraged-watcher.php 3 months ago woocommerce-beta-editor-watcher.php 3 months ago
auto-update-watcher.php
59 lines
1 <?php
2
3 namespace Yoast\WP\SEO\Integrations\Watchers;
4
5 use Yoast\WP\SEO\Conditionals\No_Conditionals;
6 use Yoast\WP\SEO\Integrations\Integration_Interface;
7 use Yoast_Notification_Center;
8
9 /**
10 * Shows a notification for users who have WordPress auto updates enabled but not Yoast SEO auto updates.
11 */
12 class Auto_Update_Watcher implements Integration_Interface {
13
14 use No_Conditionals;
15
16 /**
17 * The notification ID.
18 */
19 public const NOTIFICATION_ID = 'wpseo-auto-update';
20
21 /**
22 * The Yoast notification center.
23 *
24 * @var Yoast_Notification_Center
25 */
26 protected $notification_center;
27
28 /**
29 * Auto_Update constructor.
30 *
31 * @param Yoast_Notification_Center $notification_center The notification center.
32 */
33 public function __construct( Yoast_Notification_Center $notification_center ) {
34 $this->notification_center = $notification_center;
35 }
36
37 /**
38 * Initializes the integration.
39 *
40 * On admin_init, it is checked whether the notification to auto-update Yoast SEO needs to be shown or removed.
41 * This is also done when major WP core updates are being enabled or disabled,
42 * and when automatic updates for Yoast SEO are being enabled or disabled.
43 *
44 * @return void
45 */
46 public function register_hooks() {
47 \add_action( 'admin_init', [ $this, 'remove_notification' ] );
48 }
49
50 /**
51 * Removes the notification from the notification center, if it exists.
52 *
53 * @return void
54 */
55 public function remove_notification() {
56 $this->notification_center->remove_notification_by_id( self::NOTIFICATION_ID );
57 }
58 }
59