Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#6423 closed defect (bug) (fixed)

Implicit restriction on the name of ROOT directory

Reported by: nh7a's profile nh7a Owned by:
Milestone: 2.5 Priority: normal
Severity: blocker Version: 2.5
Component: General Keywords:
Focuses: Cc:

Description

There is an implicit restriction on the name of ROOT directory for Wordpress due to a simple bug in wp-includes/classes.php.

For example, if your ROOT directory is, say, "/en" and Permalinks configuration is other than default (so that Rewrite check will happen), you cannot use Input Field Settings of cforms because $req_uri, which the AJAX URL used by cforms, say, /en/wp-content/plugins/cforms/js/include/textfield.php, won't match to $self, which will mistakenly be wp-contt/plugins/cforms/js/include/textfield.php. Notice wp-contt should be wp-content.

Attachments (1)

classes.php.patch (439 bytes) - added by nh7a 16 years ago.
A patch to the bug

Download all attachments as: .zip

Change History (3)

@nh7a
16 years ago

A patch to the bug

#1 @ryan
16 years ago

Looking at [3370], it seems that line should have been removed with that changeset. The patch looks good. I'll test it out on a few different setups since changes to this area can cause high impact breakage.

#2 @ryan
16 years ago

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

(In [7551]) Remove unanchored string replacement. Props nh7a. fixes #6423

Note: See TracTickets for help on using tickets.