public function __construct() { parent::__construct(__('Plugin Information', 'sputnik')); $this->plugin = $_GET['info']; try { $account = Sputnik::get_account(); $this->api = Sputnik::get_plugin($this->plugin, $account->ID); } catch (Exception $e) { status_header(500); iframe_header(__('', 'sputnik')); echo $e->getMessage(); iframe_footer(); die; } }
public function __construct() { parent::__construct(__('Plugin Install', 'sputnik')); $this->id = $_GET['install']; $this->title = __('Installing Plugin: %s', 'sputnik'); }