[wp-trac] [WordPress Trac] #32470: Abstracting the Widget Classes

WordPress Trac noreply at wordpress.org
Sat May 23 04:02:08 UTC 2015

#32470: Abstracting the Widget Classes
 Reporter:  welcher      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Widgets      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:

Comment (by westonruter):

 Perhaps the biggest thing that bugs me about `WP_Widget` is that one
 instance of this object does not correspond to one instance in the
 database, as in you always have to pass in the `$args` and `$instance`
 with each call because it doesn't know which database instance is being
 referred to otherwise (well, aside from the `WP_Widget::_set( $number )`
 method which sets `WP_Widget::$number`, but these are only used in the
 underlying plumbing and not in the actual API that developers work with.

Ticket URL: <https://core.trac.wordpress.org/ticket/32470#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list