[wp-trac] [WordPress Trac] #40492: Twenty Fifteen: Jumping if there is content just before the closing body tag
WordPress Trac
noreply at wordpress.org
Sun Apr 24 21:01:24 UTC 2022
#40492: Twenty Fifteen: Jumping if there is content just before the closing body
tag
-------------------------------------------------+-------------------------
Reporter: stephenharris | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.0
Component: Bundled Theme | Version: 4.7.1
Severity: minor | Resolution: fixed
Keywords: has-patch has-screenshots commit | Focuses: javascript
assigned-for-commit |
-------------------------------------------------+-------------------------
Changes (by audrasjb):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"53247" 53247]:
{{{
#!CommitTicketReference repository="" revision="53247"
Twenty Fifteen: Use `#page` height instead of `body` height in sidebar
scroll calculation.
This changeset replaces `bodyHeight = $body.height();` with `bodyHeight =
$('#page).height();`. It fixes a JS issue in some specific context, when
there is content generated right before the closing `body` tag. For
example, this happens when the HTML content is added using the `wp_footer`
filter.
Props stephenharris, sabernhardt, audrasjb.
Fixes #40492.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40492#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list