wordpress-develop/src/wp-content
Sergey Biryukov a0efb5bf06 Twenty Seventeen: Avoid JS errors when displaying legacy widgets.
Make sure the `$sidebar` variable is defined and has at least one entry in the array, before adding the `.below-entry-meta` class to elements below the entry meta.

Previously, the theme expected sidebar markup to exist on the page if sidebars are defined, but that markup is missing since only the widget itself and headers/footers of the page are loaded in the iframe used to display legacy widgets (widgets added prior to WordPress 5.8).

Props Clorith, Boniu91, desrosj.
Fixes #53512.

git-svn-id: https://develop.svn.wordpress.org/trunk@51257 602fd350-edb4-49c9-b593-d223f7449a82
2021-06-29 12:56:41 +00:00
..
plugins Accessibility: Improve the "Hello Dolly" accessibility. 2019-03-18 17:18:46 +00:00
themes Twenty Seventeen: Avoid JS errors when displaying legacy widgets. 2021-06-29 12:56:41 +00:00
index.php New develop.svn.wordpress.org repository based on the old core.svn repository. 2013-08-07 05:25:25 +00:00