Edit File by line
/home/barbar84/www/wp-conte.../plugins/wordpres.../src
File: functions.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* WPSEO plugin file.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WPSEO\Internals
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
if ( ! defined( 'WPSEO_VERSION' ) ) {
[7] Fix | Delete
header( 'Status: 403 Forbidden' );
[8] Fix | Delete
header( 'HTTP/1.1 403 Forbidden' );
[9] Fix | Delete
exit();
[10] Fix | Delete
}
[11] Fix | Delete
[12] Fix | Delete
use Yoast\WP\SEO\Main;
[13] Fix | Delete
[14] Fix | Delete
if ( is_dir( WPSEO_PATH . YOAST_VENDOR_PREFIX_DIRECTORY ) ) {
[15] Fix | Delete
require_once WPSEO_PATH . YOAST_VENDOR_PREFIX_DIRECTORY . '/guzzlehttp/guzzle/src/functions.php';
[16] Fix | Delete
require_once WPSEO_PATH . YOAST_VENDOR_PREFIX_DIRECTORY . '/guzzlehttp/psr7/src/functions_include.php';
[17] Fix | Delete
require_once WPSEO_PATH . YOAST_VENDOR_PREFIX_DIRECTORY . '/guzzlehttp/promises/src/functions_include.php';
[18] Fix | Delete
}
[19] Fix | Delete
[20] Fix | Delete
/**
[21] Fix | Delete
* Retrieves the main instance.
[22] Fix | Delete
*
[23] Fix | Delete
* @phpcs:disable WordPress.NamingConventions -- Should probably be renamed, but leave for now.
[24] Fix | Delete
*
[25] Fix | Delete
* @return Main The main instance.
[26] Fix | Delete
*/
[27] Fix | Delete
function YoastSEO() {
[28] Fix | Delete
// phpcs:enable
[29] Fix | Delete
[30] Fix | Delete
static $main;
[31] Fix | Delete
[32] Fix | Delete
if ( $main === null ) {
[33] Fix | Delete
$main = new Main();
[34] Fix | Delete
$main->load();
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
return $main;
[38] Fix | Delete
}
[39] Fix | Delete
[40] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function