[wp-trac] [WordPress Trac] #2939: Variables set in header.php,
footer.php, sidebar.php are not inherited by the rest of the page
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 11 16:39:44 GMT 2006
#2939: Variables set in header.php, footer.php, sidebar.php are not inherited by
the rest of the page
--------------------------+-------------------------------------------------
Reporter: technosailor | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.0.4
Component: Template | Version: 2.0.4
Severity: minor | Keywords:
--------------------------+-------------------------------------------------
I'm not quite sure how to tackle patching this as variables are arbitrary,
but when get_header(), get_footer() and get_sidebar() are called,
variables won't be passed for use in the main page template.
Call it an annoyance. Not sure how to proceed with passing variables back
without returning them in the function or globalizing them. Alternate
workarounds are to include() the templates, but this defeats the
"purdiness" of the WP functions.
Any thoughts on how to correct?
--
Ticket URL: <http://trac.wordpress.org/ticket/2939>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list