WordPress/wp-content/themes/twentyseventeen/assets/js
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
..
customize-controls.js Twenty Seventeen: Remove unused jQuery argument passed to an IIFE that accepts no arguments. 2019-08-31 20:52:56 +00:00
customize-preview.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
global.js Twenty Seventeen: Avoid JS errors when displaying legacy widgets. 2021-06-29 12:57:56 +00:00
html5.js Importing Twenty Seventeen, our new default theme for 2017, set for 4.7. 2016-10-20 04:12:31 +00:00
jquery.scrollTo.js Importing Twenty Seventeen, our new default theme for 2017, set for 4.7. 2016-10-20 04:12:31 +00:00
navigation.js External Libraries: First pass at fixing jQuery deprecations in WordPress core and bundled themes. 2021-01-22 12:32:03 +00:00
skip-link-focus-fix.js Twenty Seventeen: Make sure theme JavaScript follows proper coding standards 2016-11-14 11:41:31 +00:00