Ticket #7129 (closed defect: fixed)

Opened 4 months ago

Last modified 4 months ago

Installer has incorrect URL for CSS when WordPress is in a subdirectory of the domain

Reported by: sambauers Assigned to: anonymous
Priority: high Milestone: 2.6
Component: General Version: 2.6
Severity: major Keywords: has-patch, installer, script-loader
Cc:

Description

The installer loses the correct URL for the CSS files when WordPress is being installed in a sub-directory of the domain.

This is because site_url() returns nothing during install and the script loaders rely on site_url() to determine the full url to the CSS.

I have borrowed the URL guessing routines from elsewhere in the installer/updgrader to create a new function wp_guess_url().

I have applied this to all places where the URL is guessed (that I could find) to de-dupe the regexp code.

I'm not sure if this is occuring in the 2.5 branch, but it is happening in trunk.

Patch included.

Attachments

wp_guess_url.patch (2.8 kB) - added by sambauers on 06/12/08 15:05:43.

Change History

06/12/08 15:05:43 changed by sambauers

  • attachment wp_guess_url.patch added.

06/12/08 15:15:07 changed by sambauers

Related ticket at #4732

Closed older ticket as duplicate at #7028

06/24/08 17:36:23 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [8182]) wp_guess_url() and install styling fixes from sambauers. fixes #7129 see #4732