Skip to content

Commit

Permalink
Added back document ready for JS due to bug in JS minification.
Browse files Browse the repository at this point in the history
  • Loading branch information
seb86 committed Sep 14, 2018
1 parent 0e356fa commit 947840e
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,6 @@
# 1.5.2 (14th September 2018)
* Reverted: The JavaScript from not requiring the document to be ready due to JS minification breaking it.

# 1.5.1 (14th September 2018)
* Fixed: No such file for including the admin settings when setting default options due to a file rename.

Expand Down
4 changes: 2 additions & 2 deletions assets/js/frontend/auto-load-next-post.js
Expand Up @@ -19,7 +19,7 @@ var stop_reading = false;
var scroll_up = false;
var article_container = 'article';

(function($) {
jQuery( document ).ready( function($) {

// Ensure auto_load_next_post_params exists to continue.
if ( typeof auto_load_next_post_params === 'undefined' ) {
Expand Down Expand Up @@ -342,4 +342,4 @@ var article_container = 'article';

} // END auto_load_next_post()

})(jQuery);
})
4 changes: 2 additions & 2 deletions assets/js/frontend/auto-load-next-post.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions auto-load-next-post.php
Expand Up @@ -5,7 +5,7 @@
* Description: Increase your pageviews on your site as readers continue reading your posts scrolling down the page.
* Author: Sébastien Dumont
* Author URI: https://sebastiendumont.com
* Version: 1.5.1
* Version: 1.5.2
* Text Domain: auto-load-next-post
* Domain Path: /languages/
*
Expand Down Expand Up @@ -47,7 +47,7 @@ class Auto_Load_Next_Post {
* @static
* @since 1.5.0
*/
public static $version = '1.5.1';
public static $version = '1.5.2';

/**
* Main Auto Load Next Post Instance
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -3,7 +3,7 @@
"name": "auto-load-next-post",
"author": "AutoLoadNextPost",
"license": "GPL-2.0",
"version": "1.5.1",
"version": "1.5.2",
"description": "Increase your pageviews on your site as readers continue reading your posts scrolling down the page.",
"homepage": "https://autoloadnextpost.com/",
"main": "Gruntfile.js",
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Expand Up @@ -5,7 +5,7 @@ Tags: AJAX, ajax load posts, ajax pagination, ajax posts, infinite, infinite scr
Requires PHP: 5.6+
Requires at least: 4.4
Tested up to: 4.9.8
Stable tag: 1.5.1
Stable tag: 1.5.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -198,6 +198,9 @@ It does. Just make sure that you activate the plugin on the site you want it use
4. Theme Customizer: The same settings can be applied via the theme customizer.

== Changelog ==
= 1.5.2 : 14th September 2018 =
* Reverted: The JavaScript from not requiring the document to be ready due to JS minification breaking it.

= 1.5.1 : 14th September 2018 =
* Fixed: No such file for including the admin settings when setting default options due to a file rename.

Expand Down

0 comments on commit 947840e

Please sign in to comment.