[wp-trac] [WordPress Trac] #53612: Widgets not loaded after deleting multiple widgets at once

WordPress Trac noreply at wordpress.org
Wed Jul 7 07:46:09 UTC 2021


#53612: Widgets not loaded after deleting multiple widgets at once
-------------------------------------+--------------------------------
 Reporter:  walbo                    |       Owner:  TimothyBlynJacobs
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  5.8
Component:  Widgets                  |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  needs-testing has-patch  |     Focuses:  rest-api
-------------------------------------+--------------------------------

Comment (by walbo):

 Replying to [comment:4 TimothyBlynJacobs]:
 > Looks like we need an `array_values` call when preparing the `widgets`
 property.

 Yes. Adding `array_values` brings them back.

 I can't find a good explanation why it only happens when deleting multiple
 widgets and not just one.

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


More information about the wp-trac mailing list