WordPress/wp-content/themes
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
..
twentyeleven I18N: Use consistent pattern for placeholder references in translator comments for some bundled theme strings. 2021-06-15 15:38:57 +00:00
twentyfifteen Coding Standards: Remove a one-time $message variable in WordPress version requirement notices for bundled themes. 2021-06-15 15:24:58 +00:00
twentyfourteen Bundled Themes: Improve display of blocks in widget areas. 2021-06-22 20:14:59 +00:00
twentynineteen Twenty Nineteen: Update margins on full- and wide-aligned blocks in the editor. 2021-06-22 22:15:57 +00:00
twentyseventeen Twenty Seventeen: Avoid JS errors when displaying legacy widgets. 2021-06-29 12:57:56 +00:00
twentysixteen Bundled Themes: Improve display of blocks in widget areas. 2021-06-22 20:14:59 +00:00
twentyten Bundled Themes: Improve display of blocks in widget areas. 2021-06-22 20:14:59 +00:00
twentythirteen Bundled Themes: Improve display of blocks in widget areas. 2021-06-22 20:14:59 +00:00
twentytwelve I18N: Use consistent pattern for placeholder references in translator comments for some bundled theme strings. 2021-06-15 15:38:57 +00:00
twentytwenty Twenty Twenty: Remove extra margin within the Query Loop block. 2021-06-24 23:22:58 +00:00
twentytwentyone Twenty Twenty-One: Ensure Duotone images are displayed correctly in Dark Mode. 2021-06-28 23:40:59 +00:00
index.php Remove closing PHP tags from the rest of index.php files in wp-content, for consistency with wp-content/index.php. 2014-06-05 15:59:14 +00:00