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.../third-pa...
File: bbpress.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Integrations\Third_Party;
[2] Fix | Delete
[3] Fix | Delete
use Yoast\WP\SEO\Conditionals\Front_End_Conditional;
[4] Fix | Delete
use Yoast\WP\SEO\Helpers\Options_Helper;
[5] Fix | Delete
use Yoast\WP\SEO\Integrations\Integration_Interface;
[6] Fix | Delete
[7] Fix | Delete
/**
[8] Fix | Delete
* BbPress integration.
[9] Fix | Delete
*/
[10] Fix | Delete
class BbPress implements Integration_Interface {
[11] Fix | Delete
[12] Fix | Delete
/**
[13] Fix | Delete
* The options helper.
[14] Fix | Delete
*
[15] Fix | Delete
* @var Options_Helper
[16] Fix | Delete
*/
[17] Fix | Delete
private $options;
[18] Fix | Delete
[19] Fix | Delete
/**
[20] Fix | Delete
* Returns the conditionals based in which this loadable should be active.
[21] Fix | Delete
*
[22] Fix | Delete
* @return array
[23] Fix | Delete
*/
[24] Fix | Delete
public static function get_conditionals() {
[25] Fix | Delete
return [ Front_End_Conditional::class ];
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
/**
[29] Fix | Delete
* BbPress constructor.
[30] Fix | Delete
*
[31] Fix | Delete
* @codeCoverageIgnore It only sets dependencies.
[32] Fix | Delete
*
[33] Fix | Delete
* @param Options_Helper $options The options helper.
[34] Fix | Delete
*/
[35] Fix | Delete
public function __construct( Options_Helper $options ) {
[36] Fix | Delete
$this->options = $options;
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
/**
[40] Fix | Delete
* Initializes the integration.
[41] Fix | Delete
*
[42] Fix | Delete
* This is the place to register hooks and filters.
[43] Fix | Delete
*
[44] Fix | Delete
* @return void
[45] Fix | Delete
*/
[46] Fix | Delete
public function register_hooks() {
[47] Fix | Delete
if ( $this->options->get( 'breadcrumbs-enable' ) !== true ) {
[48] Fix | Delete
return;
[49] Fix | Delete
}
[50] Fix | Delete
[51] Fix | Delete
/**
[52] Fix | Delete
* If breadcrumbs are active (which they supposedly are if the users has enabled this settings,
[53] Fix | Delete
* there's no reason to have bbPress breadcrumbs as well.
[54] Fix | Delete
*
[55] Fix | Delete
* {@internal The class itself is only loaded when the template tag is encountered
[56] Fix | Delete
* via the template tag function in the wpseo-functions.php file.}}
[57] Fix | Delete
*/
[58] Fix | Delete
\add_filter( 'bbp_get_breadcrumb', '__return_false' );
[59] Fix | Delete
}
[60] Fix | Delete
}
[61] Fix | Delete
[62] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function