Twenty Seventeen: starter content array needs a filter
|Reported by:||celloexpressions||Owned by:||ocean90|
|Component:||Bundled Theme||Keywords:||has-patch commit|
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.