Changes between Initial Version and Version 2 of Ticket #17306
- Timestamp:
- 07/12/2011 06:59:50 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17306
- Property Keywords has-patch added
-
Ticket #17306 – Description
initial v2 3 3 When writing a plugin using the wpmu_validate_blog_signup filter to replace the existing check, you cannot handle the condition of the blogname being that of an existing user that is not the current logged in user. 4 4 e.g. this section of code from the original function: 5 6 {{{ 5 7 if ( username_exists( $blogname ) ) { 6 8 if ( is_object( $user ) == false || ( is_object($user) && ( $user->user_login != $blogname ) ) ) 7 9 $errors->add( 'blogname', __( 'Sorry, that site is reserved!' ) ); 8 10 } 9 11 }}} 10 12 The original functions should perhaps replace the line: 11 13 $result = array('domain' => $mydomain, 'path' => $path, 'blogname' => $blogname, 'blog_title' => $blog_title, 'errors' => $errors);