WordPress.org

Make WordPress Core

Ticket #41050: 41050.patch

File 41050.patch, 620 bytes (added by ericdaams, 4 years ago)
  • src/wp-content/themes/twentyseventeen/assets/js/global.js

     
    111111        function belowEntryMetaClass( param ) {
    112112                var sidebarPos, sidebarPosBottom;
    113113
    114                 if ( ! $body.hasClass( 'has-sidebar' ) || (
     114                if ( ! $sidebar.length || ! $body.hasClass( 'has-sidebar' ) || (
    115115                        $body.hasClass( 'search' ) ||
    116116                        $body.hasClass( 'single-attachment' ) ||
    117117                        $body.hasClass( 'error404' ) ||