[wp-trac] [WordPress Trac] #52157: Sidebar widget not partial refreshing for first widget add and remove

WordPress Trac noreply at wordpress.org
Tue Jan 5 05:52:17 UTC 2021


#52157: Sidebar widget not partial refreshing for first widget add and remove
--------------------------+------------------------------
 Reporter:  rohitrpatil   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Customize     |     Version:  5.6
 Severity:  major         |  Resolution:
 Keywords:  2nd-opinion   |     Focuses:  ui, performance
--------------------------+------------------------------
Changes (by noisysocks):

 * keywords:  needs-partial-refresh needs-patch => 2nd-opinion
 * component:  Widgets => Customize


Comment:

 This is probably because the theme (Twenty Twenty-one) will not display
 the container that widgets appear in when there are zero widgets. Partial
 refresh requires that container to exist in order to work and so it falls
 back to a full refresh.

 I don't think there's anything we can do here. Partial refresh is only
 designed to be ''best effort'' and we definitely want to encourage themes
 to not render empty containers.

 Adding `2nd-opinion` to double check my thinking here.

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


More information about the wp-trac mailing list