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/wp-conte.../plugins/custom-t...
File: uninstall.php
<?php
[0] Fix | Delete
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
[1] Fix | Delete
exit();
[2] Fix | Delete
}
[3] Fix | Delete
[4] Fix | Delete
//If the user is preserving the settings then don't delete them
[5] Fix | Delete
$options = get_option( 'ctf_options' );
[6] Fix | Delete
$ctf_preserve_settings = isset( $options['preserve_settings'] ) ? $options['preserve_settings'] : false;
[7] Fix | Delete
[8] Fix | Delete
// allow the user to preserve their settings in case they are upgrading
[9] Fix | Delete
if ( ! $ctf_preserve_settings ) {
[10] Fix | Delete
// clean up options from the database
[11] Fix | Delete
delete_option( 'ctf_options' );
[12] Fix | Delete
delete_option( 'ctf_configure' );
[13] Fix | Delete
delete_option( 'ctf_customize' );
[14] Fix | Delete
delete_option( 'ctf_style' );
[15] Fix | Delete
delete_option( 'ctf_statuses' );
[16] Fix | Delete
[17] Fix | Delete
delete_option( 'ctf_rating_notice' );
[18] Fix | Delete
delete_option( 'ctf_notifications' );
[19] Fix | Delete
delete_option( 'ctf_local_avatars' );
[20] Fix | Delete
[21] Fix | Delete
// delete tweet cache in transients
[22] Fix | Delete
global $wpdb;
[23] Fix | Delete
$table_name = $wpdb->prefix . "options";
[24] Fix | Delete
$wpdb->query( "
[25] Fix | Delete
DELETE
[26] Fix | Delete
FROM $table_name
[27] Fix | Delete
WHERE `option_name` LIKE ('%\_transient\_ctf\_%')
[28] Fix | Delete
" );
[29] Fix | Delete
$wpdb->query( "
[30] Fix | Delete
DELETE
[31] Fix | Delete
FROM $table_name
[32] Fix | Delete
WHERE `option_name` LIKE ('%\_transient\_timeout\_ctf\_%')
[33] Fix | Delete
" );
[34] Fix | Delete
[35] Fix | Delete
//Delete all persistent caches (start with ctf_!)
[36] Fix | Delete
global $wpdb;
[37] Fix | Delete
$table_name = $wpdb->prefix . "options";
[38] Fix | Delete
$result = $wpdb->query("
[39] Fix | Delete
DELETE
[40] Fix | Delete
FROM $table_name
[41] Fix | Delete
WHERE `option_name` LIKE ('%ctf\_\!%')
[42] Fix | Delete
");
[43] Fix | Delete
delete_option( 'ctf_cache_list' );
[44] Fix | Delete
[45] Fix | Delete
// remove any scheduled cron jobs
[46] Fix | Delete
wp_clear_scheduled_hook( 'ctf_cron_job' );
[47] Fix | Delete
[48] Fix | Delete
delete_option( 'ctf_usage_tracking_config' );
[49] Fix | Delete
delete_option( 'ctf_usage_tracking' );
[50] Fix | Delete
[51] Fix | Delete
wp_clear_scheduled_hook( 'ctf_usage_tracking_cron' );
[52] Fix | Delete
wp_clear_scheduled_hook( 'ctf_feed_update' );
[53] Fix | Delete
[54] Fix | Delete
delete_option( 'ctf_db_version' );
[55] Fix | Delete
delete_option( 'ctf_ver' );
[56] Fix | Delete
delete_option( 'ctf_welcome_seen' );
[57] Fix | Delete
delete_option( 'ctf_rating_notice' );
[58] Fix | Delete
delete_option( 'ctf_notifications' );
[59] Fix | Delete
delete_option( 'ctf_newuser_notifications' );
[60] Fix | Delete
delete_option( 'ctf_statuses' );
[61] Fix | Delete
delete_option( 'ctf_cron_report' );
[62] Fix | Delete
delete_option( 'ctf_legacy_feed_settings' );
[63] Fix | Delete
delete_option( 'ctf_check_license_api_when_expires' );
[64] Fix | Delete
delete_option( 'ctf_license_last_check_timestamp' );
[65] Fix | Delete
delete_option( 'ctf_license_data' );
[66] Fix | Delete
delete_option( 'ctf_license_key' );
[67] Fix | Delete
delete_option( 'ctf_license_status' );
[68] Fix | Delete
[69] Fix | Delete
global $wpdb;
[70] Fix | Delete
[71] Fix | Delete
$locator_table_name = $wpdb->prefix . 'ctf_feed_locator';
[72] Fix | Delete
$wpdb->query( "DROP TABLE IF EXISTS $locator_table_name" );
[73] Fix | Delete
[74] Fix | Delete
$feed_caches_table_name = $wpdb->prefix . 'ctf_feed_caches';
[75] Fix | Delete
$wpdb->query( "DROP TABLE IF EXISTS $feed_caches_table_name" );
[76] Fix | Delete
[77] Fix | Delete
$feeds_table_name = $wpdb->prefix . 'ctf_feeds';
[78] Fix | Delete
$wpdb->query( "DROP TABLE IF EXISTS $feeds_table_name" );
[79] Fix | Delete
}
[80] Fix | Delete
[81] Fix | Delete
[82] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function