[wp-trac] [WordPress Trac] #38615: Round out and refine starter content
WordPress Trac
noreply at wordpress.org
Thu Nov 17 06:27:27 UTC 2016
#38615: Round out and refine starter content
----------------------------+------------------
Reporter: helen | Owner:
Type: task (blessed) | Status: new
Priority: high | Milestone: 4.7
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+------------------
Comment (by helen):
Noting for future reference - [attachment:38615.diff] is an exploration of
adding support for featured images; Twenty Seventeen would particularly
benefit from this behavior, but I imagine the same holds true for many
themes. It includes untested support for page templates since it's similar
in terms of storage. There's also a test change to Twenty Seventeen to
show what the format would be like in this case - note that I've used an
actual ID from my install, and that where exactly images should come from
is TBD - from within theme directory or w.org are currently floated
options.
Further, there's a filter for whitelisting more args/fields for pages,
though it'd be kind of funky to use for anything that's not a top level
`wp_insert_post() $postarr` element because you'd have to also use the
later filter. Just straight up allowing `meta_input` to be defined is also
an option but complicates the format for theme authors and requires
knowledge of how internal meta keys are named.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38615#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list