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/themify-...
File: themify-popup.php
<?php
[0] Fix | Delete
/*
[1] Fix | Delete
Plugin Name: Themify Popup
[2] Fix | Delete
Plugin URI: https://themify.me/popup
[3] Fix | Delete
Version: 1.4.1
[4] Fix | Delete
Author: Themify
[5] Fix | Delete
Description: A free plugin to display popups for ads, newsletter subscriptions, and general info. It comes with various popup styles (classic, slide-out, fullscreen, etc.). Popups can be scheduled and configured to show on certain posts, pages, categories, and user roles.
[6] Fix | Delete
Text Domain: themify-popup
[7] Fix | Delete
Domain Path: /languages
[8] Fix | Delete
Requires PHP: 7.2
[9] Fix | Delete
Compatibility: 5.0.0
[10] Fix | Delete
*/
[11] Fix | Delete
[12] Fix | Delete
defined( 'ABSPATH' ) or die( '-1' );
[13] Fix | Delete
const THEMIFY_POPUP_VERSION='1.4.1';
[14] Fix | Delete
/**
[15] Fix | Delete
* Bootstrap Popup plugin
[16] Fix | Delete
*
[17] Fix | Delete
* @since 1.0
[18] Fix | Delete
*/
[19] Fix | Delete
function themify_popup_setup() {
[20] Fix | Delete
if( ! defined( 'THEMIFY_POPUP_DIR' ) ){
[21] Fix | Delete
define( 'THEMIFY_POPUP_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
if( ! defined( 'THEMIFY_POPUP_URI' ) ){
[25] Fix | Delete
define( 'THEMIFY_POPUP_URI', trailingslashit( plugin_dir_url( __FILE__ ) ) );
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
[29] Fix | Delete
[30] Fix | Delete
/* load Themify Metabox */
[31] Fix | Delete
if ( ! is_file( 'themify_metabox_bootstrap' ) ) {
[32] Fix | Delete
include THEMIFY_POPUP_DIR . 'includes/themify-metabox/themify-metabox.php';
[33] Fix | Delete
}
[34] Fix | Delete
[35] Fix | Delete
include THEMIFY_POPUP_DIR . 'includes/system.php';
[36] Fix | Delete
[37] Fix | Delete
Themify_Popup::init();
[38] Fix | Delete
}
[39] Fix | Delete
add_action( 'after_setup_theme', 'themify_popup_setup' );
[40] Fix | Delete
[41] Fix | Delete
function themify_popup_activate() {
[42] Fix | Delete
include trailingslashit( __DIR__ ) . 'sample/sample.php';
[43] Fix | Delete
themify_popup_setup();
[44] Fix | Delete
Themify_Popup::register_post_type();
[45] Fix | Delete
flush_rewrite_rules();
[46] Fix | Delete
}
[47] Fix | Delete
register_activation_hook( __FILE__, 'themify_popup_activate' );
[48] Fix | Delete
add_filter( 'plugin_row_meta', 'themify_popup_plugin_meta', 10, 2 );
[49] Fix | Delete
function themify_popup_plugin_meta( $links, $file ) {
[50] Fix | Delete
if ( plugin_basename( __FILE__ ) === $file ) {
[51] Fix | Delete
$row_meta = array(
[52] Fix | Delete
'changelogs' => '<a href="' . esc_url( 'https://themify.org/changelogs/' ) . basename( dirname( $file ) ) .'.txt" target="_blank" aria-label="' . esc_attr__( 'Plugin Changelogs', 'themify' ) . '">' . esc_html__( 'View Changelogs', 'themify' ) . '</a>'
[53] Fix | Delete
);
[54] Fix | Delete
[55] Fix | Delete
return array_merge( $links, $row_meta );
[56] Fix | Delete
}
[57] Fix | Delete
return (array) $links;
[58] Fix | Delete
}
[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