[wp-trac] [WordPress Trac] #40807: Starter content: Allow for setting a "parent" for pages (and other hierarchical CPTs)
WordPress Trac
noreply at wordpress.org
Fri Oct 6 18:39:00 UTC 2017
#40807: Starter content: Allow for setting a "parent" for pages (and other
hierarchical CPTs)
--------------------------------------+--------------------------
Reporter: webmandesign | Owner: westonruter
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 4.9
Component: Customize | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+--------------------------
Comment (by westonruter):
@birgire patch is looking good! I don't think we need to worry about
restricting which post types can have children. I think this
`hierarchical` property is really more for the sake of the UI than a
restriction on the data model. After all, an `attachment` post can have
parent even though it isn't hierarchical.
See my [https://github.com/xwp/wordpress-develop/pull/276/commits/0bfc4dc
changes] for what needed to be done to apply [https://github.com
/WordPress-Coding-Standards/WordPress-Coding-Standards WordPress-Coding-
Standards].
A build is running now: https://travis-ci.org/xwp/wordpress-
develop/builds/284338738
While this was marked as an enhancement, I'm inclined to include it in 4.9
as it is closely related to #39254.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40807#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list