| @@ -65,8 +65,15 @@ | ||
| 65 | 65 | ob_start(); // Start buffering. Allows Hooks to echo output like: `/?s2member_profile=1`. |
| 66 | 66 | |
| 67 | 67 | echo '<form method="post" name="ws_plugin__s2member_profile" id="ws-plugin--s2member-profile" autocomplete="off">'."\n"; |
| 68 | 68 | |
| 69 | + //261005.0548 Surface server-side profile validation failures inline instead of reporting a successful save when an email-domain change is rejected. | |
| 70 | + if(!empty($GLOBALS['ws_plugin__s2member_profile_error'])) | |
| 71 | + { | |
| 72 | + echo '<div id="ws-plugin--s2member-profile-error" class="alert alert-error" style="margin-bottom:15px;font-weight:bold;font-size:110%;">'."\n"; | |
| 73 | + echo esc_html($GLOBALS['ws_plugin__s2member_profile_error'])."\n"; | |
| 74 | + echo '</div>'."\n"; | |
| 75 | + } | |
| 69 | 76 | if(!empty($GLOBALS['ws_plugin__s2member_profile_saved'])) // Respond to successful updates. |
| 70 | 77 | { |
| 71 | 78 | echo '<div id="ws-plugin--s2member-profile-saved" class="alert alert-success">'."\n"; |
| 72 | 79 | echo _x('Profile updated successfully.', 's2member-front', 's2member')."\n"; |