Variables set in header.php, footer.php, sidebar.php are not inherited by the rest of the page
|Reported by:||technosailor||Owned by:||anonymous|
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?