Opened 15 months ago
Closed 13 months ago
#59983 closed defect (bug) (fixed)
wp-login.php: login messages/errors
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.4.3 | Priority: | normal |
Severity: | normal | Version: | 6.4 |
Component: | Login and Registration | Keywords: | fixed-major dev-reviewed |
Focuses: | Cc: |
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)
#2
@
15 months ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
#3
@
15 months ago
- Keywords fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Hi there, welcome to WordPress Trac! Thanks for the patch.
Reopening for backporting to the 6.4 branch.
This ticket was mentioned in Slack in #core by jorbin. View the logs.
14 months ago
Note: See
TracTickets for help on using
tickets.
In 57142: