[wp-trac] Re: [WordPress Trac] #4169: Bring widgets into WordPress core

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 19 03:27:33 GMT 2007


#4169: Bring widgets into WordPress core
-----------------------------+----------------------------------------------
 Reporter:  rob1n            |        Owner:  anonymous
     Type:  task             |       Status:  new      
 Priority:  highest omg bbq  |    Milestone:  2.2      
Component:  General          |      Version:           
 Severity:  blocker          |   Resolution:           
 Keywords:                   |  
-----------------------------+----------------------------------------------
Comment (by rob1n):

 Things to consider:

  1. Which implementation we're going to integrate. I think the most viable
 choice here is the Automattic Widgets plugin
 (http://automattic.com/code/widgets/).

  2. Possible conflict with existing widget plugins. My proposed solution
 to work around this is to put wp_ before all those "internal" functions
 (i.e. not the template tags). Then, for the template tags, we do if
 (!function_exists()) checks so the internal implementation of widgets can:
   a. Be replaced by other plugins. Not everyone agrees on how something is
 implemented, and thus they would probably use a plugin.
   b. Work with existing plugins (so you won't get a fat fatal error when
 you upgrade).

  3. Where to put the widgets? Before, in the case of the Automattic
 plugin, the widgets were located in wp-content/plugins/widgets. I propose
 wp-content/widgets. It's the user's content, technically, and keeping it
 in wp-content keeps it independent of includes and admin.

  4. Where the admin menu will be. Either Manage > Widgets or Presentation
 > Widgets. Either way, but now that I think a bit more about it the second
 option makes more semantical sense.

 That's about it, really. The default and classic themes are already
 widget-aware. Opening to debate.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4169#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list