WordPress/wp-content/themes/twentyseventeen/assets
Sergey Biryukov c804143db6 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.
Built from https://develop.svn.wordpress.org/trunk@51257


git-svn-id: http://core.svn.wordpress.org/trunk@50866 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-29 12:57:56 +00:00
..
css Bundled Themes: Improve display of blocks in widget areas. 2021-06-22 20:14:59 +00:00
images Bundled Themes: Introduce block patterns for Twenty Seventeen. 2020-11-12 21:22:12 +00:00
js Twenty Seventeen: Avoid JS errors when displaying legacy widgets. 2021-06-29 12:57:56 +00:00