[wp-trac] [WordPress Trac] #28045: Passing variables to header
WordPress Trac
noreply at wordpress.org
Sun Apr 27 12:27:43 UTC 2014
#28045: Passing variables to header
-----------------------------+-----------------------------
Reporter: gallantfish | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 3.8.3
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
I'd like to pass variables to get_header() so I don't have to add extra
formatting to get the header to behave / look different when the only
change is the template.
I don't want to create a new header just to add a class, nor detecting the
template just to add a mobile version of the menu to the header.
The cleanest way to do it, when only ONE thing triggers everything (a
different template is selected) is by get_header() accepting variables.
I have presented in previous feature requests future scenarios which
became true in the next two years (as wp enhancements or successful
plugins), and I was attacked, so excuse me if I don't present many cases
now, in which this request would save us lots of time.
I just don't remember them all the scenarios to open your mind to the
possibilities without you having your own brainstorming, but I see
previous people asking for this and they were just suggested alternate
solutions (i.e. adding extra code and steps to accomplish the single usage
they proposed).
Thanks.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28045>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list