id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 47888,Adding a custom link in menu via Customize doesn't trim whitespace.,donmhico,audrasjb,"Steps to reproduce bug. 1. Click ""Customize"" on any front-end page. 2. Try to add / edit a Menu and add a Custom Link. The following behaviour happens. A. If the URL has a whitespace in front. e.g. ` https://wp.org/` - URL field box will have red border and the custom link won't be added. B. If the URL has a whitespace in the end. e.g. `https://wp.org/ ` - Custom link will be added but if the menu will have the link `https://wp.org/%20` I think it would be best if the URL is trimmed before the checking of URL regex happens. ",defect (bug),closed,normal,5.2.3,Menus,,normal,fixed,has-patch commit,,