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/password.../includes/views/shortcod...
File: view-ppw-shortcode-settings.php
<?php
[0] Fix | Delete
$html_link = sprintf(
[1] Fix | Delete
'<a target="_blank" rel="noopener" href="%s">lock parts of your content</a>',
[2] Fix | Delete
'https://passwordprotectwp.com/docs/password-protect-wordpress-content-sections/'
[3] Fix | Delete
);
[4] Fix | Delete
$desc = sprintf(
[5] Fix | Delete
// translators: %s: Link to documentation.
[6] Fix | Delete
esc_html__( 'Use the following shortcode to %s. Set as many passwords as you’d like to.', PPW_Constants::DOMAIN ),
[7] Fix | Delete
$html_link
[8] Fix | Delete
);
[9] Fix | Delete
$link_shortcode = sprintf(
[10] Fix | Delete
'<a target="_blank" rel="noopener" href="%s">Use our built-in block</a>',
[11] Fix | Delete
'https://passwordprotectwp.com/docs/protect-partial-content-page-builders/?utm_source=user-website&amp;utm_medium=plugin-settings&amp;utm_content=shortcodes'
[12] Fix | Delete
);
[13] Fix | Delete
$message_shortcode = sprintf(
[14] Fix | Delete
// translators: %s: Link to documentation.
[15] Fix | Delete
__( '%s instead if you\'re using popular page builders, e.g. Elementor and Beaver Builder.', PPW_Constants::DOMAIN ),
[16] Fix | Delete
$link_shortcode
[17] Fix | Delete
);
[18] Fix | Delete
$_get = wp_unslash( $_GET ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- We no need to handle nonce verification for render UI.
[19] Fix | Delete
$page = isset( $_get['page'] ) ? $_get['page'] : null;
[20] Fix | Delete
$tab = isset( $_get['tab'] ) ? $_get['tab'] : null;
[21] Fix | Delete
[22] Fix | Delete
[23] Fix | Delete
[24] Fix | Delete
$message_shortcode_desc = '';
[25] Fix | Delete
// Only show this message when user has never installed and activated Pro version. Because we are having this kind of message in PCP Pro tab.
[26] Fix | Delete
if ( ! is_pro_active_and_valid_license() ) {
[27] Fix | Delete
$link_pcp = sprintf(
[28] Fix | Delete
'<a target="_blank" rel="noopener" href="%s">%s</a>',
[29] Fix | Delete
'https://passwordprotectwp.com/docs/manage-shortcode-global-passwords/',
[30] Fix | Delete
__( 'PCP global passwords', PPW_Constants::DOMAIN )
[31] Fix | Delete
);
[32] Fix | Delete
[33] Fix | Delete
$link_stats_addon = sprintf(
[34] Fix | Delete
'<a target="_blank" rel="noopener" href="%s">%s</a>',
[35] Fix | Delete
'https://passwordprotectwp.com/extensions/password-statistics/',
[36] Fix | Delete
__( 'Statistics addon', PPW_Constants::DOMAIN )
[37] Fix | Delete
);
[38] Fix | Delete
[39] Fix | Delete
$message_shortcode_desc = sprintf(
[40] Fix | Delete
/* translators: %1$s: Statistics link*/
[41] Fix | Delete
__( 'To track Partial Content Protection (PCP) password usage, please get %1$s and use %2$s instead.', PPW_Constants::DOMAIN ),
[42] Fix | Delete
$link_stats_addon,
[43] Fix | Delete
$link_pcp
[44] Fix | Delete
);
[45] Fix | Delete
}
[46] Fix | Delete
[47] Fix | Delete
[48] Fix | Delete
$message = 'Great! You’ve successfully copied the shortcode to clipboard.';
[49] Fix | Delete
$use_shortcode_page_builder = ppw_core_get_setting_type_bool_by_option_name( PPW_Constants::USE_SHORTCODE_PAGE_BUILDER, PPW_Constants::SHORTCODE_OPTIONS ) ? 'checked' : '';
[50] Fix | Delete
[51] Fix | Delete
?>
[52] Fix | Delete
<div class="ppw_main_container" id="ppw_shortcodes_form">
[53] Fix | Delete
<form id="wpp_shortcode_form" method="post">
[54] Fix | Delete
<table class="ppwp_settings_table" cellpadding="4">
[55] Fix | Delete
<?php do_action( PPW_Constants::HOOK_SHORTCODE_SETTINGS_EXTENDS ); ?>
[56] Fix | Delete
</table>
[57] Fix | Delete
</form>
[58] Fix | Delete
</div>
[59] Fix | Delete
[60] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function