Changeset 1432290
- Timestamp:
- 06/07/2016 10:54:12 AM (10 years ago)
- File:
-
- 1 edited
-
seo-rets/trunk/seo-rets.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
seo-rets/trunk/seo-rets.php
r1432277 r1432290 76 76 register_activation_hook(__FILE__, 'activate'); 77 77 add_action('plugins_loaded', 'activate'); 78 add_action('upgrader_process_complete', 'activate',10, 2); 78 79 79 register_activation_hook(__FILE__, array($this, 'activate')); 80 80 register_deactivation_hook(__FILE__, array($this, 'deactivate')); 81 81 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 } 83 88 84 89 require "{$this->server_plugin_dir}/resources/defaults/generic-defaults.php"; … … 1901 1906 public function activate() 1902 1907 { 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 1909 1909 if ($this->boot == "") { 1910 1910 update_option("sr_boot", 'true');
Note: See TracChangeset
for help on using the changeset viewer.