Ticket #7050 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

Patch for WP_CONTENT_URL

Reported by: msi08 Assigned to: anonymous
Priority: normal Milestone: 2.6
Component: General Version: 2.6
Severity: normal Keywords: has-patch tested
Cc:

Description

I am using WP in a different folder than the domain root. There is a problem with the Theme's path and stylesheet. I fixed it with this line

define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content');

"siteurl" instead of "home". A patch is attached.

Attachments

wp-settings.diff.php (0.5 kB) - added by msi08 on 05/28/08 09:52:28.
7050.patch (0.6 kB) - added by ionfish on 05/28/08 11:09:13.

Change History

05/28/08 09:52:28 changed by msi08

  • attachment wp-settings.diff.php added.

05/28/08 10:51:41 changed by Viper007Bond

  • keywords set to has-patch.
  • version set to 2.6.
  • milestone set to 2.6.

Looks good to me.

05/28/08 11:09:13 changed by ionfish

  • attachment 7050.patch added.

05/28/08 11:13:14 changed by ionfish

  • keywords changed from has-patch to has-patch tested.

I was a bit puzzled this morning when my site's stylesheet disappeared, looks like this is the culprit. Attached a patch without the .php filename so the Trac syntax highlighter picks up on it.

05/28/08 14:00:43 changed by sambauers

I wrote the original patch. In my setup the blog lives in root but the wordpress files live in a directory called "wordpress" and the original code worked fine for me. It still works after this patch too.

05/28/08 16:53:29 changed by ryan

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

(In [8006]) Use siteurl instead of home. Props msi08. fixes #7050