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.../themes/Divi/includes/builder/plugin-c...
File: insert-pages.php
<?php
[0] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[1] Fix | Delete
exit; // Exit if accessed directly
[2] Fix | Delete
}
[3] Fix | Delete
[4] Fix | Delete
/**
[5] Fix | Delete
* Plugin compatibility for insert-pages
[6] Fix | Delete
* @since 0.7 (builder version)
[7] Fix | Delete
* @link https://wordpress.org/plugins/insert-pages/
[8] Fix | Delete
*/
[9] Fix | Delete
class ET_Builder_Plugin_Compat_Insert_Pages extends ET_Builder_Plugin_Compat_Base {
[10] Fix | Delete
/**
[11] Fix | Delete
* Constructor
[12] Fix | Delete
*/
[13] Fix | Delete
function __construct() {
[14] Fix | Delete
$this->plugin_id = "insert-pages/insert-pages.php";
[15] Fix | Delete
$this->init_hooks();
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
/**
[19] Fix | Delete
* Hook methods to WordPress
[20] Fix | Delete
* Note: once this issue is fixed in future version, run version_compare() to limit the scope of the hooked fix
[21] Fix | Delete
* Latest plugin version: 2.7.2
[22] Fix | Delete
* @return void
[23] Fix | Delete
*/
[24] Fix | Delete
function init_hooks() {
[25] Fix | Delete
// Bail if there's no version found
[26] Fix | Delete
if ( ! $this->get_plugin_version() ) {
[27] Fix | Delete
return;
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
// Up to: latest theme version
[31] Fix | Delete
add_action( 'admin_init', array( $this, 'disable_mce_buttons_on_builder' ), 1 );
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
/**
[35] Fix | Delete
* insert-pages' tinyMCE button causes sub-module's tinyMCE editor to be empty when being opened.
[36] Fix | Delete
* This might damage user's content. Since there's no hook to filter or modify insert-pages' js events,
[37] Fix | Delete
* it'd be safer to deregister insert-pages' tinyMCE button
[38] Fix | Delete
*
[39] Fix | Delete
* @return void
[40] Fix | Delete
*/
[41] Fix | Delete
function disable_mce_buttons_on_builder() {
[42] Fix | Delete
global $insertPages_plugin;
[43] Fix | Delete
[44] Fix | Delete
if ( is_null( $insertPages_plugin ) ) {
[45] Fix | Delete
return;
[46] Fix | Delete
}
[47] Fix | Delete
[48] Fix | Delete
remove_action( 'admin_head', array( $insertPages_plugin, 'insertPages_admin_init' ), 1 );
[49] Fix | Delete
}
[50] Fix | Delete
}
[51] Fix | Delete
new ET_Builder_Plugin_Compat_Insert_Pages;
[52] Fix | Delete
[53] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function