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/wp-conte.../plugins/wordpres.../admin/views/tabs/network
File: integrations.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* WPSEO plugin file.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WPSEO\Admin\Views
[4] Fix | Delete
*
[5] Fix | Delete
* @uses Yoast_Form $yform Form object.
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
use Yoast\WP\SEO\Presenters\Admin\Badge_Presenter;
[9] Fix | Delete
use Yoast\WP\SEO\Presenters\Admin\Premium_Badge_Presenter;
[10] Fix | Delete
[11] Fix | Delete
if ( ! defined( 'WPSEO_VERSION' ) ) {
[12] Fix | Delete
header( 'Status: 403 Forbidden' );
[13] Fix | Delete
header( 'HTTP/1.1 403 Forbidden' );
[14] Fix | Delete
exit();
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
$integration_toggles = Yoast_Integration_Toggles::instance()->get_all();
[18] Fix | Delete
[19] Fix | Delete
?>
[20] Fix | Delete
<h2><?php esc_html_e( 'Integrations', 'wordpress-seo' ); ?></h2>
[21] Fix | Delete
<div class="yoast-measure">
[22] Fix | Delete
<?php
[23] Fix | Delete
printf(
[24] Fix | Delete
/* translators: %1$s expands to Yoast SEO */
[25] Fix | Delete
esc_html__( 'This tab allows you to selectively disable %1$s integrations with third-party products for all sites in the network. By default all integrations are enabled, which allows site admins to choose for themselves if they want to toggle an integration on or off for their site. When you disable an integration here, site admins will not be able to use that integration at all.', 'wordpress-seo' ),
[26] Fix | Delete
'Yoast SEO'
[27] Fix | Delete
);
[28] Fix | Delete
[29] Fix | Delete
foreach ( $integration_toggles as $integration ) {
[30] Fix | Delete
$help_text = esc_html( $integration->label );
[31] Fix | Delete
[32] Fix | Delete
if ( ! empty( $integration->extra ) ) {
[33] Fix | Delete
$help_text .= ' ' . $integration->extra;
[34] Fix | Delete
}
[35] Fix | Delete
[36] Fix | Delete
if ( ! empty( $integration->read_more_label ) ) {
[37] Fix | Delete
$help_text .= ' ';
[38] Fix | Delete
$help_text .= sprintf(
[39] Fix | Delete
'<a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s</a>',
[40] Fix | Delete
esc_url( WPSEO_Shortlinker::get( $integration->read_more_url ) ),
[41] Fix | Delete
esc_html( $integration->read_more_label )
[42] Fix | Delete
);
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
$feature_help = new WPSEO_Admin_Help_Panel(
[46] Fix | Delete
WPSEO_Option::ALLOW_KEY_PREFIX . $integration->setting,
[47] Fix | Delete
/* translators: Hidden accessibility text; %s expands to an integration's name. */
[48] Fix | Delete
sprintf( esc_html__( 'Help on: %s', 'wordpress-seo' ), esc_html( $integration->name ) ),
[49] Fix | Delete
$help_text
[50] Fix | Delete
);
[51] Fix | Delete
[52] Fix | Delete
$name = $integration->name;
[53] Fix | Delete
if ( ! empty( $integration->premium ) && $integration->premium === true ) {
[54] Fix | Delete
$name .= ' ' . new Premium_Badge_Presenter( $integration->name );
[55] Fix | Delete
}
[56] Fix | Delete
[57] Fix | Delete
if ( ! empty( $integration->new ) && $integration->new === true ) {
[58] Fix | Delete
$name .= ' ' . new Badge_Presenter( $integration->name );
[59] Fix | Delete
}
[60] Fix | Delete
[61] Fix | Delete
$disabled = $integration->disabled;
[62] Fix | Delete
$show_premium_upsell = false;
[63] Fix | Delete
$premium_upsell_url = '';
[64] Fix | Delete
[65] Fix | Delete
if ( $integration->premium === true && YoastSEO()->helpers->product->is_premium() === false ) {
[66] Fix | Delete
$disabled = true;
[67] Fix | Delete
$show_premium_upsell = true;
[68] Fix | Delete
$premium_upsell_url = WPSEO_Shortlinker::get( $integration->premium_upsell_url );
[69] Fix | Delete
}
[70] Fix | Delete
[71] Fix | Delete
$preserve_disabled_value = false;
[72] Fix | Delete
if ( $disabled ) {
[73] Fix | Delete
$preserve_disabled_value = true;
[74] Fix | Delete
}
[75] Fix | Delete
[76] Fix | Delete
$yform->toggle_switch(
[77] Fix | Delete
WPSEO_Option::ALLOW_KEY_PREFIX . $integration->setting,
[78] Fix | Delete
[
[79] Fix | Delete
'on' => __( 'Allow Control', 'wordpress-seo' ),
[80] Fix | Delete
'off' => __( 'Disable', 'wordpress-seo' ),
[81] Fix | Delete
],
[82] Fix | Delete
$name,
[83] Fix | Delete
$feature_help->get_button_html() . $feature_help->get_panel_html(),
[84] Fix | Delete
[
[85] Fix | Delete
'disabled' => $disabled,
[86] Fix | Delete
'preserve_disabled_value' => $preserve_disabled_value,
[87] Fix | Delete
'show_premium_upsell' => $show_premium_upsell,
[88] Fix | Delete
'premium_upsell_url' => $premium_upsell_url,
[89] Fix | Delete
]
[90] Fix | Delete
);
[91] Fix | Delete
[92] Fix | Delete
do_action( 'Yoast\WP\SEO\admin_network_integration_after', $integration );
[93] Fix | Delete
}
[94] Fix | Delete
?>
[95] Fix | Delete
</div>
[96] Fix | Delete
<?php
[97] Fix | Delete
/*
[98] Fix | Delete
* Required to prevent our settings framework from saving the default because the field isn't
[99] Fix | Delete
* explicitly set when saving the Dashboard page.
[100] Fix | Delete
*/
[101] Fix | Delete
$yform->hidden( 'show_onboarding_notice', 'wpseo_show_onboarding_notice' );
[102] Fix | Delete
[103] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function