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/twitter-.../admin
File: destruction.php
<?php
[0] Fix | Delete
if( !defined('ABSPATH') ){ exit();}
[1] Fix | Delete
function twap_free_network_destroy($networkwide) {
[2] Fix | Delete
global $wpdb;
[3] Fix | Delete
[4] Fix | Delete
if (function_exists('is_multisite') && is_multisite()) {
[5] Fix | Delete
// check if it is a network activation - if so, run the activation function for each blog id
[6] Fix | Delete
if ($networkwide) {
[7] Fix | Delete
$old_blog = $wpdb->blogid;
[8] Fix | Delete
// Get all blog ids
[9] Fix | Delete
$blogids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
[10] Fix | Delete
foreach ($blogids as $blog_id) {
[11] Fix | Delete
switch_to_blog($blog_id);
[12] Fix | Delete
twap_free_destroy();
[13] Fix | Delete
}
[14] Fix | Delete
switch_to_blog($old_blog);
[15] Fix | Delete
return;
[16] Fix | Delete
}
[17] Fix | Delete
}
[18] Fix | Delete
twap_free_destroy();
[19] Fix | Delete
}
[20] Fix | Delete
[21] Fix | Delete
function twap_free_destroy()
[22] Fix | Delete
{
[23] Fix | Delete
global $wpdb;
[24] Fix | Delete
[25] Fix | Delete
if(get_option('xyz_credit_link')=="twap")
[26] Fix | Delete
{
[27] Fix | Delete
update_option("xyz_credit_link", '0');
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
[31] Fix | Delete
delete_option('xyz_twap_twconsumer_secret');
[32] Fix | Delete
delete_option('xyz_twap_twconsumer_id');
[33] Fix | Delete
delete_option('xyz_twap_tw_id');
[34] Fix | Delete
delete_option('xyz_twap_current_twappln_token');
[35] Fix | Delete
delete_option('xyz_twap_twpost_permission');
[36] Fix | Delete
delete_option('xyz_twap_twpost_image_permission');
[37] Fix | Delete
delete_option('xyz_twap_twaccestok_secret');
[38] Fix | Delete
delete_option('xyz_twap_twmessage');
[39] Fix | Delete
delete_option('xyz_twap_future_to_publish');
[40] Fix | Delete
delete_option('xyz_twap_apply_filters');
[41] Fix | Delete
[42] Fix | Delete
delete_option('xyz_twap_free_version');
[43] Fix | Delete
[44] Fix | Delete
delete_option('xyz_twap_include_pages');
[45] Fix | Delete
delete_option('xyz_twap_include_posts');
[46] Fix | Delete
delete_option('xyz_twap_include_categories');
[47] Fix | Delete
delete_option('xyz_twap_include_customposttypes');
[48] Fix | Delete
delete_option('xyz_twap_peer_verification');
[49] Fix | Delete
delete_option('xyz_twap_post_logs');
[50] Fix | Delete
delete_option('xyz_twap_premium_version_ads');
[51] Fix | Delete
delete_option('xyz_twap_default_selection_edit');
[52] Fix | Delete
delete_option('xyz_twap_default_selection_create');
[53] Fix | Delete
delete_option('twap_installed_date');
[54] Fix | Delete
delete_option('xyz_twap_dnt_shw_notice');
[55] Fix | Delete
delete_option('xyz_twap_tw_char_limit');
[56] Fix | Delete
delete_option('xyz_twap_credit_dismiss');
[57] Fix | Delete
delete_option('xyz_twap_tw_app_sel_mode');
[58] Fix | Delete
delete_option('xyz_twap_smapsoln_userid');
[59] Fix | Delete
delete_option('xyz_twap_smapsoln_secret_key');
[60] Fix | Delete
delete_option('xyz_twap_xyzscripts_user_id');
[61] Fix | Delete
delete_option('xyz_twap_xyzscripts_hash_val');
[62] Fix | Delete
}
[63] Fix | Delete
[64] Fix | Delete
register_uninstall_hook(XYZ_TWAP_PLUGIN_FILE,'twap_free_network_destroy');
[65] Fix | Delete
[66] Fix | Delete
[67] Fix | Delete
?>
[68] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function