[wp-trac] [WordPress Trac] #17287: PHP Notice in wpmu_validate_blog_signup() when blogname is empty

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 29 23:47:36 UTC 2011


#17287: PHP Notice in wpmu_validate_blog_signup() when blogname is empty
--------------------------+-----------------------------
 Reporter:  DJPaul        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Multisite     |    Version:
 Severity:  minor         |   Keywords:
--------------------------+-----------------------------
 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)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17287>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list