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.../httpdocs/clone/wp-conte.../plugins/wordpres.../inc
File: class-wpseo-installation.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* WPSEO plugin file.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WPSEO\Internals
[4] Fix | Delete
* @since 3.6
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
/**
[8] Fix | Delete
* This class checks if the wpseo option doesn't exists. In the case it doesn't it will set a property that is
[9] Fix | Delete
* accessible via a method to check if the installation is fresh.
[10] Fix | Delete
*/
[11] Fix | Delete
class WPSEO_Installation {
[12] Fix | Delete
[13] Fix | Delete
/**
[14] Fix | Delete
* Checks if Yoast SEO is installed for the first time.
[15] Fix | Delete
*/
[16] Fix | Delete
public function __construct() {
[17] Fix | Delete
$is_first_install = $this->is_first_install();
[18] Fix | Delete
[19] Fix | Delete
if ( $is_first_install && WPSEO_Utils::is_api_available() ) {
[20] Fix | Delete
add_action( 'wpseo_activate', [ $this, 'set_first_install_options' ] );
[21] Fix | Delete
}
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
/**
[25] Fix | Delete
* When the option doesn't exist, it should be a new install.
[26] Fix | Delete
*
[27] Fix | Delete
* @return bool
[28] Fix | Delete
*/
[29] Fix | Delete
private function is_first_install() {
[30] Fix | Delete
return ( get_option( 'wpseo' ) === false );
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
/**
[34] Fix | Delete
* Sets the options on first install for showing the installation notice and disabling of the settings pages.
[35] Fix | Delete
*
[36] Fix | Delete
* @return void
[37] Fix | Delete
*/
[38] Fix | Delete
public function set_first_install_options() {
[39] Fix | Delete
$options = get_option( 'wpseo' );
[40] Fix | Delete
[41] Fix | Delete
$options['show_onboarding_notice'] = true;
[42] Fix | Delete
$options['first_activated_on'] = time();
[43] Fix | Delete
[44] Fix | Delete
update_option( 'wpseo', $options );
[45] Fix | Delete
}
[46] Fix | Delete
}
[47] Fix | Delete
[48] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function