[wp-trac] [WordPress Trac] #28158: WP_Widget_Factory does not validate that widget class is a WP_Widget

WordPress Trac noreply at wordpress.org
Wed May 7 20:59:06 UTC 2014


#28158: WP_Widget_Factory does not validate that widget class is a WP_Widget
---------------------------+----------------------
 Reporter:  carlalexander  |       Owner:
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Widgets        |     Version:  3.9
 Severity:  normal         |  Resolution:  wontfix
 Keywords:                 |     Focuses:
---------------------------+----------------------

Comment (by DrewAPicture):

 Replying to [comment:3 carlalexander]:
 > Why don't you patch developer errors?

 I think the point is that it's understood that `WP_Widget_Factory` expects
 a `WP_Widget` object here. And in choosing not to pass one, the fatal that
 gets tossed is the notification that there is developer error. This not
 really something you'd want fail silently, imo.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28158#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list