Skip to content

Commit

Permalink
Fix for custom_args and vars params
Browse files Browse the repository at this point in the history
  • Loading branch information
dcooney committed Aug 8, 2023
1 parent ac55bd0 commit 6937e81
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 15 deletions.
9 changes: 7 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Donate link: https://connekthq.com/donate/
Tags: infinite scroll, load more, ajax, lazy load, endless scroll, infinite scrolling, lazy loading, pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
Requires at least: 4.4
Requires PHP: 5.6
Tested up to: 6.2
Stable tag: 6.1.0
Tested up to: 6.3
Stable tag: 6.1.0.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

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

== Changelog ==

= 6.1.0.1 - August 8, 2023 =
* HOTFIX: Fixed issue with querying data using `custom_args` parameter.
* HOTFIX: Fixed issue with querying data using the `vars` parameter.


= 6.1.0 - July 27, 2023 =

UPGRADE NOTICE:
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: 6.1.0
* Version: 6.1.0.1
* License: GPL
* Copyright: Darren Cooney & Connekt Media
*
* @package AjaxLoadMore
*/

define( 'ALM_VERSION', '6.1.0' );
define( 'ALM_RELEASE', 'July 27, 2023' );
define( 'ALM_VERSION', '6.1.0.1' );
define( 'ALM_RELEASE', 'August 8, 2023' );
define( 'ALM_STORE_URL', 'https://connekthq.com' );

// Plugin installation helpers.
Expand Down
2 changes: 1 addition & 1 deletion build/frontend/ajax-load-more.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => '863cbd1c16fa79a0756a');
<?php return array('dependencies' => array(), 'version' => '62c50fe52f368748a828');
4 changes: 2 additions & 2 deletions build/frontend/ajax-load-more.js
Original file line number Diff line number Diff line change
Expand Up @@ -10036,10 +10036,10 @@ function getAjaxParams(alm, queryType) {
data.search = alm.listing.dataset.s;
}
if (alm.listing.dataset.customArgs) {
data.custom_args = escape(alm.listing.dataset.customArgs);
data.custom_args = alm.listing.dataset.customArgs;
}
if (alm.listing.dataset.vars) {
data.vars = escape(alm.listing.dataset.vars);
data.vars = alm.listing.dataset.vars;
}

// Cache Params
Expand Down
2 changes: 1 addition & 1 deletion build/frontend/ajax-load-more.min.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => 'd48f8f3bca8a99dafb76');
<?php return array('dependencies' => array(), 'version' => 'e330a002714ea05a2da3');
2 changes: 1 addition & 1 deletion build/frontend/ajax-load-more.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lang/ajax-load-more.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the GPL.
msgid ""
msgstr ""
"Project-Id-Version: Ajax Load More 6.1.0\n"
"Project-Id-Version: Ajax Load More 6.1.0.1\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/ajax-load-more\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2023-07-27T18:52:19+00:00\n"
"POT-Creation-Date: 2023-08-08T13:33:10+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.5.0\n"
"X-Domain: ajax-load-more\n"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ajax-load-more",
"version": "6.0.0",
"version": "6.1.0",
"description": "Ajax Load More WordPress Plugin",
"scripts": {
"watch": "npm run dev",
Expand Down
4 changes: 2 additions & 2 deletions src/frontend/js/helpers/queryParams.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ export function getAjaxParams(alm, queryType) {
data.search = alm.listing.dataset.s;
}
if (alm.listing.dataset.customArgs) {
data.custom_args = escape(alm.listing.dataset.customArgs);
data.custom_args = alm.listing.dataset.customArgs;
}
if (alm.listing.dataset.vars) {
data.vars = escape(alm.listing.dataset.vars);
data.vars = alm.listing.dataset.vars;
}

// Cache Params
Expand Down

0 comments on commit 6937e81

Please sign in to comment.