WordPress.org

Plugin Directory

Changeset 1152966


Ignore:
Timestamp:
05/04/15 14:27:15 (2 years ago)
Author:
ChaseWiseman
Message:

Release v1.3.2

Location:
simmer/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • simmer/trunk/core/admin/html/settings/advanced/on-uninstall.php

    r1151192 r1152966  
    99?> 
    1010 
    11 <?php $on_uninstall = get_option( 'simmer_on_uninstall', 'keep_all' ); ?> 
     11<?php $on_uninstall = get_option( 'simmer_on_uninstall', 'delete_settings' ); ?> 
    1212 
    1313<fieldset> 
  • simmer/trunk/core/class-simmer-installer.php

    r1151280 r1152966  
    5656    public static function uninstall() { 
    5757         
    58         delete_option( 'simmer_version' ); 
     58        global $wpdb; 
    5959         
    60         $on_uninstall = get_option( 'simmer_on_uninstall', 'keep_all' ); 
     60        $on_uninstall = get_option( 'simmer_on_uninstall', 'delete_settings' ); 
    6161         
    6262        // Check that the user wants everything deleted with the plugin. 
     
    6767        if ( 'delete_settings' == $on_uninstall || 'delete_all' == $on_uninstall ) { 
    6868             
    69             delete_option( 'simmer_ingredients_list_heading'  ); 
    70             delete_option( 'simmer_ingredients_list_type'     ); 
    71             delete_option( 'simmer_units_format'              ); 
    72              
    73             delete_option( 'simmer_instructions_list_heading' ); 
    74             delete_option( 'simmer_instructions_list_type'    ); 
    75              
    76             delete_option( 'simmer_enqueue_styles'      ); 
    77             delete_option( 'simmer_recipe_accent_color' ); 
    78             delete_option( 'simmer_recipe_text_color'   ); 
    79              
    80             delete_option( 'simmer_license' ); 
    81              
    82             delete_option( 'simmer_on_uninstall' ); 
    83              
    84             delete_option( 'simmer_archive_base'  ); 
    85             delete_option( 'simmer_recipe_base'   ); 
    86             delete_option( 'simmer_category_base' ); 
     69            // Delete options 
     70            $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE 'simmer_%';" ); 
    8771             
    8872        } 
     
    121105             
    122106            // Remove the custom DB tables. 
    123             self::drop_db_tables(); 
     107            $wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "simmer_recipe_items" ); 
     108            $wpdb->query( "DROP TABLE IF EXISTS " . $wpdb->prefix . "simmer_recipe_itemmeta" ); 
    124109        } 
    125110    } 
     
    209194        } 
    210195    } 
    211      
    212     /** 
    213      * Drop the custom database tables. 
    214      * 
    215      * @since 1.3.0 
    216      * @access private 
    217      * 
    218      * @global $wpdb The WordPress database object. 
    219      */ 
    220     private static function drop_db_tables() { 
    221          
    222         global $wpdb; 
    223          
    224         $items_table_name     = $wpdb->prefix . 'simmer_recipe_items'; 
    225         $item_meta_table_name = $wpdb->prefix . 'simmer_recipe_itemmeta'; 
    226          
    227         $query = "DROP TABLE IF EXISTS $items_table_name;"; 
    228         $query .= "DROP TABLE IF EXISTS $item_meta_table_name;"; 
    229          
    230         $wpdb->query( 
    231             $wpdb->prepare( $query ) 
    232         ); 
    233     } 
    234196} 
  • simmer/trunk/core/class-simmer.php

    r1151271 r1152966  
    2727     * @var string VERSION The plugin version. 
    2828     */ 
    29     const VERSION = '1.3.1'; 
     29    const VERSION = '1.3.2'; 
    3030     
    3131    /** 
  • simmer/trunk/readme.txt

    r1151271 r1152966  
    44Requires at least: 3.8 
    55Tested up to: 4.2.1 
    6 Stable tag: 1.3.1 
     6Stable tag: 1.3.2 
    77License: GPLv2 or later 
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    7070== Changelog == 
    7171 
     72= 1.3.2 = 
     73* Tweak: Change default uninstall setting 
     74* Tweak: Delete custom db tables on uninstall 
     75* Fix: Error on uninstall 
     76 
    7277= 1.3.1 = 
    7378* Fix: Database upgrade procedure 
  • simmer/trunk/simmer.php

    r1151271 r1152966  
    1212 * Plugin URI:  https://simmerwp.com 
    1313 * Description: A recipe publishing tool for WordPress. 
    14  * Version:     1.3.1 
     14 * Version:     1.3.2 
    1515 * Author:      BWD inc. 
    1616 * Author URI:  http://gobwd.com 
  • simmer/trunk/uninstall.php

    r1151192 r1152966  
    1313} 
    1414 
     15require_once( plugin_dir_path( __FILE__ ) . 'core/class-simmer-installer.php' ); 
     16 
    1517Simmer_Installer::uninstall(); 
Note: See TracChangeset for help on using the changeset viewer.