| Server IP : 54.155.247.149 / Your IP : 172.31.12.34 Web Server : Apache/2.4.68 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2 System : Linux ip-172-31-10-208.eu-west-1.compute.internal 6.8.0-1044-aws #46~22.04.1-Ubuntu SMP Tue Dec 2 12:52:18 UTC 2025 x86_64 User : kazang ( 1006) PHP Version : 8.2.31 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,exec,system,passthru,shell_exec,proc_open,popen MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/kazang/web/kazang.com/public_html/wp-content/plugins/wordpress-seo/admin/menu/ |
Upload File : |
<?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Admin\Menu
*/
/**
* Registers the regular admin menu and network admin menu implementations.
*/
class WPSEO_Menu implements WPSEO_WordPress_Integration {
/**
* The page identifier used in WordPress to register the admin page.
*
* !DO NOT CHANGE THIS!
*
* @var string
*/
public const PAGE_IDENTIFIER = 'wpseo_dashboard';
/**
* List of classes that add admin functionality.
*
* @var array
*/
protected $admin_features;
/**
* Registers all hooks to WordPress.
*
* @return void
*/
public function register_hooks() {
$admin_menu = new WPSEO_Admin_Menu( $this );
$admin_menu->register_hooks();
if ( WPSEO_Utils::is_plugin_network_active() ) {
$network_admin_menu = new WPSEO_Network_Admin_Menu( $this );
$network_admin_menu->register_hooks();
}
$capability_normalizer = new WPSEO_Submenu_Capability_Normalize();
$capability_normalizer->register_hooks();
}
/**
* Returns the main menu page identifier.
*
* @return string Page identifier to use.
*/
public function get_page_identifier() {
return self::PAGE_IDENTIFIER;
}
/**
* Loads the requested admin settings page.
*
* @return void
*/
public function load_page() {
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information.
if ( isset( $_GET['page'] ) && is_string( $_GET['page'] ) ) {
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information.
$page = sanitize_text_field( wp_unslash( $_GET['page'] ) );
$this->show_page( $page );
}
}
/**
* Shows an admin settings page.
*
* @param string $page Page to display.
*
* @return void
*/
protected function show_page( $page ) {
switch ( $page ) {
case 'wpseo_tools':
require_once WPSEO_PATH . 'admin/pages/tools.php';
break;
case 'wpseo_files':
require_once WPSEO_PATH . 'admin/views/tool-file-editor.php';
break;
default:
break;
}
}
}