[wp-trac] [WordPress Trac] #27178: Filter Hook for "Default Template"
WordPress Trac
noreply at wordpress.org
Sat Feb 22 04:26:49 UTC 2014
#27178: Filter Hook for "Default Template"
----------------------------+---------------------------------------
Reporter: johnstonphilip | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 3.8.1
Severity: normal | Resolution:
Keywords: | Focuses: administration, template
----------------------------+---------------------------------------
Comment (by johnstonphilip):
I'm going to try and submit a patch. I've never done it before so wish me
luck :P
Before I do, I would be tempted to say that passing a context might not
even be enough to differentiate it in all circumstances - that we might
want two completely different filters. I'm not totally convinced it's a
good idea but I can imagine a scenario which isn't all bad:
For example, if you had a metabox with additional options show up for
specific page templates (using javascript) on the main edit screen, those
metaboxes wouldn't appear on the Quick Edit screen.
If you wanted to call your default template "No Sidebar (Additional
Options Below)", that wouldn't make sense on Quick Edit because those
additional options won't be there.
Having two separate different filters would allow it - I just hope it
isn't overcomplicating it for rare-use cases.
I'm a big fan of communicating as much to the user in the least amount of
words/places.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27178#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list