WordPress.org

Plugin Directory

Changeset 609879


Ignore:
Timestamp:
10/09/12 05:26:00 (19 months ago)
Author:
cfinke
Message:

Fixing uninstall script: proper SQL syntax, adding an old table to drop, adding opening PHP bracket.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wordpress-feed-statistics/trunk/uninstall.php

    r609664 r609879  
     1<?php 
     2 
    13if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) 
    24    exit; 
     
    79delete_option( 'feed_statistics_expiration_days' ); 
    810 
    9 $wpdb->query( "DELETE TABLE ".$wpdb->prefix."feed_clickthroughs" ); 
    10 $wpdb->query( "DELETE TABLE ".$wpdb->prefix."feed_links" ); 
    11 $wpdb->query( "DELETE TABLE ".$wpdb->prefix."feed_postviews" ); 
    12 $wpdb->query( "DELETE TABLE ".$wpdb->prefix."feed_subscribers" ); 
     11global $wpdb; 
     12 
     13$wpdb->query( "DROP TABLE ".$wpdb->prefix."feed_clickthroughs" ); 
     14$wpdb->query( "DROP TABLE ".$wpdb->prefix."feed_links" ); 
     15$wpdb->query( "DROP TABLE ".$wpdb->prefix."feed_postviews" ); 
     16$wpdb->query( "DROP TABLE ".$wpdb->prefix."feed_subscribers" ); 
     17$wpdb->query( "DROP TABLE ".$wpdb->prefix."feed_referrers" ); 
Note: See TracChangeset for help on using the changeset viewer.