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: coursepress.php
<?php
[0] Fix | Delete
[1] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[2] Fix | Delete
exit; // Exit if accessed directly
[3] Fix | Delete
}
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* Plugin compatibility for CoursePress Pro
[7] Fix | Delete
*
[8] Fix | Delete
* @since 3.21.3
[9] Fix | Delete
*/
[10] Fix | Delete
class ET_Builder_Plugin_Compat_CoursePress extends ET_Builder_Plugin_Compat_Base {
[11] Fix | Delete
[12] Fix | Delete
/**
[13] Fix | Delete
* Constructor
[14] Fix | Delete
*/
[15] Fix | Delete
public function __construct() {
[16] Fix | Delete
$this->plugin_id = 'coursepress/coursepress.php';
[17] Fix | Delete
$this->init_hooks();
[18] Fix | Delete
}
[19] Fix | Delete
[20] Fix | Delete
/**
[21] Fix | Delete
* Hook methods to WordPress
[22] Fix | Delete
*
[23] Fix | Delete
* @return void
[24] Fix | Delete
*/
[25] Fix | Delete
public function init_hooks() {
[26] Fix | Delete
[27] Fix | Delete
if ( ! method_exists( 'CoursePress_Admin_Edit', 'enable_tinymce' ) ) {
[28] Fix | Delete
return;
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
// Remove the filter so it doesn't execute too early....
[32] Fix | Delete
remove_filter( 'user_can_richedit', array( 'CoursePress_Admin_Edit', 'enable_tinymce' ) );
[33] Fix | Delete
// ... and add it again later, when it won't cause errors.
[34] Fix | Delete
add_action( 'current_screen', array( $this, 'current_screen' ) );
[35] Fix | Delete
[36] Fix | Delete
}
[37] Fix | Delete
[38] Fix | Delete
/**
[39] Fix | Delete
* Add the filter again.
[40] Fix | Delete
*
[41] Fix | Delete
* @access public.
[42] Fix | Delete
* @return void
[43] Fix | Delete
*/
[44] Fix | Delete
public function current_screen() {
[45] Fix | Delete
add_filter( 'user_can_richedit', array( 'CoursePress_Admin_Edit', 'enable_tinymce' ) );
[46] Fix | Delete
}
[47] Fix | Delete
}
[48] Fix | Delete
[49] Fix | Delete
new ET_Builder_Plugin_Compat_CoursePress();
[50] Fix | Delete
[51] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function