[wp-trac] [WordPress Trac] #55121: classic widgets with no settings won't show up in 5.9

WordPress Trac noreply at wordpress.org
Tue Feb 8 23:55:53 UTC 2022


#55121: classic widgets with no settings won't show up in 5.9
--------------------------+-----------------------------
 Reporter:  joncampbell   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:  5.9
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Before 5.9 the WP_Widget class would use array_key_exists (within the
 display_callback method) when loading the widget, but now it uses isset.
 https://github.com/WordPress/WordPress/commit/df4834caea2c4e2be8595c12bb98b2849cdcf0c2

 We have some widgets with no settings so the instance is there, but has a
 value of null and because of that, isset returns false. This causes the
 widget to not load at all.

 Would really like these setting-less widgets to work again, on PHP 7.4 and
 8.

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


More information about the wp-trac mailing list