#36927 closed defect (bug) (fixed)
Disjointed WP_Error documentation and handling in wp-signup.php
Reported by: | jeremyfelt | Owned by: | jeremyfelt |
---|---|---|---|
Milestone: | 4.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Login and Registration | Keywords: | has-patch |
Focuses: | docs, multisite | Cc: |
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.
In 37547: