Opened 14 years ago
Closed 14 years ago
#18071 closed defect (bug) (fixed)
Twenty Eleven: TEMPLATEPATH to get_template_directory()
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Bundled Theme | Keywords: | has-patch |
Focuses: | Cc: |
Description
Some setups (including WP.com) may filter get_template_directory(). We should use this instead of TEMPLATEPATH directly in Twenty Eleven.
Twenty Ten did this too.
Attachments (2)
Change History (9)
#4
follow-up:
↓ 5
@
14 years ago
- Keywords close added
Looking a bit closer, TEMPLATEPATH
itself is defined using get_template_directory()
, so doing it again in the theme seems redundant?
#5
in reply to:
↑ 4
@
14 years ago
Replying to solarissmoke:
Looking a bit closer,
TEMPLATEPATH
itself is defined usingget_template_directory()
, so doing it again in the theme seems redundant?
Someone could filter based on some condition, so they could filter DIFFERENTLY in different places.
See #18298
Note: See
TracTickets for help on using
tickets.
Can we change Twenty Ten also?