[wp-trac] [WordPress Trac] #39109: Twenty Seventeen: starter content array needs a filter
WordPress Trac
noreply at wordpress.org
Tue Dec 6 15:10:59 UTC 2016
#39109: Twenty Seventeen: starter content array needs a filter
------------------------------+-------------------------
Reporter: celloexpressions | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7.1
Component: Bundled Theme | Version: trunk
Severity: normal | Keywords: needs-patch
Focuses: |
------------------------------+-------------------------
There currently seems to be no way to extend the starter content provided
in Twenty Seventeen in a child theme. I'd suggest applying a filter to the
starter content array so that child themes (or plugins) can selectively
add or remove items as they see fit without having to duplicate the entire
array. This should also become a best practice for all themes.
While we're at it, there are no inline comments whatsoever around Twenty
Seventeen's starter content registration. Since this is the only canonical
complete implementation initially available, we should add some inline
documentation to explain how the starter content array works.
Calling `add_theme_support( 'starter-content', array( ...` in a child
theme seems to prevent starter content from working at all since the
theme's starter content is registered already. The workaround would
probably require removing theme support then adding it and duplicating the
entire array until the filter is in place.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39109>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list