Opened 15 years ago
Closed 15 years ago
#18071 closed defect (bug) (fixed)
Twenty Eleven: TEMPLATEPATH to get_template_directory()
| Reported by: | nacin | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.3 |
| Component: | Bundled Theme | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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
@
15 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
@
15 years ago
Replying to solarissmoke:
Looking a bit closer,
TEMPLATEPATHitself 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Can we change Twenty Ten also?