[wp-trac] [WordPress Trac] #63465: Events and News Widget: Empty <ul> Appears Without City Selection Causing Layout Shift

WordPress Trac noreply at wordpress.org
Tue May 20 11:39:04 UTC 2025


#63465: Events and News Widget: Empty <ul> Appears Without City Selection Causing
Layout Shift
-------------------------------------------------+-------------------------
 Reporter:  dvpatel                              |      Owner:  (none)
     Type:  defect (bug)                         |     Status:  new
 Priority:  normal                               |  Milestone:  Awaiting
                                                 |  Review
Component:  Widgets                              |    Version:  trunk
 Severity:  normal                               |   Keywords:  has-
  Focuses:  ui, javascript, css,                 |  screenshots
  administration, ui-copy                        |
-------------------------------------------------+-------------------------
 When no city is selected in the WordPress Dashboard's "Events and News"
 widget, an empty <ul> element is still rendered. This causes an
 unnecessary blank space, resulting in a two-line display where only one is
 expected. Ideally, the <ul> should not be rendered unless actual event
 content exists.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63465>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list