[wp-trac] [WordPress Trac] #35990: Registering a custom post type should create a Recent CPT posts widget type
WordPress Trac
noreply at wordpress.org
Fri Apr 29 18:48:32 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):
In [changeset:"37329"]:
{{{
#!CommitTicketReference repository="" revision="37329"
Widgets: Allow `WP_Widget` subclass instances (objects) to be
registered/unregistered in addition to `WP_Widget` subclass names
(strings).
Allows widgets to be registered which rely on dependency injection. Also
will allow for new widget types to be created dynamically (e.g. a Recent
Posts widget for each registered post type).
See #35990.
Props mdwheele, PeterRKnight, westonruter.
Fixes #28216.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35990#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list