• Resolved Ilari Arovuo

    (@iarovuo)


    the uninstall script uses hard-coded table names in the script, and causes failure with uninstall, when “delete data” has been enabled in the settings.

    Most sites have table name prefix in use, so you can’t use hard-coded table names in scripts.

    You need to implement something like this in the code, when dealing with database tables directly; (like the non-working uninstall script)

    global $wpdb;
    $tbl_prefix = $wpdb->get_blog_prefix();
    $wpdb->query("DELETE FROM ".$tbl_prefix."posts WHERE post_type = 'at_biz_dir'");
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Uninstall not working correctly’ is closed to new replies.