[wp-trac] [WordPress Trac] #29790: Widgets don't know the widget area context they're in

WordPress Trac noreply at wordpress.org
Sun Oct 5 18:55:30 UTC 2014


#29790: Widgets don't know the widget area context they're in
-------------------------------------+-------------------------------------
 Reporter:  ruud@…                   |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Widgets                  |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  dev-feedback needs-      |     Focuses:  accessibility,
  patch                              |  administration
-------------------------------------+-------------------------------------
Changes (by ruud@…):

 * keywords:  has-patch dev-feedback => dev-feedback needs-patch


Comment:

 I can follow this logic too. Besides a get method, the widget Class should
 also get a set method right?

 I'm thinking a method name something along the lines of:
 get_sidebar_context();
 set_sidebar_context();
 both using an array of information (some array as the $args array from the
 patch), in that way any known sidebar context information can be stored
 and retrieved from the widget object.

 Furthermore the comments with these functions could(should?) reflect the
 fact the information may have been altered by dragging the widget from one
 sidebar into another (in the admin).

 I'm not exactly sure how the admin-ajax methods come into play here.

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


More information about the wp-trac mailing list