Opened 15 years ago
Closed 15 years ago
#17287 closed defect (bug) (fixed)
PHP Notice in wpmu_validate_blog_signup() when blogname is empty
| Reported by: | DJPaul | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.3 |
| Component: | Multisite | Version: | |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Use preg_replace instead of preg_match, avoiding extra variable