Themes: Fix javascript regression that linter found.
Tests were failing from line length optimizations and double quotes. Fixes #37536 Built from https://develop.svn.wordpress.org/trunk@46310 git-svn-id: http://core.svn.wordpress.org/trunk@46109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b4ab6b7e14
commit
2822281c57
|
@ -100,16 +100,13 @@
|
|||
sidebarHeight = $sidebar.height(),
|
||||
bodyHeight = $body.height();
|
||||
|
||||
if( 955 < $window.width()
|
||||
&& bodyHeight > sidebarHeight
|
||||
&& ( windowPos + windowHeight ) >= sidebarHeight ) {
|
||||
|
||||
if( 955 < $window.width() && bodyHeight > sidebarHeight && ( windowPos + windowHeight ) >= sidebarHeight ) {
|
||||
$sidebar.css({
|
||||
position: "fixed",
|
||||
position: 'fixed',
|
||||
bottom: sidebarHeight > windowHeight ? 0 : 'auto'
|
||||
});
|
||||
} else {
|
||||
$sidebar.css('position', 'relative')
|
||||
$sidebar.css('position', 'relative');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.3-beta1-46309';
|
||||
$wp_version = '5.3-beta1-46310';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue