Skip to content

Commit

Permalink
Fix for compiled assets error
Browse files Browse the repository at this point in the history
  • Loading branch information
dcooney committed Feb 17, 2023
1 parent 62dff8d commit 727c4a3
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 111 deletions.
7 changes: 6 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: infinite scroll, load more, ajax, lazy load, endless scroll, infinite scro
Requires at least: 4.4
Requires PHP: 5.6
Tested up to: 6.1
Stable tag: 5.6.0.1
Stable tag: 5.6.0.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -263,6 +263,11 @@ How to install Ajax Load More.

== Changelog ==

= 5.6.0.2 - February 17, 2023 =
* HOTFIX: Fixed error with compiled Ajax Load More JS causing issues with addons.
* FIX: Adding fix for new ALM JavaScript Object not rendering when using default ID.


= 5.6.0.1 - February 16, 2023 =
* FIX: Added security fix for missing escaping on various shortcode params.
* FIX: Added fix for new alm object parameter.
Expand Down
6 changes: 3 additions & 3 deletions ajax-load-more.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
* Author: Darren Cooney
* Twitter: @KaptonKaos
* Author URI: https://connekthq.com
* Version: 5.6.0.1
* Version: 5.6.0.2
* License: GPL
* Copyright: Darren Cooney & Connekt Media
*
* @package AjaxLoadMore
*/

define( 'ALM_VERSION', '5.6.0.1' );
define( 'ALM_RELEASE', 'February 16, 2023' );
define( 'ALM_VERSION', '5.6.0.2' );
define( 'ALM_RELEASE', 'February 17, 2023' );
define( 'ALM_STORE_URL', 'https://connekthq.com' );

// Plugin installation helpers.
Expand Down
4 changes: 2 additions & 2 deletions core/classes/class-alm-shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -549,13 +549,13 @@ public static function alm_render_shortcode( $atts ) {
$alm_wrapper_class = $woocommerce ? 'ajax-load-more-wrap ' . ALM_WOOCOMMERCE::get_wrapper_class() : 'ajax-load-more-wrap';

// ALM Direction.
$alm_direction = ! empty( $scroll_direction ) ? ' alm-' . $scroll_direction : '';
$alm_direction = $scroll_direction ? ' alm-' . $scroll_direction : '';

// Append Inline CSS.
$ajaxloadmore .= $inline_css . $inline_layouts_css . $inline_paging_css . $inline_tabs_css . $inline_single_posts_css;

// Horizontal Scroll CSS.
if ( $scroll_direction === 'horizontal' && ! empty( $scroll_container ) ) {
if ( $scroll_direction === 'horizontal' && $scroll_container ) {
// Add style for overflow style of the container.
$ajaxloadmore .= '<style>' . $scroll_container . '{ height: auto; width: 100%; overflow: hidden; overflow-x: auto; -webkit-overflow-scrolling: touch; }</style>';
}
Expand Down
Loading

0 comments on commit 727c4a3

Please sign in to comment.