diff options
Diffstat (limited to 'plugins/jetpack/modules/infinite-scroll/infinity.php')
-rw-r--r-- | plugins/jetpack/modules/infinite-scroll/infinity.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/plugins/jetpack/modules/infinite-scroll/infinity.php b/plugins/jetpack/modules/infinite-scroll/infinity.php index 35193cfc..6b8d3775 100644 --- a/plugins/jetpack/modules/infinite-scroll/infinity.php +++ b/plugins/jetpack/modules/infinite-scroll/infinity.php @@ -1,14 +1,16 @@ <?php +use Automattic\Jetpack\Assets; + /* Plugin Name: The Neverending Home Page. -Plugin URI: http://automattic.com/ +Plugin URI: https://automattic.com/ Description: Adds infinite scrolling support to the front-end blog post view for themes, pulling the next set of posts automatically into view when the reader approaches the bottom of the page. Version: 1.1 Author: Automattic -Author URI: http://automattic.com/ +Author URI: https://automattic.com/ License: GNU General Public License v2 or later -License URI: http://www.gnu.org/licenses/gpl-2.0.html +License URI: https://www.gnu.org/licenses/gpl-2.0.html */ /** @@ -16,6 +18,7 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html * styling from each theme; including fixed footer. */ class The_Neverending_Home_Page { + /** * Register actions and filters, plus parse IS settings * @@ -432,7 +435,7 @@ class The_Neverending_Home_Page { // Add our scripts. wp_register_script( 'the-neverending-homepage', - Jetpack::get_file_url_for_environment( + Assets::get_file_url_for_environment( '_inc/build/infinite-scroll/infinity.min.js', 'modules/infinite-scroll/infinity.js' ), @@ -1608,7 +1611,7 @@ function the_neverending_home_page_init() { if ( ! current_theme_supports( 'infinite-scroll' ) ) return; - new The_Neverending_Home_Page; + new The_Neverending_Home_Page(); } add_action( 'init', 'the_neverending_home_page_init', 20 ); |