Skip to content

Commit

Permalink
Merge pull request #326 from Ecwid/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
meteor-ec authored Feb 26, 2025
2 parents b6499c0 + b1573d2 commit 8d896c1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
== Changelog ==
= 6.12.30 - Feb 26, 2024 =
- Fixed an issue where some links in the storefront could return a "not found" status in some cases.

= 6.12.29 - Feb 21, 2024 =
- Fixed an issue where incorrect data was sometimes displayed on the storefront page. Please update your ecommerce plugin.

Expand Down
2 changes: 1 addition & 1 deletion ecwid-shopping-cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Description: Ecwid by Lightspeed is a free full-featured shopping cart. It can be easily integrated with any Wordpress blog and takes less than 5 minutes to set up.
Text Domain: ecwid-shopping-cart
Author: Ecwid Ecommerce
Version: 6.12.29
Version: 6.12.30
Author URI: https://ecwid.to/ecwid-site
License: GPLv2 or later
*/
Expand Down
8 changes: 5 additions & 3 deletions includes/class-ecwid-static-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ protected static function maybe_fetch_data() {
$query_params['clean_urls'] = 'false';
}

$query_params['base_url'] = get_permalink();

if ( array_key_exists( 'offset', $_GET ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended
$query_params['offset'] = intval( $_GET['offset'] ); //phpcs:ignore WordPress.Security.NonceVerification.Recommended
}
Expand Down Expand Up @@ -145,6 +143,8 @@ protected static function maybe_fetch_data() {
}

if ( ! ecwid_is_demo_store() ) {
$query_params['baseUrl'] = get_permalink();

$query_params['getStaticContent'] = 'true';
$query_params['slugsWithoutIds'] = 'false';
$query_params['slug'] = self::get_current_storefront_page_slug();
Expand All @@ -155,6 +155,8 @@ protected static function maybe_fetch_data() {
$query_params['storeRootPage'] = 'false';
}
} else {
$query_params['base_url'] = get_permalink();

if ( ! empty( $query_params['default_category_id'] ) ) {
$endpoint_params = array(
'mode' => 'category',
Expand Down Expand Up @@ -259,7 +261,7 @@ protected static function get_static_snapshot( $endpoint_params, $query_params,
if ( ! empty( $static_content->htmlCode ) ) {
$pattern = '/<img(.*?)>/is';

$static_content->htmlCode = preg_replace( $pattern, '<img $1 decoding="async" loading="lazy">', $static_content->htmlCode );
$static_content->htmlCode = preg_replace( $pattern, '<img $1 decoding="async">', $static_content->htmlCode );
}

EcwidPlatform::encode_fields_with_emoji(
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 4.4
Tested up to: 6.7
Stable tag: 6.12.29
Stable tag: 6.12.30

Powerful, easy to use ecommerce shopping cart for WordPress. Sell on Facebook and Instagram. iPhone & Android apps. Superb support. Free plan available.

Expand Down Expand Up @@ -153,6 +153,9 @@ You can use Ecwid’s built-in import tools to copy your store products from any
* [Ecwid Help Center](http://help.ecwid.com "Ecwid Help")

== Changelog ==
= 6.12.30 - Feb 26, 2024 =
- Fixed an issue where some links in the storefront could return a "not found" status in some cases.

= 6.12.29 - Feb 21, 2024 =
- Fixed an issue where incorrect data was sometimes displayed on the storefront page. Please update your ecommerce plugin.

Expand Down

0 comments on commit 8d896c1

Please sign in to comment.