protected function prepare( $slug ) {

		$this->slug = $slug;

		$file = Plugin::WP_Plugin_Info()->getOption( 'file', 'plugins' );

		if ( empty( $this->plugin ) ) {

			$this->plugin = $this->model->get_plugins_info( $file );
		}

		if ( ! $this->is_updated() ) {

			$this->plugin[ $slug ] = $this->get_plugin_info( $slug );

			$this->plugin[ $slug ]['last-update'] = time();

			$this->model->set_plugins_info( $this->plugin, $file );
		}
	}
protected function prepare( $slug ) {

		$this->slug = $slug;

		$file = Plugin::WP_Plugin_Info()->getOption( 'file', 'plugins' );

		if ( empty( $this->plugin ) ) {

			$this->plugin = $this->model->get_plugins_info( $file );
		}

		if ( ! $this->is_updated() ) {

			$this->plugin[ $slug ] = $this->get_plugin_info( $slug );

			$this->plugin[ $slug ]['last-update'] = time();

			$this->model->set_plugins_info( $this->plugin, $file );
		}
	}
protected function prepare ( $ slug ) { $ this -> slug = $ slug ; $ file = Plugin :: WP_Plugin_Info ( ) -> getOption ( 'file' , 'plugins' ) ; if ( empty ( $ this -> plugin ) ) { $ this -> plugin = $ this -> model -> get_plugins_info ( $ file ) ; } if ( ! $ this -> is_updated ( ) ) { $ this -> plugin [ $ slug ] = $ this -> get_plugin_info ( $ slug ) ; $ this -> plugin [ $ slug ] [ 'last-update' ] = time ( ) ; $ this -> model -> set_plugins_info ( $ this -> plugin , $ file ) ; } }
Get plugin info.

@param string $slug → WordPress plugin slug.
Get plugin info .