Ticket #2352: bp-core-signup.diff
| File bp-core-signup.diff, 726 bytes (added by , 16 years ago) |
|---|
-
bp-core-signup.php
90 90 /* Add any errors to the action for the field in the template for display. */ 91 91 if ( !empty( $bp->signup->errors ) ) { 92 92 foreach ( (array)$bp->signup->errors as $fieldname => $error_message ) 93 add_action( 'bp_' . $fieldname . '_errors', create_function( '', 'echo "<div class=\"error\">' . $error_message . '</div>";') );93 add_action( 'bp_' . $fieldname . '_errors', create_function( '', "echo apply_filters( 'bp_signup_errors', '" . $error_message . "' );" ) ); 94 94 } else { 95 95 $bp->signup->step = 'save-details'; 96 96