Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
check for nag_type existence
  • Loading branch information
jeffsebring committed Apr 9, 2012
1 parent 69765c0 commit 3951e67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tgm-plugin-activation/class-tgm-plugin-activation.php
Expand Up @@ -708,7 +708,8 @@ public function notices() {
$rendered .= '<p>' . implode( ' | ', $action_links ) . '</p>'; $rendered .= '<p>' . implode( ' | ', $action_links ) . '</p>';


/** Register the nag messages and prepare them to be processed */ /** 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' ) );
} }
} }


Expand Down

0 comments on commit 3951e67

Please sign in to comment.