Last active
December 15, 2015 05:19
-
-
Save ben72/5208266 to your computer and use it in GitHub Desktop.
Don't display any "Errors" on successful email recovery in shopplugin.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="shopp shopp-errors"> | |
<?php $msg = shopp('storefront','errors','echo=0'); | |
if(trim($msg) == '<li>Check your email address for instructions on resetting the password for your account.</li>' || | |
trim($msg) == '<li>Check your email address for your new password.</li>'): ?> | |
<ul> | |
<?php print $msg; ?> | |
<?php else: ?> | |
<h3>Errors</h3> | |
<ul> | |
<?php print $msg; ?> | |
<?php endif; ?> | |
</ul> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment