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/contact-...
File: uninstall.php
<?php
[0] Fix | Delete
[1] Fix | Delete
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
[2] Fix | Delete
exit();
[3] Fix | Delete
}
[4] Fix | Delete
[5] Fix | Delete
function wpcf7_delete_plugin() {
[6] Fix | Delete
global $wpdb;
[7] Fix | Delete
[8] Fix | Delete
delete_option( 'wpcf7' );
[9] Fix | Delete
[10] Fix | Delete
$posts = get_posts(
[11] Fix | Delete
array(
[12] Fix | Delete
'numberposts' => -1,
[13] Fix | Delete
'post_type' => 'wpcf7_contact_form',
[14] Fix | Delete
'post_status' => 'any',
[15] Fix | Delete
)
[16] Fix | Delete
);
[17] Fix | Delete
[18] Fix | Delete
foreach ( $posts as $post ) {
[19] Fix | Delete
wp_delete_post( $post->ID, true );
[20] Fix | Delete
}
[21] Fix | Delete
[22] Fix | Delete
$wpdb->query( sprintf(
[23] Fix | Delete
"DROP TABLE IF EXISTS %s",
[24] Fix | Delete
$wpdb->prefix . 'contact_form_7'
[25] Fix | Delete
) );
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
if ( ! defined( 'WPCF7_VERSION' ) ) {
[29] Fix | Delete
wpcf7_delete_plugin();
[30] Fix | Delete
}
[31] Fix | Delete
[32] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function