Opened 14 years ago
Closed 13 years ago
#17287 closed defect (bug) (fixed)
PHP Notice in wpmu_validate_blog_signup() when blogname is empty
Reported by: | DJPaul | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.3 | Priority: | normal |
Severity: | minor | Version: | |
Component: | Multisite | Keywords: | has-patch |
Focuses: | Cc: |
Description
When passing an empty string as $blogname (and $blog_title, for the record) in wpmu_validate_blog_signup(), there is an empty() check, and an error is registered with the WP_Error object.
However, a PHP notice is generated by the nearby "$blogname != $maybe[0]" check. PHP reports that $maybe[0] is undefined.
(This was tested on WP 3.1.1)
Attachments (2)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Use preg_replace instead of preg_match, avoiding extra variable