WordPress.org

Make WordPress Core

Opened 10 months ago

Last modified 10 months ago

#44808 new enhancement

Creating subsite with un-trimmed space results in "Missing or invalid site address."

Reported by: aubreypwd Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9.8
Component: Networks and Sites Keywords:
Focuses: multisite Cc:

Description

When adding a site:

http://aubrey.pw/d/2018/t96dsz13Kd.png

If the Site Address contains a space at the end (which is easily noticeable) it can result in "Missing or invalid site address.":

http://aubrey.pw/d/2018/b9zBWfACwV.png

We can improve this by sanitizing/trimming whitespace from the input.

Attachments (1)

44808.patch (518 bytes) - added by dharmin16 10 months ago.
Add domain into trim function to trim spaces if added by mistake.

Download all attachments as: .zip

Change History (2)

@dharmin16
10 months ago

Add domain into trim function to trim spaces if added by mistake.

#1 @dharmin16
10 months ago

  • Severity changed from minor to normal
Note: See TracTickets for help on using tickets.