[wp-trac] [WordPress Trac] #35981: Convert WP_Widget into an abstract class
WordPress Trac
noreply at wordpress.org
Thu May 12 21:24:20 UTC 2016
#35981: Convert WP_Widget into an abstract class
-------------------------------------------+----------------------
Reporter: johnbillion | Owner: ocean90
Type: enhancement | Status: closed
Priority: low | Milestone: 4.6
Component: Widgets | Version: 2.8
Severity: normal | Resolution: fixed
Keywords: has-patch dev-feedback commit | Focuses:
-------------------------------------------+----------------------
Comment (by ocean90):
In [changeset:"37427"]:
{{{
#!CommitTicketReference repository="" revision="37427"
Widgets: Create `WP_Widget_Mock` as a mock of `WP_Widget` which can be
used for widget tests.
You cannot instantiate an abstract class. Not even in WordPress world.
See #35981.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35981#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list