PluginProbe
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions / 261011
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions v261011
261011 261001 260927 260917 260913 260909 260829 260814 260805 110710 110731 110812 110815 110912 110913 110915 110926 110927 111002 111003 111011 111017 111029 111105 111206 All 192 releases
← All changes | src/includes/classes/sc-profile-in.inc.php +7 -0 260927 → 261011 View file →
@@ -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";