[wp-trac] [WordPress Trac] #48732: Twenty Seventeen is throwing a JS error on page display when a sidebar hasn't been setup.

WordPress Trac noreply at wordpress.org
Tue Nov 19 18:22:17 UTC 2019


#48732: Twenty Seventeen is throwing a JS error on page display when a sidebar
hasn't been setup.
------------------------------------------+-----------------------------
 Reporter:  krmoorhouse                   |      Owner:  (none)
     Type:  defect (bug)                  |     Status:  new
 Priority:  normal                        |  Milestone:  Awaiting Review
Component:  Themes                        |    Version:  5.3
 Severity:  minor                         |   Keywords:
  Focuses:  javascript, coding-standards  |
------------------------------------------+-----------------------------
 **Error as it appears in the console:**
   Uncaught TypeError: Cannot read property 'top' of undefined
   at belowEntryMetaClass (global.js?ver=1.0:124)
   at global.js?ver=1.0:240

 **I was able to trace the issue to sidebarPos being "undefined" on this
 line.**
   sidebarPosBottom = sidebarPos.top + ( $sidebar.height() + 28 );

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48732>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list