version = ARTISTPRESS_VERSION; }else{ $this->version = '1.2.2'; } $this->existing_version = get_site_option( 'artistpress_version' , null ); $this->plugin_name = 'artistpress'; } /** * Runs the upgrade * @access private * @return string $address * */ public function run_upgrade() { if ( $this->existing_version === null ) { require_once ( plugin_dir_path(__FILE__) . 'class-upgrader-1-2-2.php'); $upgrade = new Upgrader_1_2_2; $upgrade->run_upgrade(); }else{ return; } } }