Skip to content

Commit

Permalink
Merge pull request #361 from thomasgriffin/feature/minor-changes
Browse files Browse the repository at this point in the history
Two very minor changes
  • Loading branch information
GaryJones committed Apr 27, 2015
2 parents f9703fd + 3dcb82b commit 10bee0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class-tgm-plugin-activation.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ public function install_plugins_page() {
<?php $plugin_table->prepare_items(); ?>

<?php
if ( isset( $this->message ) ) {
if ( isset( $this->message ) && is_string( $this->message ) && ! empty( $this->message ) ) {
echo wp_kses_post( $this->message );
}
?>
Expand Down Expand Up @@ -2109,7 +2109,7 @@ public function run( $options ) {
wp_clean_plugins_cache();

// Get the installed plugin file and activate it.
$plugin_info = $this->plugin_info( $options['package'] );
$plugin_info = $this->plugin_info();
$activate = activate_plugin( $plugin_info );

// Re-populate the file path now that the plugin has been installed and activated.
Expand Down

0 comments on commit 10bee0c

Please sign in to comment.