-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated to check for nag string, fallback to updated class if it is n…
…ot set
- Loading branch information
1 parent
3951e67
commit bfb09dd
Showing
2 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]> | ||
* @author Gary Jones <[email protected]> | ||
* @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' ); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
* | ||
* @package TGM-Plugin-Activation | ||
* @subpackage Example | ||
* @version 2.3.4 | ||
* @version 2.3.5 | ||
* @author Thomas Griffin <[email protected]> | ||
* @author Gary Jones <[email protected]> | ||
* @copyright Copyright (c) 2012, Thomas Griffin | ||
|