Changeset 40391
- Timestamp:
- 04/07/2017 01:14:36 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-functions.php
r40371 r40391 577 577 if ( in_array( $blogname, $illegal_names ) ) 578 578 $errors->add('blogname', __( 'That name is not allowed.' ) ); 579 580 if ( strlen( $blogname ) < 4 ) { 581 $errors->add('blogname', __( 'Site name must be at least 4 characters.' ) ); 582 } 579 583 580 584 // do not allow users to create a blog that conflicts with a page on the main blog. -
trunk/tests/phpunit/tests/multisite/wpmuValidateBlogSignup.php
r40295 r40391 65 65 array( self::$existing_blog_name, 'Site names must not collide with an existing site name.' ), 66 66 array( self::$existing_user_login, 'Site names must not collide with an existing user login.' ), 67 array( 'foo', 'Site names must at least contain 4 characters.' ), 67 68 ); 68 69 … … 86 87 $this->assertEmpty( $result['errors']->get_error_codes() ); 87 88 } 88 89 /**90 * @ticket 3967691 */92 public function test_validate_short_blogname() {93 $result = wpmu_validate_blog_signup( 'foo', 'Foo Site Title', get_userdata( self::$super_admin_id ) );94 $this->assertEmpty( $result['errors']->get_error_codes() );95 }96 89 } 97 90
Note: See TracChangeset
for help on using the changeset viewer.