[wp-trac] [WordPress Trac] #23328: While editing widgets in accessibility mode the position can be indicated by widget titles instead of numbers

WordPress Trac noreply at wordpress.org
Mon Sep 25 16:24:36 UTC 2017


#23328: While editing widgets in accessibility mode the position can be indicated
by widget titles instead of numbers
-------------------------------------+-------------------------------------
 Reporter:  mark-k                   |       Owner:  afercia
     Type:  enhancement              |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.9
Component:  Widgets                  |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch has-           |     Focuses:  ui, accessibility,
  screenshots                        |  administration
-------------------------------------+-------------------------------------

Comment (by Mte90):

 Probably this lines do the magic:
 ```
 // Discard invalid, theme-specific widgets from sidebars.
 $sidebars_widgets = _wp_remove_unregistered_widgets( $sidebars_widgets,
 $registered_widgets_ids );
 $sidebars_widgets = wp_map_sidebars_widgets( $sidebars_widgets );
 ```

 So probably this code actually is not necessary because somewhere there
 are new methods that clean up for wrong widgets.

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


More information about the wp-trac mailing list