diff options
author | 2017-01-24 23:51:34 -0500 | |
---|---|---|
committer | 2017-01-24 23:51:34 -0500 | |
commit | 3c539a4713a80181af84c1fedc742436f75c92c4 (patch) | |
tree | e1896c286f3fb98337a6297465974c65f1fe8f26 /plugins/jetpack/modules/infinite-scroll | |
parent | Update theme twentyfifteen to 1.7 (diff) | |
download | blogs-gentoo-3c539a4713a80181af84c1fedc742436f75c92c4.tar.gz blogs-gentoo-3c539a4713a80181af84c1fedc742436f75c92c4.tar.bz2 blogs-gentoo-3c539a4713a80181af84c1fedc742436f75c92c4.zip |
updating jetpack plugin
Diffstat (limited to 'plugins/jetpack/modules/infinite-scroll')
-rw-r--r-- | plugins/jetpack/modules/infinite-scroll/infinity.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/jetpack/modules/infinite-scroll/infinity.php b/plugins/jetpack/modules/infinite-scroll/infinity.php index c1d631aa..f99ca93f 100644 --- a/plugins/jetpack/modules/infinite-scroll/infinity.php +++ b/plugins/jetpack/modules/infinite-scroll/infinity.php @@ -1122,6 +1122,7 @@ class The_Neverending_Home_Page { */ function query() { global $wp_customize; + global $wp_version; if ( ! isset( $_REQUEST['page'] ) || ! current_theme_supports( 'infinite-scroll' ) ) die; @@ -1272,7 +1273,8 @@ class The_Neverending_Home_Page { $results['type'] = 'empty'; } - if ( is_customize_preview() ) { + // This should be removed when WordPress 4.8 is released. + if ( version_compare( $wp_version, '4.7', '<' ) && is_customize_preview() ) { $wp_customize->remove_preview_signature(); } |