Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#17898 closed defect (bug) (fixed)

Unable to log in when WP_SITEURL ends with a slash

Reported by: xknown's profile xknown Owned by: ryan's profile ryan
Milestone: 3.3 Priority: normal
Severity: minor Version:
Component: General Keywords: has-patch commit 3.3-early
Focuses: Cc:

Description

By mistake I added a slash when defining the WP_SITEURL in wp-config.php.

define('WP_SITEURL', 'http://localhost/wp-git/');

The _config_wp_siteurl function does not strips the slash when this constant is defined.

Attachments (1)

functions.17898.patch (565 bytes) - added by xknown 13 years ago.
untrailingslashit WP_SITEURL and WP_SITEHOME

Download all attachments as: .zip

Change History (5)

@xknown
13 years ago

untrailingslashit WP_SITEURL and WP_SITEHOME

#1 @xknown
13 years ago

  • Summary changed from Unable to log in when siteurl ends with a slash to Unable to log in when WP_SITEURL ends with a slash

#2 @nacin
13 years ago

  • Keywords commit 3.3-early added
  • Milestone changed from Awaiting Review to Future Release

#3 @nacin
13 years ago

  • Milestone changed from Future Release to 3.3

#4 @ryan
13 years ago

  • Owner set to ryan
  • Resolution set to fixed
  • Status changed from new to closed

In [18454]:

Strip trailing slashes form WP_HOME and WP_SITEURL. Props xknown. fixes #17898

Note: See TracTickets for help on using tickets.