[wp-trac] [WordPress Trac] #35021: Dashboard widgets doubled "Configure" link

WordPress Trac noreply at wordpress.org
Thu Dec 31 02:46:57 UTC 2015


#35021: Dashboard widgets doubled "Configure" link
-------------------------------------------------+-------------------------
 Reporter:  afercia                              |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Widgets                              |  Review
 Severity:  normal                               |     Version:  4.4
 Keywords:  has-screenshots needs-patch good-    |  Resolution:
  first-bug                                      |     Focuses:  ui,
                                                 |  accessibility
-------------------------------------------------+-------------------------

Comment (by nicholas_io):

 Adding a new param like `button_title` is straightforward but it would
 depend heavily on developers using it, which is unlikely to happen since
 there's no visual change, "just" an accessibility improvement
 (unfortunately accessibility doesn't matter for most developers).

 Another idea is to use `$callback_args` to add an internal/private param
 like `__widget_basename` in `wp_add_dashboard_widget()` and pass this
 param to the `do_meta_boxes()` function and check there if there's a
 $callback param called `_widget_basename` and use that value instead of
 the `$widget_name` and then unset this internal param do avoid passing it
 to the user callback function.

 I've just attached a patch to implement this idea.

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


More information about the wp-trac mailing list