Make WordPress Core

Opened 17 years ago

Closed 15 years ago

#1405 closed enhancement (wontfix)

Relative root template tag

Reported by: jrabbe's profile jrabbe Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.5
Component: Template Keywords:
Focuses: Cc:

Description

There are some cases where you might not need the full url as specified in the administration interface. For example if you want to use relative urls. As far as I can tell, the only way to get a realtive url (for example in a theme or plugin) which works from site to site, is to write a function which strips the 'http://' and the domain name. A simple extension to the bloginfo() function with 'relativeroot' or something would be welcome.

The need for easily getting relative urls was shown to me in a comment on my blog, and the solution.

Change History (2)

#1 @rob1n
15 years ago

  • Keywords dev-feedback 2nd-opinion added; relative url template tag removed
  • Version changed from 1.5 to 2.1

#2 @Nazgul
15 years ago

  • Keywords dev-feedback 2nd-opinion removed
  • Resolution set to wontfix
  • Status changed from new to closed
  • Version changed from 2.1 to 1.5

No activity in almost 2 years.

Feel free to re-open if you have additional information.

Note: See TracTickets for help on using tickets.