| @@ -29,32 +29,20 @@ | ||
| 29 | 29 | } |
| 30 | 30 | return $url; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | - /** | |
| 34 | - * @return bool | |
| 35 | - */ | |
| 36 | 33 | public function is_installed() { |
| 37 | 34 | return is_dir( WP_PLUGIN_DIR . '/' . $this->plugin_slug ); |
| 38 | 35 | } |
| 39 | 36 | |
| 40 | - /** | |
| 41 | - * @return bool | |
| 42 | - */ | |
| 43 | 37 | public function is_active() { |
| 44 | 38 | return is_plugin_active( $this->plugin_file ); |
| 45 | 39 | } |
| 46 | 40 | |
| 47 | - /** | |
| 48 | - * @return string | |
| 49 | - */ | |
| 50 | 41 | protected function install_url() { |
| 51 | 42 | return wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=' . $this->plugin_slug ), 'install-plugin_' . $this->plugin_slug ); |
| 52 | 43 | } |
| 53 | 44 | |
| 54 | - /** | |
| 55 | - * @return string | |
| 56 | - */ | |
| 57 | 45 | protected function activate_url() { |
| 58 | 46 | return wp_nonce_url( self_admin_url( 'plugins.php?action=activate&plugin=' . $this->plugin_file ), 'activate-plugin_' . $this->plugin_file ); |
| 59 | 47 | } |
| 60 | 48 | } |