WordPress.org

Make WordPress Core

Changeset 45804


Ignore:
Timestamp:
08/15/2019 01:20:52 AM (4 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/site-new.php

    r45674 r45804  
    4343    $blog   = $_POST['blog'];
    4444    $domain = '';
     45
     46    $blog['domain'] = trim( $blog['domain'] );
    4547    if ( preg_match( '|^([a-zA-Z0-9-])+$|', $blog['domain'] ) ) {
    4648        $domain = strtolower( $blog['domain'] );
Note: See TracChangeset for help on using the changeset viewer.