Skip to content

Commit

Permalink
Better error message - send them to a place where they can fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
dereksmart committed Sep 30, 2015
1 parent 0a2d95f commit ebe840d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/subscriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,10 @@ function widget( $args, $instance ) {
<p class="error"><?php esc_html_e( 'The email you entered was invalid. Please check and try again.', 'jetpack' ); ?></p>
<?php break;
case 'opted_out' : ?>
<p class="error"><?php esc_html_e( 'The email address has opted out of subscription emails.', 'jetpack' ); ?></p>
<p class="error"><?php printf( _x( "The email address has opted out of subscription emails. %1s You can manage your preferences at %2s", '%1s is a line break, %2s is a website', 'jetpack' ),
'<br />',
'<a href="https://subscribe.wordpress.com/" target="_blank">subscribe.wordpress.com</a>'
); ?>
<?php break;
case 'already' : ?>
<p class="error"><?php esc_html_e( 'You have already subscribed to this site. Please check your inbox.', 'jetpack' ); ?></p>
Expand Down

0 comments on commit ebe840d

Please sign in to comment.