403Webshell
Server IP : 198.38.94.67  /  Your IP : 216.73.217.142
Web Server : LiteSpeed
System : Linux d6054.dxb1.stableserver.net 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
User : azfilmst ( 1070)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/azfilmst/www/wp-content/plugins/wordpress-seo/src/plugins-tab/domain/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/azfilmst/www/wp-content/plugins/wordpress-seo/src/plugins-tab/domain/plugin-detector.php
<?php

// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\Plugins_Tab\Domain;

/**
 * Detects whether a plugin is a Yoast plugin by checking its author information.
 */
class Plugin_Detector {

	/**
	 * The string to look for in the plugin's AuthorName field.
	 *
	 * @var string
	 */
	public const AUTHOR_IDENTIFIER = 'Team Yoast';

	/**
	 * The minimum number of Yoast plugins required to show the tab.
	 *
	 * @var int
	 */
	public const MINIMUM_FOR_TAB = 2;

	/**
	 * Checks whether a plugin is a Yoast plugin based on its author data.
	 *
	 * @param array<string, string> $plugin_data The plugin data array.
	 *
	 * @return bool Whether the plugin is a Yoast plugin.
	 */
	public function is_yoast_plugin( array $plugin_data ): bool {
		if ( ! isset( $plugin_data['AuthorName'] ) || ! \is_string( $plugin_data['AuthorName'] ) ) {
			return false;
		}

		return \str_contains( $plugin_data['AuthorName'], self::AUTHOR_IDENTIFIER );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit