#2556 closed defect (bug) (invalid)
Theme's functions.php needs to be include_once()'d
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.0.1 |
Component: | Administration | Keywords: | |
Focuses: | Cc: |
Description ¶
Before WP 2.0 came out, people were already bundling functions.php with some of their themes, and including it at the top of header.php or something like that. They get function redefined errors in WP 2.x because WP calls functions.php automatically.
WP should include_once() the theme's functions.php file to avoid this.
Pull Requests
- Loading…
Change History (5)
#2
@ Lead Developer
19 years ago
- Resolution set to invalid
- Status changed from new to closed
bah, you're right. And if they include_once(), then it doesn't matter whether we _once or not... for some reason I was thinking that include_once() would prevent future include()s, not true. ... back you your regularly scheduled programming.
Note: See
TracTickets for help on using
tickets.
Wouldn't help if the theme authors didn't use include_once, right?