[wp-trac] [WordPress Trac] #35981: Convert WP_Widget into an abstract class
WordPress Trac
noreply at wordpress.org
Thu May 12 20:22:18 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:
-------------------------------------------+----------------------
Changes (by ocean90):
* owner: => ocean90
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"37425"]:
{{{
#!CommitTicketReference repository="" revision="37425"
Widgets: Make `WP_Widget` a real abstract class.
This removes the `die()` call from `WP_Widget::widget()` and converts it
to an abstract method.
`WP_Widgets` (later renamed to `WP_Widget`) was introduced in [10764]
where the minimum PHP requirement was 4.3, thus no `abstract` was
available.
Props johnbillion.
Fixes #35981.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35981#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list