Plugin Directory

Changeset 1432290


Ignore:
Timestamp:
06/07/2016 10:54:12 AM (10 years ago)
Author:
seorets
Message:

3.3.68333

File:
1 edited

Legend:

Unmodified
Added
Removed
  • seo-rets/trunk/seo-rets.php

    r1432277 r1432290  
    7676        register_activation_hook(__FILE__, 'activate');
    7777        add_action('plugins_loaded', 'activate');
    78         add_action('upgrader_process_complete', 'activate',10, 2);
     78
    7979        register_activation_hook(__FILE__, array($this, 'activate'));
    8080        register_deactivation_hook(__FILE__, array($this, 'deactivate'));
    8181        register_uninstall_hook(__FILE__, array("SEO_RETS_Plugin", 'uninstall')); //This has to be static
    82 
     82        if ($this->srRewDB != "first") {
     83            $this->my_plugin_create_db();
     84            $this->rewriteUsers();
     85            update_option('srRewDB', 'first');
     86                    $this->refresh_feed();
     87        }
    8388
    8489        require "{$this->server_plugin_dir}/resources/defaults/generic-defaults.php";
     
    19011906    public function activate()
    19021907    {
    1903         $this->my_plugin_create_db();
    1904         if ($this->srRewDB != "first") {
    1905             $this->rewriteUsers();
    1906             update_option('srRewDB', 'first');
    1907         }
    1908         $this->refresh_feed();
     1908
    19091909        if ($this->boot == "") {
    19101910            update_option("sr_boot", 'true');
Note: See TracChangeset for help on using the changeset viewer.