Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#2556 closed defect (bug) (invalid)

Theme's functions.php needs to be include_once()'d

Reported by: markjaquith's profile markjaquith 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.

Change History (5)

#1 @davidhouse
19 years ago

Wouldn't help if the theme authors didn't use include_once, right?

#2 @markjaquithLead 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.

#3 @davidhouse
19 years ago

Wouldn't help if the theme authors didn't use include_once, right?

#4 @davidhouse
19 years ago

Stupid Firefox. Actually, stupid Session Saver.

#5 @Nazgul
18 years ago

  • Milestone 2.1 deleted
Note: See TracTickets for help on using tickets.