Opened 16 years ago
Closed 16 years ago
#15121 closed defect (bug) (invalid)
TEMPLATEPATH does not work in mu-plugins folder
| Reported by: | volleyballmaniac | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Plugins | Version: | 3.0.1 |
| Severity: | normal | Keywords: | templatepath, plugin folder, mu plugins, plugin, plugins |
| Cc: | Focuses: |
Description
TEMPLATEPATH echoes null when used in a plugin (both plugins, and mu-plugins).
I'm not sure if this is by design, but it seems to be a shortcoming, as there comes a time when one needs to access something in the present Template folder.
Change History (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
We don't initialize the theme until well after plugins are loaded.
The solution is to wait to do whatever you are doing until a hook such as init. Ideally all plugin code should wait until then.