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/clone/wp-conte.../plugins/password.../includes/services
File: class-ppw-customizer-upsell.php
<?php
[0] Fix | Delete
[1] Fix | Delete
if ( ! class_exists( 'PPW_Customizer_Upsell' ) ) {
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* Register PPW_Customizer_Upsell Configurations.
[5] Fix | Delete
*/
[6] Fix | Delete
class PPW_Customizer_Upsell {
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* Register upsell section for customize
[10] Fix | Delete
*
[11] Fix | Delete
* @var PPW_Customizer_Upsell
[12] Fix | Delete
*/
[13] Fix | Delete
protected static $instance = null;
[14] Fix | Delete
[15] Fix | Delete
[16] Fix | Delete
/**
[17] Fix | Delete
* Constructor for PPW_Customizer_Upsell
[18] Fix | Delete
*/
[19] Fix | Delete
public function __construct() {
[20] Fix | Delete
add_action( 'customize_register', array( $this, 'customize_register' ) );
[21] Fix | Delete
add_action( 'customize_controls_enqueue_scripts', array( $this, 'enqueue' ) );
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
/**
[25] Fix | Delete
* Get instance of PPW_Customizer_Upsell
[26] Fix | Delete
*
[27] Fix | Delete
* @return PPW_Customizer_Upsell
[28] Fix | Delete
*/
[29] Fix | Delete
public static function get_instance() {
[30] Fix | Delete
if ( is_null( self::$instance ) ) {
[31] Fix | Delete
self::$instance = new static();
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
return self::$instance;
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
public function customize_register( $wp_customize ) {
[38] Fix | Delete
include PPW_DIR_PATH . 'includes/customizers/class-ppw-customize-link-section.php';
[39] Fix | Delete
[40] Fix | Delete
$wp_customize->register_section_type( 'PPW_Customize_Link_Section' );
[41] Fix | Delete
[42] Fix | Delete
$wp_customize->add_section(
[43] Fix | Delete
new PPW_Customize_Link_Section( $wp_customize, 'ppwp_upsell',
[44] Fix | Delete
array(
[45] Fix | Delete
'ppwp_text' => __( 'More options available in PPWP Pro', PPW_Constants::DOMAIN ),
[46] Fix | Delete
'ppwp_url' => esc_url( 'https://passwordprotectwp.com/features/lite-vs-pro-version/?utm_source=user-website&utm_medium=wp-customizer&utm_campaign=ppwp-free#sitewide-customizer' ),
[47] Fix | Delete
'capability' => 'edit_theme_options',
[48] Fix | Delete
'priority' => 9999,
[49] Fix | Delete
'type' => 'ppwp-upsell-section',
[50] Fix | Delete
)
[51] Fix | Delete
)
[52] Fix | Delete
);
[53] Fix | Delete
[54] Fix | Delete
}
[55] Fix | Delete
[56] Fix | Delete
public function enqueue() {
[57] Fix | Delete
wp_enqueue_script( 'ppw-upsell-section-scripts', PPW_DIR_URL . 'includes/customizers/assets/ppw-upsell-section.js', array( 'jquery' ), PPW_VERSION, true );
[58] Fix | Delete
}
[59] Fix | Delete
[60] Fix | Delete
}
[61] Fix | Delete
}
[62] Fix | Delete
[63] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function