Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../public_h.../wp-conte.../plugins/wordpres.../admin/menu
File: class-network-admin-menu.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* WPSEO plugin file.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WPSEO\Admin\Menu
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
/**
[7] Fix | Delete
* Network Admin Menu handler.
[8] Fix | Delete
*/
[9] Fix | Delete
class WPSEO_Network_Admin_Menu extends WPSEO_Base_Menu {
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* Registers all hooks to WordPress.
[13] Fix | Delete
*
[14] Fix | Delete
* @return void
[15] Fix | Delete
*/
[16] Fix | Delete
public function register_hooks() {
[17] Fix | Delete
// Needs the lower than default priority so other plugins can hook underneath it without issue.
[18] Fix | Delete
add_action( 'network_admin_menu', [ $this, 'register_settings_page' ], 5 );
[19] Fix | Delete
}
[20] Fix | Delete
[21] Fix | Delete
/**
[22] Fix | Delete
* Register the settings page for the Network settings.
[23] Fix | Delete
*
[24] Fix | Delete
* @return void
[25] Fix | Delete
*/
[26] Fix | Delete
public function register_settings_page() {
[27] Fix | Delete
if ( ! $this->check_manage_capability() ) {
[28] Fix | Delete
return;
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
add_menu_page(
[32] Fix | Delete
__( 'Network Settings', 'wordpress-seo' ) . ' - Yoast SEO',
[33] Fix | Delete
'Yoast SEO',
[34] Fix | Delete
$this->get_manage_capability(),
[35] Fix | Delete
$this->get_page_identifier(),
[36] Fix | Delete
[ $this, 'network_config_page' ],
[37] Fix | Delete
$this->get_icon_svg()
[38] Fix | Delete
);
[39] Fix | Delete
[40] Fix | Delete
$submenu_pages = $this->get_submenu_pages();
[41] Fix | Delete
$this->register_submenu_pages( $submenu_pages );
[42] Fix | Delete
}
[43] Fix | Delete
[44] Fix | Delete
/**
[45] Fix | Delete
* Returns the list of registered submenu pages.
[46] Fix | Delete
*
[47] Fix | Delete
* @return array List of registered submenu pages.
[48] Fix | Delete
*/
[49] Fix | Delete
public function get_submenu_pages() {
[50] Fix | Delete
[51] Fix | Delete
// Submenu pages.
[52] Fix | Delete
$submenu_pages = [
[53] Fix | Delete
$this->get_submenu_page(
[54] Fix | Delete
__( 'General', 'wordpress-seo' ),
[55] Fix | Delete
$this->get_page_identifier(),
[56] Fix | Delete
[ $this, 'network_config_page' ]
[57] Fix | Delete
),
[58] Fix | Delete
];
[59] Fix | Delete
[60] Fix | Delete
if ( WPSEO_Utils::allow_system_file_edit() === true ) {
[61] Fix | Delete
$submenu_pages[] = $this->get_submenu_page( __( 'Edit Files', 'wordpress-seo' ), 'wpseo_files' );
[62] Fix | Delete
}
[63] Fix | Delete
[64] Fix | Delete
$submenu_pages[] = $this->get_submenu_page( __( 'Extensions', 'wordpress-seo' ), 'wpseo_licenses' );
[65] Fix | Delete
[66] Fix | Delete
return $submenu_pages;
[67] Fix | Delete
}
[68] Fix | Delete
[69] Fix | Delete
/**
[70] Fix | Delete
* Loads the form for the network configuration page.
[71] Fix | Delete
*
[72] Fix | Delete
* @return void
[73] Fix | Delete
*/
[74] Fix | Delete
public function network_config_page() {
[75] Fix | Delete
require_once WPSEO_PATH . 'admin/pages/network.php';
[76] Fix | Delete
}
[77] Fix | Delete
[78] Fix | Delete
/**
[79] Fix | Delete
* Checks whether the current user has capabilities to manage all options.
[80] Fix | Delete
*
[81] Fix | Delete
* @return bool True if capabilities are sufficient, false otherwise.
[82] Fix | Delete
*/
[83] Fix | Delete
protected function check_manage_capability() {
[84] Fix | Delete
return current_user_can( $this->get_manage_capability() );
[85] Fix | Delete
}
[86] Fix | Delete
[87] Fix | Delete
/**
[88] Fix | Delete
* Returns the capability that is required to manage all options.
[89] Fix | Delete
*
[90] Fix | Delete
* @return string Capability to check against.
[91] Fix | Delete
*/
[92] Fix | Delete
protected function get_manage_capability() {
[93] Fix | Delete
return 'wpseo_manage_network_options';
[94] Fix | Delete
}
[95] Fix | Delete
}
[96] Fix | Delete
[97] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function