#36927 closed defect (bug) (fixed)
Disjointed WP_Error documentation and handling in wp-signup.php
| Reported by: | jeremyfelt | Owned by: | jeremyfelt |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.6 |
| Component: | Login and Registration | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | docs, multisite |
Description
Most of the documentation for errors throughout wp-signup.php has the $errors data typed as array rather than WP_Error.
In show_user_form() and show_blog_form(), an empty string is set as default for the $errors param, but it is used as a WP_Error object throughout.
The likelihood of a fatal Call to a member function get_error_message() on string here is low, because this code is really self contained and somebody would need to filter responses to remove existing WP_Error objects completely. That said, we can still clean it up.
Attachments (1)
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 37547: