#3626 closed defect (bug) (fixed)
load_template() notice
| Reported by: | idle | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 2.0.8 |
| Component: | General | Version: | 2.0.7 |
| Severity: | trivial | Keywords: | has-patch |
| Cc: | Focuses: |
Description
In function load_template() a PHP notice is generated because of an empty array under some circumstances (unknown to me at this point). The line is:
extract($wp_query->query_vars, EXTR_SKIP);
Fix: Make sure that the passed variable is an array.
if ( is_array($wp_query->query_vars) ) {
extract($wp_query->query_vars, EXTR_SKIP);
}
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [4777]) Make sure is_array before extract. Props idle. fixes #3626