Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

nag_type notice #95

Merged
merged 1 commit into from

2 participants

@jeffsebring

fixed notice for nag_type

@thomasgriffin thomasgriffin merged commit 3951e67 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 9, 2012
  1. @jeffsebring
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  tgm-plugin-activation/class-tgm-plugin-activation.php
View
3  tgm-plugin-activation/class-tgm-plugin-activation.php
@@ -708,7 +708,8 @@ public function notices() {
$rendered .= '<p>' . implode( ' | ', $action_links ) . '</p>';
/** Register the nag messages and prepare them to be processed */
- add_settings_error( 'tgmpa', 'tgmpa', $rendered, sanitize_html_class( strtolower( $this->strings['nag_type'] ), 'updated' ) );
+ if ( isset( $this->strings['nag_type'] ) )
+ add_settings_error( 'tgmpa', 'tgmpa', $rendered, sanitize_html_class( strtolower( $this->strings['nag_type'] ), 'updated' ) );
}
}
Something went wrong with that request. Please try again.