[wp-trac] [WordPress Trac] #41050: Cannot read property 'top' of undefined in belowEntryMetaClass (TwentySeventeen)
WordPress Trac
noreply at wordpress.org
Thu Jun 15 05:29:39 UTC 2017
#41050: Cannot read property 'top' of undefined in belowEntryMetaClass
(TwentySeventeen)
--------------------------+-----------------------------------
Reporter: ericdaams | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 4.8
Severity: normal | Resolution:
Keywords: | Focuses: javascript, template
--------------------------+-----------------------------------
Comment (by ericdaams):
I've added two patches, either of which resolves this. The second is a
little more efficient since it only checks `$sidebar.length` instead of
also checking for the `has-sidebar` body class. My assumption is that if
`$sidebar.length` is false, `has-sidebar` will never exist as a body class
anyway, so it's a redundant check.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41050#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list