Make WordPress Core

Ticket #53512: 53512.patch

File 53512.patch, 806 bytes (added by Clorith, 2 years ago)
  • src/wp-content/themes/twentyseventeen/assets/js/global.js

    diff --git a/src/wp-content/themes/twentyseventeen/assets/js/global.js b/src/wp-content/themes/twentyseventeen/assets/js/global.js
    a b  
    111111        function belowEntryMetaClass( param ) {
    112112                var sidebarPos, sidebarPosBottom;
    113113
    114                 if ( ! $body.hasClass( 'has-sidebar' ) || (
     114                if ( ! $body.hasClass( 'has-sidebar' ) ||
     115                        typeof $sidebar === 'undefined' ||
     116                        $sidebar.length < 1 || (
    115117                        $body.hasClass( 'search' ) ||
    116118                        $body.hasClass( 'single-attachment' ) ||
    117119                        $body.hasClass( 'error404' ) ||