WordPress.org

Make WordPress Core

Changeset 28758


Ignore:
Timestamp:
06/16/2014 06:21:01 PM (7 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: fix masthead behavior in IE when a custom header image is present. Props Kau-Boy, lancewillett. Fixes #27220.

Location:
trunk/src/wp-content/themes/twentyfourteen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/functions.php

    r28694 r28758  
    257257    }
    258258
    259     wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20140319', true );
     259    wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20140616', true );
    260260}
    261261add_action( 'wp_enqueue_scripts', 'twentyfourteen_scripts' );
  • trunk/src/wp-content/themes/twentyfourteen/js/functions.js

    r28598 r28758  
    9595
    9696                _window.on( 'scroll.twentyfourteen', function() {
    97                     if ( ( window.scrollY > mastheadOffset ) && ( mastheadHeight < 49 ) ) {
     97                    if ( _window.scrollTop() > mastheadOffset && mastheadHeight < 49 ) {
    9898                        body.addClass( 'masthead-fixed' );
    9999                    } else {
Note: See TracChangeset for help on using the changeset viewer.