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

WordPress Trac noreply at wordpress.org
Wed Feb 9 10:56:06 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:  5.9.1
Component:  Widgets         |     Version:  5.9
 Severity:  normal          |  Resolution:
 Keywords:  has-patch php8  |     Focuses:

Comment (by costdev):

 I believe this was considered doing it wrong in previous discussions.

 However, given that this has come up again, I think we should consider one
 of the following ways forward:

 - If it definitely is doing it wrong and BC doesn't need to be considered,
 consider adding `_doing_it_wrong` to highlight this to extenders.
  - This lets site owners and extenders know upon updating what the issue
 is and how to resolve it.
  - `_doing_it_wrong()` is used in several areas of Core even though the
 documentation already states the expected type(s).
 - If it isn't doing it wrong, consider the PR on this ticket.
  - ''Side note:'' The PR doesn't cover `null` values on
 `ArrayObject`/`ArrayIterator`, this may need to be added.

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

More information about the wp-trac mailing list