Skip to content

Commit 129c328

Browse files
committed
ver 7.0.4
1 parent 1cdf96d commit 129c328

4 files changed

Lines changed: 17 additions & 10 deletions

File tree

CHANGELOG.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
== Changelog ==
2+
= 7.0.4 - Jul 15, 2025 =
3+
- Improved compatibility with the Jetpack plugin to ensure storefront scripts load correctly when 'Defer Non-Essential JavaScript' is enabled.
4+
- Applied minor fixes and general improvements for better performance and stability.
5+
26
= 7.0.3 - Jun 24, 2025 =
37
- Internal improvements and minor fixes for Gutenberg ecommerce blocks.
48

ecwid-shopping-cart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Description: Ecwid by Lightspeed is a full-featured shopping cart. It can be easily integrated with any Wordpress blog and takes less than 5 minutes to set up.
66
Text Domain: ecwid-shopping-cart
77
Author: Ecwid Ecommerce
8-
Version: 7.0.3
8+
Version: 7.0.4
99
Author URI: https://go.lightspeedhq.com/ecwid-site
1010
License: GPLv2 or later
1111
*/

lib/ecwid_catalog_entry.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ protected function __construct() {
1212

1313
public function __get( $name ) {
1414

15-
if ( $name == 'link' ) {
15+
if ( $name === 'link' ) {
1616
return $this->get_link();
1717
}
1818

@@ -25,7 +25,7 @@ public function __get( $name ) {
2525

2626
public function __isset( $name ) {
2727

28-
if ( $name == 'link' ) {
28+
if ( $name === 'link' ) {
2929
$link = $this->get_link();
3030
return (bool) $link;
3131
}
@@ -73,7 +73,6 @@ public function get_link( $baseUrl = false ) {
7373

7474
public function get_seo_link( $baseUrl = '' ) {
7575
if ( $this->_data->id && isset( $this->_data->name ) ) {
76-
7776
if ( ! $baseUrl ) {
7877
if ( Ecwid_Store_Page::is_store_page() ) {
7978
$baseUrl = get_permalink();
@@ -93,11 +92,11 @@ public function get_seo_link( $baseUrl = '' ) {
9392
$url .= '/';
9493
}
9594

96-
if ( ! empty( $this->_data->url ) && preg_match( '!([^\/]+-[p|c][0-9]+)$!', $this->_data->url, $slug)) {
97-
$url .= $slug[1];
98-
} else {
99-
$url .= $this->_linkify($this->_data->name) . '-' . $this->_link_prefix . $this->_data->id;
100-
}
95+
if ( ! empty( $this->_data->url ) && preg_match( '!([^\/]+-[p|c][0-9]+)$!', $this->_data->url, $slug ) ) {
96+
$url .= $slug[1];
97+
} else {
98+
$url .= $this->_linkify( $this->_data->name ) . '-' . $this->_link_prefix . $this->_data->id;
99+
}
101100

102101
if ( ! empty( $query ) ) {
103102
$url .= '/?' . $query;

readme.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ License: GPLv2 or later
55
License URI: https://www.gnu.org/licenses/gpl-2.0.html
66
Requires at least: 4.4
77
Tested up to: 6.8
8-
Stable tag: 7.0.3
8+
Stable tag: 7.0.4
99

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

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

154154
== Changelog ==
155+
= 7.0.4 - Jul 15, 2025 =
156+
- Improved compatibility with the Jetpack plugin to ensure storefront scripts load correctly when 'Defer Non-Essential JavaScript' is enabled.
157+
- Applied minor fixes and general improvements for better performance and stability.
158+
155159
= 7.0.3 - Jun 24, 2025 =
156160
- Internal improvements and minor fixes for Gutenberg ecommerce blocks.
157161

0 commit comments

Comments
 (0)