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/accelera...
File: uninstall.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Uninstall AMP For wp
[2] Fix | Delete
*
[3] Fix | Delete
*/// if uninstall.php is not called by WordPress, die
[4] Fix | Delete
if (!defined('WP_UNINSTALL_PLUGIN')) {
[5] Fix | Delete
die;
[6] Fix | Delete
}
[7] Fix | Delete
$redux_builder_amp = get_option('redux_builder_amp',true);
[8] Fix | Delete
if(isset($redux_builder_amp['ampforwp-delete-on-uninstall']) && $redux_builder_amp['ampforwp-delete-on-uninstall']==1){
[9] Fix | Delete
[10] Fix | Delete
$option_name = 'redux_builder_amp';
[11] Fix | Delete
[12] Fix | Delete
$optionsArray = array(
[13] Fix | Delete
'ampforwp_rewrite_flush_option',
[14] Fix | Delete
'AMPforwp_db_version',
[15] Fix | Delete
'AMP-category-base-removal-status',
[16] Fix | Delete
'redux_support_hash',
[17] Fix | Delete
'ampforwp_exclude_post',
[18] Fix | Delete
'ampforwp_cpt_generated_post_types',
[19] Fix | Delete
'ampforwp_custom_post_types',
[20] Fix | Delete
'amp_customizer',
[21] Fix | Delete
'ampforwp_design',
[22] Fix | Delete
'ampforwp_default_pages_to',
[23] Fix | Delete
'ampforwp_installer_completed',
[24] Fix | Delete
'redux_builder_amp-transients',
[25] Fix | Delete
'widget_ampforwp_categories_widget',
[26] Fix | Delete
'ampforwp_plugin_info',
[27] Fix | Delete
'ampforwp_structure_data_module_upgrade'
[28] Fix | Delete
);
[29] Fix | Delete
$post_meta_array = array(
[30] Fix | Delete
'use_ampforwp_page_builder',
[31] Fix | Delete
'ampforwp_page_builder_enable',
[32] Fix | Delete
'amp-page-builder',
[33] Fix | Delete
'ampforwp_custom_content_editor',
[34] Fix | Delete
'ampforwp_custom_content_editor_checkbox',
[35] Fix | Delete
'ampforwp_custom_sidebar_select',
[36] Fix | Delete
'ampforwp-amp-on-off',
[37] Fix | Delete
'ampforwp-redirection-on-off',
[38] Fix | Delete
'ampforwp-wpautop',
[39] Fix | Delete
);
[40] Fix | Delete
[41] Fix | Delete
if ( is_multisite() ) {
[42] Fix | Delete
[43] Fix | Delete
// for site options in Multisite
[44] Fix | Delete
delete_site_option($option_name);
[45] Fix | Delete
if(is_array($optionsArray)){
[46] Fix | Delete
foreach ($optionsArray as $key => $optionName) {
[47] Fix | Delete
delete_site_option($optionName);
[48] Fix | Delete
}
[49] Fix | Delete
}
[50] Fix | Delete
[51] Fix | Delete
// Post Meta
[52] Fix | Delete
if(is_array($post_meta_array)){
[53] Fix | Delete
foreach ($post_meta_array as $post_meta ) {
[54] Fix | Delete
delete_post_meta_by_key( $post_meta );
[55] Fix | Delete
}
[56] Fix | Delete
}
[57] Fix | Delete
delete_site_option('ampforwp_option_panel_view_type');
[58] Fix | Delete
}else{
[59] Fix | Delete
delete_option($option_name);
[60] Fix | Delete
if(is_array($optionsArray)){
[61] Fix | Delete
foreach ($optionsArray as $key => $optionName) {
[62] Fix | Delete
delete_option($optionName);
[63] Fix | Delete
}
[64] Fix | Delete
}
[65] Fix | Delete
[66] Fix | Delete
// Post Meta
[67] Fix | Delete
if(is_array($post_meta_array)){
[68] Fix | Delete
foreach ($post_meta_array as $post_meta ) {
[69] Fix | Delete
delete_post_meta_by_key( $post_meta );
[70] Fix | Delete
}
[71] Fix | Delete
}
[72] Fix | Delete
delete_option('ampforwp_option_panel_view_type');
[73] Fix | Delete
delete_option("ampforwp_feedback_remove_notice");
[74] Fix | Delete
delete_option("ampforwp_dismiss_discount_btn");
[75] Fix | Delete
delete_option("ampforwp_tpd_remove_notice");
[76] Fix | Delete
}
[77] Fix | Delete
}
[78] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function