Skip to content
Permalink
Browse files

Networks and Sites: Trim site domain when creating a new site on Add …

…New Site screen before further validation.

Props dharmin16, jeremyfelt, aubreypwd.
Fixes #44808.

git-svn-id: https://develop.svn.wordpress.org/trunk@45804 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Aug 15, 2019
1 parent 4f86944 commit e982455e44db262612bc783fa1a302d7b85bbd5e
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/wp-admin/network/site-new.php
@@ -42,6 +42,8 @@
$blog = $_POST['blog'];
$domain = '';
$blog['domain'] = trim( $blog['domain'] );
if ( preg_match( '|^([a-zA-Z0-9-])+$|', $blog['domain'] ) ) {
$domain = strtolower( $blog['domain'] );
}

0 comments on commit e982455

Please sign in to comment.
You can’t perform that action at this time.