Submit
Path:
~
/
home
/
getwphos
/
public_html
/
shellfish
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
integrations
/
watchers
/
File Content:
auto-update-watcher.php
<?php namespace Yoast\WP\SEO\Integrations\Watchers; use Yoast\WP\SEO\Conditionals\No_Conditionals; use Yoast\WP\SEO\Integrations\Integration_Interface; use Yoast_Notification_Center; /** * Shows a notification for users who have WordPress auto updates enabled but not Yoast SEO auto updates. */ class Auto_Update_Watcher implements Integration_Interface { use No_Conditionals; /** * The notification ID. */ public const NOTIFICATION_ID = 'wpseo-auto-update'; /** * The Yoast notification center. * * @var Yoast_Notification_Center */ protected $notification_center; /** * Auto_Update constructor. * * @param Yoast_Notification_Center $notification_center The notification center. */ public function __construct( Yoast_Notification_Center $notification_center ) { $this->notification_center = $notification_center; } /** * Initializes the integration. * * On admin_init, it is checked whether the notification to auto-update Yoast SEO needs to be shown or removed. * This is also done when major WP core updates are being enabled or disabled, * and when automatic updates for Yoast SEO are being enabled or disabled. * * @return void */ public function register_hooks() { \add_action( 'admin_init', [ $this, 'remove_notification' ] ); } /** * Removes the notification from the notification center, if it exists. * * @return void */ public function remove_notification() { $this->notification_center->remove_notification_by_id( self::NOTIFICATION_ID ); } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
addon-update-watcher.php
7309 bytes
0644
auto-update-watcher.php
1530 bytes
0644
indexable-ancestor-watcher.php
8418 bytes
0644
indexable-attachment-watcher.php
4881 bytes
0644
indexable-author-archive-watcher.php
2382 bytes
0644
indexable-author-watcher.php
3592 bytes
0644
indexable-category-permalink-watcher.php
1780 bytes
0644
indexable-date-archive-watcher.php
2589 bytes
0644
indexable-home-page-watcher.php
3638 bytes
0644
indexable-homeurl-watcher.php
2824 bytes
0644
indexable-permalink-watcher.php
7940 bytes
0644
indexable-post-meta-watcher.php
2970 bytes
0644
indexable-post-type-archive-watcher.php
4061 bytes
0644
indexable-post-type-change-watcher.php
5118 bytes
0644
indexable-post-watcher.php
10132 bytes
0644
indexable-static-home-page-watcher.php
2253 bytes
0644
indexable-system-page-watcher.php
2707 bytes
0644
indexable-taxonomy-change-watcher.php
5176 bytes
0644
indexable-term-watcher.php
3758 bytes
0644
option-titles-watcher.php
3379 bytes
0644
option-wpseo-watcher.php
4193 bytes
0644
primary-category-quick-edit-watcher.php
5682 bytes
0644
primary-term-watcher.php
4516 bytes
0644
search-engines-discouraged-watcher.php
7146 bytes
0644
woocommerce-beta-editor-watcher.php
4251 bytes
0644
N4ST4R_ID | Naxtarrr