Opened 15 years ago
Closed 15 years ago
#9804 closed defect (bug) (fixed)
WordPress automatically sets the website URL of an user's profile to http://
Reported by: | peaceablewhale | Owned by: | |
---|---|---|---|
Milestone: | 2.8 | Priority: | normal |
Severity: | minor | Version: | 2.8 |
Component: | Users | Keywords: | has-patch |
Focuses: | Cc: |
Description
When an user does not have a website URL in his profile, WordPress automatically sets it to "http://". The expected behavior should be an empty string.
Attachments (2)
Change History (8)
#2
@
15 years ago
- Cc joseph@… added
- Keywords has-patch added; needs-patch removed
- Milestone changed from Future Release to 2.9
- Severity changed from normal to minor
The edit_user() function in wp-admin/includes/user.php hard codes a 'http://' to the front of the 'Website' field if the regex for the scheme (http,ftp,irc,telnet,etc.) fails. An additional check is needed to see if the field is empty.
I've added a simple patch that runs the scheme regex check only if the field is not empty.
At best this is a minor inconvenience so I'm going to bump this to the 2.9 milestone.
#3
@
15 years ago
Patch works for new users, though existing users that have had the http:// bit saved already still show it. Potentially could be worth validating the saved output to strip it.
Moving to future pending patch.