diff --git src/bp-members/bp-members-screens.php src/bp-members/bp-members-screens.php
index d90c240..8a100db 100644
|
|
|
function bp_core_screen_signup() { |
| 191 | 191 | // Add any errors to the action for the field in the template for display. |
| 192 | 192 | if ( !empty( $bp->signup->errors ) ) { |
| 193 | 193 | foreach ( (array) $bp->signup->errors as $fieldname => $error_message ) { |
| 194 | | /* |
| 195 | | * The addslashes() and stripslashes() used to avoid create_function() |
| 196 | | * syntax errors when the $error_message contains quotes. |
| 197 | | */ |
| 198 | 194 | |
| 199 | 195 | /** |
| 200 | 196 | * Filters the error message in the loop. |
| … |
… |
function bp_core_screen_signup() { |
| 203 | 199 | * |
| 204 | 200 | * @param string $value Error message wrapped in html. |
| 205 | 201 | */ |
| 206 | | add_action( 'bp_' . $fieldname . '_errors', create_function( '', 'echo apply_filters(\'bp_members_signup_error_message\', "<div class=\"error\">" . stripslashes( \'' . addslashes( $error_message ) . '\' ) . "</div>" );' ) ); |
| | 202 | add_action( 'bp_' . $fieldname . '_errors', function() use ( $error_message ) { echo apply_filters( 'bp_members_signup_error_message', '<div class="error">' . $error_message . '</div>' ); } ); |
| 207 | 203 | } |
| 208 | 204 | } else { |
| 209 | 205 | $bp->signup->step = 'save-details'; |