Skip to content

Commit 911c75d

Browse files
authored
Various security fixes (#227)
* Various security fixes * Adding build assets
1 parent 770277a commit 911c75d

10 files changed

+373
-290
lines changed

README.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Donate link: https://connekthq.com/donate/
44
Tags: infinite scroll, load more, lazy load, endless scroll, ajax load more
55
Requires at least: 5.0
66
Requires PHP: 5.6
7-
Tested up to: 6.7
8-
Stable tag: 7.3.1
7+
Tested up to: 6.8
8+
Stable tag: 7.3.1.1
99
License: GPLv2 or later
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1111

@@ -269,6 +269,11 @@ How to install Ajax Load More.
269269

270270
== Changelog ==
271271

272+
= 7.3.1.1 - May 10, 2025 =
273+
* UPDATE: Various security fixes.
274+
* UPDATE: Updated Axios NPM package.
275+
* FIX: Fixed issue with `load_plugin_textdomain` warning.
276+
272277
= 7.3.1 - February 12, 2025 =
273278
* UPDATE: Updated new Date Query feature to parse compare value. This was previously not functioning as expected. e.g. `[ajax_load_more date_query="2024-01-01;2020-01-01" date_query_compare=">=;<=" date_query_relation="OR"]
274279
* NEW: Added date_query_column parameter to allow for querying the post_date or post_modified column. e.g. `[ajax_load_more date_query="2020-01-01" date_query_column="post_modified"]

ajax-load-more.php

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
* Author: Darren Cooney
88
* Twitter: @KaptonKaos
99
* Author URI: https://connekthq.com
10-
* Version: 7.3.1
10+
* Version: 7.3.1.1
1111
* License: GPL
1212
* Copyright: Darren Cooney & Connekt Media
1313
*
1414
* @package AjaxLoadMore
1515
*/
16-
define( 'ALM_VERSION', '7.3.1' );
17-
define( 'ALM_RELEASE', 'February 12, 2025' );
16+
define( 'ALM_VERSION', '7.3.1.1' );
17+
define( 'ALM_RELEASE', 'May 10, 2025' );
1818
define( 'ALM_STORE_URL', 'https://connekthq.com' );
1919

2020
// Plugin installation helpers.
@@ -62,30 +62,20 @@ class AjaxLoadMore {
6262
*/
6363
public function __construct() {
6464
$this->alm_define_constants();
65-
$this->alm_includes();
6665

67-
add_action( 'wp_ajax_alm_get_posts', [ &$this, 'alm_query_posts' ] );
68-
add_action( 'wp_ajax_nopriv_alm_get_posts', [ &$this, 'alm_query_posts' ] );
69-
add_action( 'wp_enqueue_scripts', [ &$this, 'alm_enqueue_scripts' ] );
70-
add_action( 'after_setup_theme', [ &$this, 'alm_image_sizes' ] );
66+
add_action( 'init', [ $this, 'alm_includes' ] );
67+
add_action( 'wp_ajax_alm_get_posts', [ $this, 'alm_query_posts' ] );
68+
add_action( 'wp_ajax_nopriv_alm_get_posts', [ $this, 'alm_query_posts' ] );
69+
add_action( 'wp_enqueue_scripts', [ $this, 'alm_enqueue_scripts' ] );
70+
add_action( 'after_setup_theme', [ $this, 'alm_image_sizes' ] );
7171

72-
add_filter( 'alm_noscript', [ &$this, 'alm_noscript' ], 10, 6 );
73-
add_filter( 'alm_noscript_pagination', [ &$this, 'alm_noscript_pagination' ], 10, 3 );
74-
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), [ &$this, 'alm_action_links' ] );
75-
add_filter( 'plugin_row_meta', [ &$this, 'alm_plugin_meta_links' ], 10, 2 );
72+
add_filter( 'alm_noscript', [ $this, 'alm_noscript' ], 10, 6 );
73+
add_filter( 'alm_noscript_pagination', [ $this, 'alm_noscript_pagination' ], 10, 3 );
74+
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), [ $this, 'alm_action_links' ] );
75+
add_filter( 'plugin_row_meta', [ $this, 'alm_plugin_meta_links' ], 10, 2 );
7676
add_filter( 'widget_text', 'do_shortcode' );
7777

78-
add_shortcode( 'ajax_load_more', [ &$this, 'alm_shortcode' ] );
79-
add_action( 'init', [ &$this, 'alm_init' ] );
80-
}
81-
82-
/**
83-
* Initialize the plugin.
84-
*
85-
* @return void
86-
*/
87-
public function alm_init() {
88-
load_plugin_textdomain( 'ajax-load-more', false, dirname( plugin_basename( __FILE__ ) ) . '/lang' );
78+
add_shortcode( 'ajax_load_more', [ $this, 'alm_shortcode' ] );
8979
}
9080

9181
/**
@@ -94,6 +84,7 @@ public function alm_init() {
9484
* @since 2.0.0
9585
*/
9686
public function alm_includes() {
87+
load_plugin_textdomain( 'ajax-load-more', false, dirname( plugin_basename( __FILE__ ) ) . '/lang' );
9788
require_once ALM_PATH . 'core/functions.php'; // Load Core Functions.
9889
require_once ALM_PATH . 'core/classes/class-alm-blocks.php'; // Load Block Class.
9990
require_once ALM_PATH . 'core/classes/class-alm-preview.php'; // Load Preview Class.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array(), 'version' => '9909c29c175a064d9232');
1+
<?php return array('dependencies' => array(), 'version' => '5384156b7fc7278ac6c0');

0 commit comments

Comments
 (0)