Plugin Directory

Changeset 1025850


Ignore:
Timestamp:
11/14/2014 05:00:43 PM (11 years ago)
Author:
syntaxart
Message:

updated the initialize

Location:
restaurant-manager/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • restaurant-manager/trunk/class-initialize.php

    r1025846 r1025850  
    4242
    4343            // Perform any version-upgrade activities prior to activation (e.g. database changes)
    44             //$this->_plugin->upgrade();
     44            $this->_plugin->upgrade();
    4545
    4646            if (!$this->_plugin->is_installed()) {
     
    8282            //check if the plugin is installed before running
    8383            if ($this->_plugin->is_installed()) {
    84            
    85                 $this->_plugin->upgrade();
    8684
    8785                $taurus_shortcode_extensions = new shortcode_extensions();
  • restaurant-manager/trunk/class-plugin.php

    r1025846 r1025850  
    7272            $result = $wpdb->update($wpdb->term_taxonomy, array('taxonomy' => 'syn_rest_diet'), array('taxonomy' => 'syn_dietary_type'));
    7373            $result = $wpdb->update($wpdb->term_taxonomy, array('taxonomy' => 'syn_rest_cuisine'), array('taxonomy' => 'syn_cuisine_type'));
    74         }
    75        
    76         if (version_compare($this->plugin_installed_version(), '1.2.0') <= 0) {
    77 
    78             $events_data = new events_data();
    79             $events_data->create_table();
    80 
    81             $eventmeta_data = new eventmeta_data();
    82             $eventmeta_data->create_table();
    8374        }
    8475    }
Note: See TracChangeset for help on using the changeset viewer.