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.../src/integrat...
File: breadcrumbs-integration.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Integrations;
[2] Fix | Delete
[3] Fix | Delete
use WPSEO_Replace_Vars;
[4] Fix | Delete
use Yoast\WP\SEO\Memoizers\Meta_Tags_Context_Memoizer;
[5] Fix | Delete
use Yoast\WP\SEO\Presenters\Breadcrumbs_Presenter;
[6] Fix | Delete
use Yoast\WP\SEO\Surfaces\Helpers_Surface;
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* Adds customizations to the front end for breadcrumbs.
[10] Fix | Delete
*/
[11] Fix | Delete
class Breadcrumbs_Integration implements Integration_Interface {
[12] Fix | Delete
[13] Fix | Delete
/**
[14] Fix | Delete
* The breadcrumbs presenter.
[15] Fix | Delete
*
[16] Fix | Delete
* @var Breadcrumbs_Presenter
[17] Fix | Delete
*/
[18] Fix | Delete
private $presenter;
[19] Fix | Delete
[20] Fix | Delete
/**
[21] Fix | Delete
* The meta tags context memoizer.
[22] Fix | Delete
*
[23] Fix | Delete
* @var Meta_Tags_Context_Memoizer
[24] Fix | Delete
*/
[25] Fix | Delete
private $context_memoizer;
[26] Fix | Delete
[27] Fix | Delete
/**
[28] Fix | Delete
* Breadcrumbs integration constructor.
[29] Fix | Delete
*
[30] Fix | Delete
* @param Helpers_Surface $helpers The helpers.
[31] Fix | Delete
* @param WPSEO_Replace_Vars $replace_vars The replace vars.
[32] Fix | Delete
* @param Meta_Tags_Context_Memoizer $context_memoizer The meta tags context memoizer.
[33] Fix | Delete
*/
[34] Fix | Delete
public function __construct(
[35] Fix | Delete
Helpers_Surface $helpers,
[36] Fix | Delete
WPSEO_Replace_Vars $replace_vars,
[37] Fix | Delete
Meta_Tags_Context_Memoizer $context_memoizer
[38] Fix | Delete
) {
[39] Fix | Delete
$this->context_memoizer = $context_memoizer;
[40] Fix | Delete
$this->presenter = new Breadcrumbs_Presenter();
[41] Fix | Delete
$this->presenter->helpers = $helpers;
[42] Fix | Delete
$this->presenter->replace_vars = $replace_vars;
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
/**
[46] Fix | Delete
* Returns the conditionals based in which this loadable should be active.
[47] Fix | Delete
*
[48] Fix | Delete
* @return array The array of conditionals.
[49] Fix | Delete
*/
[50] Fix | Delete
public static function get_conditionals() {
[51] Fix | Delete
return [];
[52] Fix | Delete
}
[53] Fix | Delete
[54] Fix | Delete
/**
[55] Fix | Delete
* Registers the `wpseo_breadcrumb` shortcode.
[56] Fix | Delete
*
[57] Fix | Delete
* @codeCoverageIgnore
[58] Fix | Delete
*
[59] Fix | Delete
* @return void
[60] Fix | Delete
*/
[61] Fix | Delete
public function register_hooks() {
[62] Fix | Delete
\add_shortcode( 'wpseo_breadcrumb', [ $this, 'render' ] );
[63] Fix | Delete
}
[64] Fix | Delete
[65] Fix | Delete
/**
[66] Fix | Delete
* Renders the breadcrumbs.
[67] Fix | Delete
*
[68] Fix | Delete
* @return string The rendered breadcrumbs.
[69] Fix | Delete
*/
[70] Fix | Delete
public function render() {
[71] Fix | Delete
$context = $this->context_memoizer->for_current_page();
[72] Fix | Delete
[73] Fix | Delete
/** This filter is documented in src/integrations/front-end-integration.php */
[74] Fix | Delete
$presentation = \apply_filters( 'wpseo_frontend_presentation', $context->presentation, $context );
[75] Fix | Delete
[76] Fix | Delete
$this->presenter->presentation = $presentation;
[77] Fix | Delete
[78] Fix | Delete
return $this->presenter->present();
[79] Fix | Delete
}
[80] Fix | Delete
}
[81] Fix | Delete
[82] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function