✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ webm004.cluster127.gra.hosting.ovh.net ​🇻​♯➤ 6.18.42-ovh-vps-grsec-zfs+ #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 54.36.91.62 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.191
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ _dyuweyrj4,_dyuweyrj4r,dl

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/docteuh/www/dist/serverhttpson/01/third-party/watchers//indexable-author-archive-watcher.php
<?php

namespace Yoast\WP\SEO\Integrations\Watchers;

use Yoast\WP\SEO\Conditionals\Migrations_Conditional;
use Yoast\WP\SEO\Helpers\Indexable_Helper;
use Yoast\WP\SEO\Integrations\Cleanup_Integration;
use Yoast\WP\SEO\Integrations\Integration_Interface;

/**
 * Watches the `wpseo_titles` option for changes to the author archive settings.
 */
class Indexable_Author_Archive_Watcher implements Integration_Interface {

	/**
	 * The indexable helper.
	 *
	 * @var Indexable_Helper
	 */
	protected $indexable_helper;

	/**
	 * Indexable_Author_Archive_Watcher constructor.
	 *
	 * @param Indexable_Helper $indexable_helper The indexable helper.
	 */
	public function __construct( Indexable_Helper $indexable_helper ) {
		$this->indexable_helper = $indexable_helper;
	}

	/**
	 * Check if the author archives are disabled whenever the `wpseo_titles` option
	 * changes.
	 *
	 * @return void
	 */
	public function register_hooks() {
		\add_action(
			'update_option_wpseo_titles',
			[ $this, 'reschedule_indexable_cleanup_when_author_archives_are_disabled' ],
			10,
			2,
		);
	}

	/**
	 * This watcher should only be run when the migrations have been run.
	 * (Otherwise there may not be an indexable table to clean).
	 *
	 * @return string[] The conditionals.
	 */
	public static function get_conditionals() {
		return [ Migrations_Conditional::class ];
	}

	/**
	 * Reschedule the indexable cleanup routine if the author archives are disabled.
	 * to make sure that all authors are removed from the indexables table.
	 *
	 * When author archives are disabled, they can never be indexed.
	 *
	 * @phpcs:disable SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification
	 *
	 * @param array $old_value The old `wpseo_titles` option value.
	 * @param array $new_value The new `wpseo_titles` option value.
	 *
	 * @phpcs:enable
	 * @return void
	 */
	public function reschedule_indexable_cleanup_when_author_archives_are_disabled( $old_value, $new_value ) {
		if ( $old_value['disable-author'] !== true && $new_value['disable-author'] === true && $this->indexable_helper->should_index_indexables() ) {
			$cleanup_not_yet_scheduled = ! \wp_next_scheduled( Cleanup_Integration::START_HOOK );
			if ( $cleanup_not_yet_scheduled ) {
				\wp_schedule_single_event( ( \time() + ( \MINUTE_IN_SECONDS * 5 ) ), Cleanup_Integration::START_HOOK );
			}
		}
	}
}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
10 Sep 2026 7.21 PM
docteuh / users
0755
addon-update-watcher.php
7.142 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
auto-update-watcher.php
1.494 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
indexable-ancestor-watcher.php
8.223 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
indexable-attachment-watcher.php
4.767 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
indexable-author-archive-watcher.php
2.327 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
indexable-author-watcher.php
3.508 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
indexable-category-permalink-watcher.php
1.738 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
indexable-date-archive-watcher.php
2.528 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
indexable-home-page-watcher.php
3.553 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
indexable-homeurl-watcher.php
2.758 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
indexable-permalink-watcher.php
7.754 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
indexable-post-meta-watcher.php
2.9 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
indexable-post-type-archive-watcher.php
3.966 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
indexable-post-type-change-watcher.php
4.998 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
indexable-post-watcher.php
9.894 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
indexable-static-home-page-watcher.php
2.2 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
indexable-system-page-watcher.php
2.644 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
indexable-taxonomy-change-watcher.php
5.055 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
indexable-term-watcher.php
3.67 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
option-titles-watcher.php
3.302 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
option-wpseo-watcher.php
4.095 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
primary-category-quick-edit-watcher.php
5.549 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
primary-term-watcher.php
4.41 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
search-engines-discouraged-watcher.php
6.98 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
woocommerce-beta-editor-watcher.php
4.152 KB
23 Jun 2026 6.19 PM
docteuh / users
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF