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

WordPress Trac noreply at wordpress.org
Sun May 24 22:47:12 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:  dev-feedback  |     Focuses:
--------------------------+------------------------------

Comment (by welcher):

 Replying to [comment:8 jdgrimes]:
 > I've done something similar to this with the base widget class in one of
 my plugins.

 Have you run into any situations where that is limiting?

 I like the idea of building out WP_Widget so that child classes contain
 the smallest amount of code needed - essentially just the changes/new
 functionality - but if the user is constantly having to override 3 smaller
 methods instead of one large one, we're not really that much further
 ahead.

 Thoughts?

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


More information about the wp-trac mailing list