[wp-trac] [WordPress Trac] #53479: Unable to add widgets after Opting out of the Widgets Block Editor in WordPress 5.8-Beta2

WordPress Trac noreply at wordpress.org
Fri Jun 25 00:07:32 UTC 2021


#53479: Unable to add widgets after Opting out of the Widgets Block Editor in
WordPress 5.8-Beta2
-------------------------------------------------+-------------------------
 Reporter:  jamesros161                          |       Owner:  desrosj
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.8
Component:  Customize                            |     Version:  trunk
 Severity:  blocker                              |  Resolution:  fixed
 Keywords:  has-screenshots has-patch has-unit-  |     Focuses:
  tests commit                                   |
-------------------------------------------------+-------------------------
Changes (by desrosj):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"51232" 51232]:
 {{{
 #!CommitTicketReference repository="" revision="51232"
 Widgets: Fix an “Invalid value” warning when adding a new widget in the
 Customizer.

 This fixes a regression introduced in [50996] where sites that have been
 opted-out of the block-based widget editor experienced an “Invalid value.”
 error when adding a new widget to a sidebar in the Customizer.

 This was caused by the early return value was changed to `null` from
 `$value` when set to an empty `array`, resulting in the widget being
 evaluated as invalid elsewhere.

 Props jamesros161, caseymilne, naoki0h, ixkaito, zieladam, noisysocks,
 hellofromTonya.
 Fixes #53479.
 }}}

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


More information about the wp-trac mailing list