Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#26972 closed defect (bug) (wontfix)

WP fails to deduce WP_CONTENT_URL from WP_CONTENT_DIR

Reported by: Denis-de-Bernardy Owned by:
Priority: normal Milestone:
Component: Bootstrap/Load Version: 3.9
Severity: normal Keywords:
Cc: Focuses: multisite

Description

When you define WP_CONTENT_DIR, e.g. to __DIR__ . '/content', but not WP_CONTENT_URL, WP will mindlessly define the latter to get_option('siteurl') . '/wp-content instead of trying to identify the correct url by comparing ABSPATH and WP_CONTENT_DIR.

One issue that this introduces is that it's the wrong URL. Is this something that we want to fix? (If not, close the ticket.)

The other is that it might end up using the wrong protocol. (Related: #13941 and #15928.)

Change History (2)

#1 follow-up: @jeremyfelt
13 years ago

I don't think a direct relationship between WP_CONTENT_DIR and WP_CONTENT_URL is one we can assume.

My config could be setup to use a root path of /var/www/site/content/ for a URL such as http://site/wp-content/*.

It can be a little confusing if one is set without the other, but that's a decision best left to the specific configuration.

#2 in reply to: ↑ 1 @nacin
13 years ago

  • Component Networks and SitesBootstrap/Load
  • Milestone Awaiting Review
  • Resolutionwontfix
  • Status newclosed

Replying to jeremyfelt:

It can be a little confusing if one is set without the other, but that's a decision best left to the specific configuration.

Agreed.

Note: See TracTickets for help on using tickets.