Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- a/ajax-search-for-woocommerce/ajax-search-for-woocommerce.php
+++ b/ajax-search-for-woocommerce/ajax-search-for-woocommerce.php
@@ -4,14 +4,14 @@
* Plugin Name: FiboSearch - AJAX Search for WooCommerce
* Plugin URI: https://fibosearch.com?utm_source=wp-admin&utm_medium=referral&utm_campaign=author_uri&utm_gen=utmdc
* Description: The most popular WooCommerce product search. Gives your users a well-designed advanced AJAX search bar with live search suggestions.
- * Version: 1.33.0
+ * Version: 1.34.0
* Author: FiboSearch Team
* Author URI: https://fibosearch.com?utm_source=wp-admin&utm_medium=referral&utm_campaign=author_uri&utm_gen=utmdc
* Text Domain: ajax-search-for-woocommerce
* Domain Path: /languages
* Requires Plugins: woocommerce
* WC requires at least: 5.5
- * WC tested up to: 10.7
+ * WC tested up to: 10.9
*
*/
// Exit if accessed directly
--- a/ajax-search-for-woocommerce/build/blocks/search-nav/index.asset.php
+++ b/ajax-search-for-woocommerce/build/blocks/search-nav/index.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-server-side-render'), 'version' => 'fcba787a78525673cf9a');
+<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-server-side-render'), 'version' => 'ee6f0b17b2795661d55e');
--- a/ajax-search-for-woocommerce/build/blocks/search/index.asset.php
+++ b/ajax-search-for-woocommerce/build/blocks/search/index.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-server-side-render', 'wp-shortcode'), 'version' => '3dbb389a13b4d00470f9');
+<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-server-side-render', 'wp-shortcode'), 'version' => '9f828be8121073a28020');
--- a/ajax-search-for-woocommerce/includes/Analytics/Maintenance.php
+++ b/ajax-search-for-woocommerce/includes/Analytics/Maintenance.php
@@ -11,8 +11,8 @@
const ANALYTICS_EXPIRATION_IN_DAYS = 30;
public function init() {
- $this->schedule();
$this->listenCron();
+ add_action( 'init', [ $this, 'schedule' ] );
}
/**
--- a/ajax-search-for-woocommerce/includes/Engines/WordPressNative/Search.php
+++ b/ajax-search-for-woocommerce/includes/Engines/WordPressNative/Search.php
@@ -660,9 +660,8 @@
}
if ( !empty( $search ) ) {
$search = " AND ({$search}) ";
- if ( !is_user_logged_in() ) {
- $search .= " AND ({$wpdb->posts}.post_password = '') ";
- }
+ // Password-protected products are never searchable, regardless of the login state.
+ $search .= " AND ({$wpdb->posts}.post_password = '') ";
}
}
return $search;
--- a/ajax-search-for-woocommerce/includes/Integrations/Plugins/Elementor/Elementor.php
+++ b/ajax-search-for-woocommerce/includes/Integrations/Plugins/Elementor/Elementor.php
@@ -19,6 +19,7 @@
public function init() : void {
add_action( 'elementor/widgets/register', [$this, 'registerWidgets'], 20 );
add_action( 'elementor/editor/before_enqueue_scripts', [$this, 'editorEnqueueScripts'] );
+ add_action( 'wp_enqueue_scripts', [$this, 'enqueuePopupFixes'], 20 );
}
/**
@@ -43,4 +44,88 @@
);
}
+ /**
+ * Elementor popups move focus to the close button after popup animations.
+ * FiboSearch needs a dedicated guard here instead of a generic core workaround.
+ */
+ public function enqueuePopupFixes() : void {
+ ob_start();
+ ?>
+ <style>
+ .elementor-popup-modal .dgwt-wcas-style-pirx.dgwt-wcas-search-filled .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
+ animation: none;
+ }
+ </style>
+ <?php
+ $css = (string) ob_get_clean();
+ wp_add_inline_style( 'dgwt-wcas-style', str_replace( ['<style>', '</style>'], '', $css ) );
+ ob_start();
+ ?>
+ <script>
+ (function($) {
+ $(function() {
+ if ($(document).data('fibosearchElementorPopupFocusGuardBound')) {
+ return;
+ }
+
+ $(document).data('fibosearchElementorPopupFocusGuardBound', true);
+
+ var keepFocusOnInput = function($modal, input, tokenKey, maxChecks) {
+ var guardToken = Date.now() + Math.random();
+ var checks = 0;
+
+ $modal.data(tokenKey, guardToken);
+
+ var interval = setInterval(function() {
+ var activeElement = document.activeElement;
+
+ checks++;
+
+ if (
+ $modal.data(tokenKey) !== guardToken ||
+ !document.body.contains(input) ||
+ checks > maxChecks
+ ) {
+ clearInterval(interval);
+ return;
+ }
+
+ if (!$(input).is(':visible')) {
+ return;
+ }
+
+ if (
+ activeElement &&
+ $(activeElement).closest('.elementor-popup-modal')[0] !== $modal[0]
+ ) {
+ clearInterval(interval);
+ return;
+ }
+
+ if (
+ activeElement !== input &&
+ (
+ !activeElement ||
+ activeElement === document.body ||
+ $(activeElement).hasClass('dialog-close-button') ||
+ activeElement === $modal.find('.dialog-widget-content')[0]
+ )
+ ) {
+ input.focus();
+ }
+ }, 60);
+ };
+
+ $(document).on('focusin', '.elementor-popup-modal .dgwt-wcas-search-input', function() {
+ var $modal = $(this).closest('.elementor-popup-modal');
+ keepFocusOnInput($modal, this, 'fibosearchFocusGuardToken', 25);
+ });
+ });
+ })(jQuery);
+ </script>
+ <?php
+ $js = (string) ob_get_clean();
+ wp_add_inline_script( 'jquery-dgwt-wcas', trim( str_replace( ['<script>', '</script>'], '', $js ) ), 'after' );
+ }
+
}
--- a/ajax-search-for-woocommerce/includes/Product.php
+++ b/ajax-search-for-woocommerce/includes/Product.php
@@ -172,7 +172,7 @@
* @return string
*/
public function getThumbnail( $size = '' ) {
- return '<img src="' . $this->getThumbnailSrc( $size ) . '" alt="' . wp_strip_all_tags( $this->getName(), true ) . '" />';
+ return sprintf( '<img src="%s" alt="%s" />', esc_url( $this->getThumbnailSrc( $size ) ), esc_attr( wp_strip_all_tags( $this->getName(), true ) ) );
}
/**
@@ -684,10 +684,11 @@
*/
public function canIndexParent() {
$canIndex = true;
- if ( $this->getWooObject()->get_type() === 'variable' && empty( $this->getAvailableVariations() ) ) {
- $canIndex = false;
+ if ( $this->getWooObject()->get_type() === 'variable' ) {
+ $canIndex = !empty( $this->getAvailableVariations() );
+ $canIndex = apply_filters( 'dgwt/wcas/can_index_variable_parent', $canIndex, $this );
}
- return apply_filters( 'dgwt/wcas/can_index_variable_parent', $canIndex, $this );
+ return $canIndex;
}
}
--- a/ajax-search-for-woocommerce/includes/Settings.php
+++ b/ajax-search-for-woocommerce/includes/Settings.php
@@ -630,11 +630,12 @@
'class' => 'dgwt-wcas-sgs-header js-dgwt-wcas-adv-settings',
],
520 => [
- 'name' => 'search_synonyms',
- 'label' => __( 'Synonyms', 'ajax-search-for-woocommerce' ) . ' ' . Helpers::createQuestionMark( 'synonyms', sprintf( __( 'The synonyms feature allows your users to find more relevant results. If your products have alternative names and users often misspell them, consider adding synonyms. <a target="_blank" href="%s">Read more</a> about this feature.', 'ajax-search-for-woocommerce' ), $synonymsLink ) ),
- 'type' => 'textarea',
- 'desc' => __( 'Synonyms should be separated by a comma. Each new synonyms group is entered in a new line. You can use a phrase instead of a single word. <br /> <br />Sample list:<br /> <br /><span class="dgwt-wcas-synonyms-sample">sofa, couch, davenport, divan, settee<br />big, grand, great, large, outsize</span>', 'ajax-search-for-woocommerce' ),
- 'class' => 'dgwt-wcas-settings-synonyms js-dgwt-wcas-adv-settings dgwt-wcas-premium-only',
+ 'name' => 'search_synonyms',
+ 'label' => __( 'Synonyms', 'ajax-search-for-woocommerce' ) . ' ' . Helpers::createQuestionMark( 'synonyms', sprintf( __( 'The synonyms feature allows your users to find more relevant results. If your products have alternative names and users often misspell them, consider adding synonyms. <a target="_blank" href="%s">Read more</a> about this feature.', 'ajax-search-for-woocommerce' ), $synonymsLink ) ),
+ 'type' => 'textarea',
+ 'desc' => __( 'Synonyms should be separated by a comma. Each new synonyms group is entered in a new line. You can use a phrase instead of a single word. <br /> <br />Sample list:<br /> <br /><span class="dgwt-wcas-synonyms-sample">sofa, couch, davenport, divan, settee<br />big, grand, great, large, outsize</span>', 'ajax-search-for-woocommerce' ),
+ 'class' => 'dgwt-wcas-settings-synonyms js-dgwt-wcas-adv-settings dgwt-wcas-premium-only',
+ 'sanitize_callback' => 'sanitize_textarea_field',
],
600 => [
'name' => 'filter_products_head',
--- a/ajax-search-for-woocommerce/partials/themes/woodmart.php
+++ b/ajax-search-for-woocommerce/partials/themes/woodmart.php
@@ -15,25 +15,27 @@
<script>
var desktopSearchForm = document.querySelector('.whb-main-header .wd-header-search-form');
if (desktopSearchForm !== null) {
- desktopSearchForm.replaceWith(document.querySelector('#wcas-desktop-search-form > div'));
+ desktopSearchForm.classList.add('wd-search-form');
+ desktopSearchForm.innerHTML = document.querySelector('#wcas-desktop-search-form > div').innerHTML;
}
document.querySelector('#wcas-desktop-search-form').remove();
var desktopSearchIcon = document.querySelector('.whb-main-header .wd-header-search');
if (desktopSearchIcon !== null) {
- desktopSearchIcon.replaceWith(document.querySelector('#wcas-desktop-search-icon > div'));
+ desktopSearchIcon.innerHTML = document.querySelector('#wcas-desktop-search-icon > div').innerHTML;
}
document.querySelector('#wcas-desktop-search-icon').remove();
var mobileSearchForm = document.querySelector('.whb-main-header .wd-header-search-form-mobile');
if (mobileSearchForm !== null) {
- mobileSearchForm.replaceWith(document.querySelector('#wcas-mobile-search-form > div'));
+ mobileSearchForm.classList.add('wd-search-form');
+ mobileSearchForm.innerHTML = document.querySelector('#wcas-mobile-search-form > div').innerHTML;
}
document.querySelector('#wcas-mobile-search-form').remove();
var mobileSearch = document.querySelector('.mobile-nav .wd-search-form');
if (mobileSearch !== null) {
- mobileSearch.replaceWith(document.querySelector('#wcas-mobile-search-nav > div'));
+ mobileSearch.innerHTML = document.querySelector('#wcas-mobile-search-nav').innerHTML;
}
document.querySelector('#wcas-mobile-search-nav').remove();
@@ -59,6 +61,36 @@
fill: var(--wd-header-el-color-hover);
}
+ .whb-main-header .whb-column .wd-header-search-form {
+ flex: 1 1 auto;
+ width: 100%;
+ }
+
+ .whb-main-header .wd-header-search-form .dgwt-wcas-search-wrapp {
+ min-width: 0;
+ }
+
+ .whb-main-header .whb-column .wd-header-search-form-mobile {
+ flex: 1 1 auto;
+ width: 100%;
+ min-width: 0;
+ }
+
+ .whb-main-header .wd-header-search-form-mobile .dgwt-wcas-search-wrapp {
+ min-width: 0;
+ }
+
+ .whb-main-header .wd-header-search-form-mobile .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
+ min-width: 100%;
+ }
+
+ .whb-main-header .whb-header-bottom,
+ .whb-main-header .whb-header-bottom .whb-header-bottom-inner,
+ .whb-main-header .whb-header-bottom .whb-column_mobile5 {
+ height: auto;
+ min-height: 54px;
+ }
+
.whb-main-header .wd-header-search-form-mobile .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp {
padding: 0;
}
@@ -67,6 +99,14 @@
margin-top: -10px;
margin-left: -10px;
}
+
+ .whb-main-header .wd-header-search-form-mobile .dgwt-wcas-style-pirx.dgwt-wcas-style-pirx-compact .dgwt-wcas-sf-wrapp {
+ padding: 4px;
+ }
+
+ .whb-main-header .wd-header-search-form-mobile .dgwt-wcas-style-pirx.dgwt-wcas-style-pirx-compact .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
+ margin: 0;
+ }
@media screen and (max-width: 1024px) {
html.dgwt-wcas-overlay-mobile-on .mobile-nav,
html.dgwt-wcas-overlay-mobile-on .website-wrapper,
--- a/ajax-search-for-woocommerce/vendor/autoload.php
+++ b/ajax-search-for-woocommerce/vendor/autoload.php
@@ -22,4 +22,4 @@
require_once __DIR__ . '/composer/autoload_real.php';
-return ComposerAutoloaderInit3b675252506fa5bade581ddb1697b0c1::getLoader();
+return ComposerAutoloaderInitc3736af2ab144591bbc7587e60ab1765::getLoader();
--- a/ajax-search-for-woocommerce/vendor/composer/autoload_real.php
+++ b/ajax-search-for-woocommerce/vendor/composer/autoload_real.php
@@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
-class ComposerAutoloaderInit3b675252506fa5bade581ddb1697b0c1
+class ComposerAutoloaderInitc3736af2ab144591bbc7587e60ab1765
{
private static $loader;
@@ -22,16 +22,16 @@
return self::$loader;
}
- spl_autoload_register(array('ComposerAutoloaderInit3b675252506fa5bade581ddb1697b0c1', 'loadClassLoader'), true, true);
+ spl_autoload_register(array('ComposerAutoloaderInitc3736af2ab144591bbc7587e60ab1765', 'loadClassLoader'), true, true);
self::$loader = $loader = new ComposerAutoloadClassLoader(dirname(__DIR__));
- spl_autoload_unregister(array('ComposerAutoloaderInit3b675252506fa5bade581ddb1697b0c1', 'loadClassLoader'));
+ spl_autoload_unregister(array('ComposerAutoloaderInitc3736af2ab144591bbc7587e60ab1765', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
- call_user_func(ComposerAutoloadComposerStaticInit3b675252506fa5bade581ddb1697b0c1::getInitializer($loader));
+ call_user_func(ComposerAutoloadComposerStaticInitc3736af2ab144591bbc7587e60ab1765::getInitializer($loader));
$loader->register(true);
- $filesToLoad = ComposerAutoloadComposerStaticInit3b675252506fa5bade581ddb1697b0c1::$files;
+ $filesToLoad = ComposerAutoloadComposerStaticInitc3736af2ab144591bbc7587e60ab1765::$files;
$requireFile = Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
--- a/ajax-search-for-woocommerce/vendor/composer/autoload_static.php
+++ b/ajax-search-for-woocommerce/vendor/composer/autoload_static.php
@@ -4,7 +4,7 @@
namespace ComposerAutoload;
-class ComposerStaticInit3b675252506fa5bade581ddb1697b0c1
+class ComposerStaticInitc3736af2ab144591bbc7587e60ab1765
{
public static $files = array (
);
@@ -30,9 +30,9 @@
public static function getInitializer(ClassLoader $loader)
{
return Closure::bind(function () use ($loader) {
- $loader->prefixLengthsPsr4 = ComposerStaticInit3b675252506fa5bade581ddb1697b0c1::$prefixLengthsPsr4;
- $loader->prefixDirsPsr4 = ComposerStaticInit3b675252506fa5bade581ddb1697b0c1::$prefixDirsPsr4;
- $loader->classMap = ComposerStaticInit3b675252506fa5bade581ddb1697b0c1::$classMap;
+ $loader->prefixLengthsPsr4 = ComposerStaticInitc3736af2ab144591bbc7587e60ab1765::$prefixLengthsPsr4;
+ $loader->prefixDirsPsr4 = ComposerStaticInitc3736af2ab144591bbc7587e60ab1765::$prefixDirsPsr4;
+ $loader->classMap = ComposerStaticInitc3736af2ab144591bbc7587e60ab1765::$classMap;
}, null, ClassLoader::class);
}
--- a/ajax-search-for-woocommerce/vendor/composer/installed.php
+++ b/ajax-search-for-woocommerce/vendor/composer/installed.php
@@ -20,9 +20,9 @@
'dev_requirement' => false,
),
'freemius/wordpress-sdk' => array(
- 'pretty_version' => '2.13.1',
- 'version' => '2.13.1.0',
- 'reference' => '7376c0eca1ae7f92aaba9d3b550bd10affe797ff',
+ 'pretty_version' => '2.13.4',
+ 'version' => '2.13.4.0',
+ 'reference' => 'fa43eb92ae9dffa0d9f5ae11b5a1739bd7222308',
'type' => 'library',
'install_path' => __DIR__ . '/../freemius/wordpress-sdk',
'aliases' => array(),
--- a/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/config.php
+++ b/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/config.php
@@ -210,6 +210,10 @@
define( 'WP_FS__API_SANDBOX_ADDRESS_LOCALHOST', 'http://sandbox-api.freemius:8080' );
}
+ if ( ! defined( 'WP_FS__API_TIMEOUT' ) ) {
+ define( 'WP_FS__API_TIMEOUT', 30 );
+ }
+
// Set API address for local testing.
if ( ! WP_FS__IS_PRODUCTION_MODE ) {
if ( ! defined( 'FS_API__ADDRESS' ) ) {
--- a/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/includes/class-freemius.php
+++ b/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/includes/class-freemius.php
@@ -3946,7 +3946,7 @@
$this->_storage->connectivity_test = array(
'is_connected' => $is_connected,
- 'host' => $_SERVER['HTTP_HOST'],
+ 'host' => isset( $_SERVER['HTTP_HOST'] ) ? $_SERVER['HTTP_HOST'] : '',
'server_ip' => WP_FS__REMOTE_ADDR,
'is_active' => $is_active,
'timestamp' => WP_FS__SCRIPT_START_TIME,
@@ -17653,6 +17653,31 @@
/**
* Install plugin with new user.
*
+ * You can use this method to sync activation with the Freemius WP SDK where the activation happened outside of the regular opt-in flow, for example if you're using an external licensing server with our api:
+ *
+ * https://docs.freemius.com/api/licenses/activate
+ *
+ * In that case you can call this method like following:
+ *
+ * ```
+ *
+ * my_fs()->install_with_new_user(
+ * $result['user_id'],
+ * $result['user_public_key'],
+ * $result['user_secret_key'],
+ * $result['is_marketing_allowed'],
+ * null,
+ * true,
+ * $result['install_id'],
+ * $result['install_public_key'],
+ * $result['install_secret_key'],
+ * false
+ * );
+ *
+ * ```
+ *
+ * Here `$result` represents the object returned by the API endpoint.
+ *
* @author Vova Feldman (@svovaf)
* @since 1.1.7.4
*
@@ -17670,7 +17695,7 @@
*
* @return string If redirect is `false`, returns the next page the user should be redirected to.
*/
- private function install_with_new_user(
+ public function install_with_new_user(
$user_id,
$user_public_key,
$user_secret_key,
--- a/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/includes/entities/class-fs-payment.php
+++ b/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/includes/entities/class-fs-payment.php
@@ -80,11 +80,22 @@
*/
public $source = 0;
+ /**
+ * Presentment payment information for customer-facing currency display.
+ *
+ * @var object|null
+ */
+ public $presentment;
+
#endregion Properties
const CURRENCY_USD = 'usd';
const CURRENCY_GBP = 'gbp';
const CURRENCY_EUR = 'eur';
+ const CURRENCY_ILS = 'ils';
+ const CURRENCY_CAD = 'cad';
+ const CURRENCY_AUD = 'aud';
+ const CURRENCY_PLN = 'pln';
/**
* @param object|bool $payment
@@ -120,6 +131,44 @@
}
/**
+ * @return bool
+ */
+ private function has_presentment()
+ {
+ return is_object( $this->presentment );
+ }
+
+ /**
+ * @return float
+ */
+ private function get_display_gross()
+ {
+ return $this->has_presentment() ?
+ (float) $this->presentment->gross :
+ (float) $this->gross;
+ }
+
+ /**
+ * @return float
+ */
+ private function get_display_vat()
+ {
+ return $this->has_presentment() ?
+ (float) $this->presentment->vat :
+ (float) $this->vat;
+ }
+
+ /**
+ * @return string
+ */
+ private function get_display_currency()
+ {
+ return $this->has_presentment() ?
+ $this->presentment->currency :
+ $this->currency;
+ }
+
+ /**
* Returns the gross in this format:
* `{symbol}{amount | 2 decimal digits} {currency | uppercase}`
*
@@ -132,12 +181,13 @@
*/
function formatted_gross()
{
- $price = $this->gross + $this->vat;
+ $price = $this->get_display_gross() + $this->get_display_vat();
+
return (
( $price < 0 ? '-' : '' ) .
$this->get_symbol() .
number_format( abs( $price ), 2, '.', ',' ) . ' ' .
- strtoupper( $this->currency )
+ strtoupper( $this->get_display_currency() )
);
}
@@ -161,9 +211,17 @@
self::CURRENCY_USD => '$',
self::CURRENCY_GBP => '£',
self::CURRENCY_EUR => '€',
+ self::CURRENCY_ILS => '₪',
+ self::CURRENCY_CAD => '$',
+ self::CURRENCY_AUD => '$',
+ self::CURRENCY_PLN => 'zł',
);
}
- return self::$CURRENCY_2_SYMBOL[ $this->currency ];
+ $currency = $this->get_display_currency();
+
+ return isset( self::$CURRENCY_2_SYMBOL[ $currency ] )
+ ? self::$CURRENCY_2_SYMBOL[ $currency ]
+ : strtoupper( $currency ) . ' ';
}
- }
No newline at end of file
+ }
--- a/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/includes/managers/class-fs-checkout-manager.php
+++ b/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/includes/managers/class-fs-checkout-manager.php
@@ -110,6 +110,15 @@
// If add-on isn't activated assume the premium version isn't installed.
$is_premium = false;
}
+
+ // Override the checkout context with the add-on's purchase details so the checkout flow is initialized for the selected add-on instead of the parent product.
+ $context_params['plugin_id'] = $plugin_id;
+
+ foreach ( array( 'plan_id', 'pricing_id', 'billing_cycle', 'is_trial' ) as $param ) {
+ if ( fs_request_has( $param ) ) {
+ $context_params[ $param ] = fs_request_get( $param );
+ }
+ }
}
// Get site context secure params.
@@ -187,7 +196,7 @@
// Allowlist only allowed query params.
$filtered_params = array_intersect_key($filtered_params, $this->_allowed_custom_params);
- return array_merge( $context_params, $filtered_params, $_GET, array(
+ return array_merge( $_GET, $context_params, $filtered_params, array(
// Current plugin version.
'plugin_version' => $fs->get_plugin_version(),
'sdk_version' => WP_FS__SDK_VERSION,
--- a/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/includes/managers/class-fs-contact-form-manager.php
+++ b/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/includes/managers/class-fs-contact-form-manager.php
@@ -77,8 +77,9 @@
$query_params = $this->get_query_params( $fs );
$query_params['is_standalone'] = 'true';
+ // Intentionally using add_query_arg( '', '' ) to preserve the legacy behavior of resolving the current admin URL.
$query_params['parent_url'] = admin_url( add_query_arg( '', '' ) );
return WP_FS__ADDRESS . '/contact/?' . http_build_query( $query_params );
}
- }
No newline at end of file
+ }
--- a/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/includes/sdk/FreemiusWordPress.php
+++ b/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/includes/sdk/FreemiusWordPress.php
@@ -408,7 +408,7 @@
$pWPRemoteArgs = array(
'method' => strtoupper( $pMethod ),
'connect_timeout' => 10,
- 'timeout' => 60,
+ 'timeout' => WP_FS__API_TIMEOUT,
'follow_redirects' => true,
'redirection' => 5,
'user-agent' => $user_agent,
--- a/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/start.php
+++ b/ajax-search-for-woocommerce/vendor/freemius/wordpress-sdk/start.php
@@ -15,7 +15,7 @@
*
* @var string
*/
- $this_sdk_version = '2.13.1';
+ $this_sdk_version = '2.13.4';
#region SDK Selection Logic --------------------------------------------------------------------