Shadow-Here


Server : Apache
System : Linux methusalix2 3.16.0-11-amd64 #1 SMP Debian 3.16.84-1 (2020-06-09) x86_64
User : hios ( 1437)
PHP Version : 5.6.40-0+deb8u12
Disable Function : proc_close,proc_open,dl,shell_exec,passthru
Directory :  /home/hios/public_html/wp-content/plugins/wordpress-seo/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :
Current File : /home/hios/public_html/wp-content/plugins/wordpress-seo/inc/class-wpseo-advanced-settings.php
<?php
/**
 * @package    WPSEO
 * @subpackage Internal
 */

/**
 * Class containing methods for WPSEO Advanced Settings.
 */
class WPSEO_Advanced_Settings {

	/**
	 * @var array The default advanced pages.
	 */
	private static $default_advanced_pages = array(
		'wpseo_titles',
		'wpseo_social',
		'wpseo_xml',
		'wpseo_advanced',
		'wpseo_tools',
	);

	/**
	 * @var array Additional advanced settings pages.
	 */
	private static $additional_advanced_pages = array();

	/**
	 * Gets the list of default advanced pages.
	 *
	 * @return array The default advanced pages.
	 */
	public static function get_advanced_pages() {
		return self::$default_advanced_pages;
	}

	/**
	 * Adds a page as an advanced settings page if it isn't already present or a default page.
	 *
	 * @param string $page The page to add.
	 *
	 * @returns void
	 */
	public static function add_advanced_page( $page ) {
		if ( ! in_array( $page, self::$default_advanced_pages ) && ! in_array( $page, self::$additional_advanced_pages )  ) {
			self::$additional_advanced_pages[] = $page;
		}
	}

	/**
	 * Checks if the current page is a Yoast SEO advanced settings page.
	 *
	 * @param string $page The page to check.
	 *
	 * @return bool Whether or not the page is considered an advanced settings page.
	 */
	public static function is_advanced_settings_page( $page ) {
		if ( is_string( $page ) ) {
			return in_array( $page, self::$default_advanced_pages ) || in_array( $page, self::$additional_advanced_pages );
		}

		return false;
	}
}

Samx