Opened 3 years ago
Closed 3 years ago
#59983 closed defect (bug) (fixed)
wp-login.php: login messages/errors
| Reported by: | mapumba | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.4.3 |
| Component: | Login and Registration | Version: | 6.4 |
| Severity: | normal | Keywords: | fixed-major dev-reviewed |
| Cc: | Focuses: |
Description
When using the following code:
<?php add_filter( 'wp_login_errors', function( $errors ) { $errors->add( 'test_error', 'Error Test' ); $errors->add( 'test_message', 'Message Test', 'message' // This is not an error.. ); return $errors; }, 10 );
It only shows the "Message Test". This is because the variable "$error_message" in wp-login.php is used to display the message if there is only one error. But in this example the variable contains the Text of the Message and not the Error Message.
Attachments (3)
Change History (11)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 57142: