Permalink
Browse files

updated to check for nag string, fallback to updated class if it is n…

…ot set
  • Loading branch information...
1 parent 3951e67 commit bfb09ddaa3f80a93f3027b45b830295b73ab295d @thomasgriffin thomasgriffin committed Apr 16, 2012
Showing with 5 additions and 3 deletions.
  1. +4 −2 tgm-plugin-activation/class-tgm-plugin-activation.php
  2. +1 −1 tgm-plugin-activation/example.php
@@ -3,7 +3,7 @@
* Plugin installation and activation for WordPress themes.
*
* @package TGM-Plugin-Activation
- * @version 2.3.4
+ * @version 2.3.5
* @author Thomas Griffin <thomas@thomasgriffinmedia.com>
* @author Gary Jones <gamajo@gamajo.com>
* @copyright Copyright (c) 2012, Thomas Griffin
@@ -708,8 +708,10 @@ public function notices() {
$rendered .= '<p>' . implode( ' | ', $action_links ) . '</p>';
/** Register the nag messages and prepare them to be processed */
- if ( isset( $this->strings['nag_type'] ) )
+ if ( isset( $this->strings['nag_type'] ) )
add_settings_error( 'tgmpa', 'tgmpa', $rendered, sanitize_html_class( strtolower( $this->strings['nag_type'] ), 'updated' ) );
+ else
+ add_settings_error( 'tgmpa', 'tgmpa', $rendered, 'updated' );
}
}
@@ -8,7 +8,7 @@
*
* @package TGM-Plugin-Activation
* @subpackage Example
- * @version 2.3.4
+ * @version 2.3.5
* @author Thomas Griffin <thomas@thomasgriffinmedia.com>
* @author Gary Jones <gamajo@gamajo.com>
* @copyright Copyright (c) 2012, Thomas Griffin

0 comments on commit bfb09dd

Please sign in to comment.