[wp-trac] [WordPress Trac] #35990: Registering a custom post type should create a Recent CPT posts widget type
WordPress Trac
noreply at wordpress.org
Mon Feb 29 01:00:55 UTC 2016
#35990: Registering a custom post type should create a Recent CPT posts widget type
-------------------------------------+------------------------------
Reporter: ericlewis | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion needs-patch | Focuses:
-------------------------------------+------------------------------
Comment (by westonruter):
Note to do this sanely, we'd need to implement #28216.
With that committed, we'd be able to introduce a new property like
`WP_Widget_Recent_Posts::$post_type` which can then be used to determine
the widget's name, description, and `id_base`, and more importantly to
determine the `post_type` used in the `WP_Query` in the
`WP_Widget_Recent_Posts::widget()` method.
See [attachment:35990.0.diff].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35990#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list