PHP Notice – unsubscribed_message
-
I’m getting a PHP Notice, I guess when people unsubscribe:
PHP Notice: Undefined index: unsubscribed_message in /path/to/wp-content/plugins/newsletter/includes/TNP.php on line 172
172 is:
$newsletter->mail( $user->email, $newsletter->replace( NewsletterSubscription::instance()->options['unsubscribed_subject'], $user ), $newsletter->replace( NewsletterSubscription::instance()->options['unsubscribed_message'], $user ) );
You really should have the code on GitHub so people can send PRs and not bug reports.
This probably needs
wp_parse_args()
to instantiate defaults afterget_option()
.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP Notice – unsubscribed_message’ is closed to new replies.