Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

check for nag_type existence

  • Loading branch information...
commit 3951e67cbb36f8c1bcff15483c10d6c298d28b41 1 parent 69765c0
@jeffsebring jeffsebring authored
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' ) );
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.