Ecwid Ecommerce Shopping Cart - Version 4.7.1

Version Description

  • Fixed a few warning messages appearing on some sites with the new version of the plugin.
Download this release

Release Info

Developer Ecwid
Plugin Icon 128x128 Ecwid Ecommerce Shopping Cart
Version 4.7.1
Comparing to
See all releases

Code changes from version 4.7 to 4.7.1

ecwid-shopping-cart.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.ecwid.com?source=wporg
5
  Description: Ecwid 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.
6
  Text Domain: ecwid-shopping-cart
7
  Author: Ecwid Team
8
- Version: 4.7
9
  Author URI: http://www.ecwid.com?source=wporg
10
  */
11
 
@@ -467,10 +467,6 @@ function ecwid_check_version()
467
  do_action('ecwid_plugin_upgraded', array( 'old' => $stored_version, 'new' => $current_version ) );
468
  update_option('ecwid_plugin_version', $current_version);
469
 
470
- add_option('ecwid_chameleon_primary', '');
471
- add_option('ecwid_chameleon_background', '');
472
- add_option('ecwid_chameleon_links', '');
473
-
474
  add_option('ecwid_use_new_horizontal_categories', '');
475
  add_option('ecwid_use_new_search', '');
476
  }
@@ -1502,10 +1498,6 @@ EOT;
1502
 
1503
  add_option('ecwid_hide_appearance_menu', get_option('ecwid_store_id') == ECWID_DEMO_STORE_ID ? 'Y' : 'N', '', 'yes');
1504
 
1505
- add_option('ecwid_chameleon_primary', '');
1506
- add_option('ecwid_chameleon_background', '');
1507
- add_option('ecwid_chameleon_links', '');
1508
-
1509
  /* All new options should go to check_version thing */
1510
 
1511
  require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-nav-menus.php';
@@ -1647,10 +1639,20 @@ function ecwid_is_old_search_widget_used()
1647
  }
1648
 
1649
  $widgets = ecwid_get_store_shortcode_widgets();
1650
- if (in_array('search', $widgets)) {
1651
  return true;
1652
  }
1653
 
 
 
 
 
 
 
 
 
 
 
1654
  return false;
1655
  }
1656
 
@@ -1661,10 +1663,17 @@ function ecwid_is_old_cats_widget_used()
1661
  }
1662
 
1663
  $widgets = ecwid_get_store_shortcode_widgets();
1664
- if (in_array('categories', $widgets)) {
1665
  return true;
1666
  }
1667
 
 
 
 
 
 
 
 
1668
  return false;
1669
  }
1670
 
5
  Description: Ecwid 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.
6
  Text Domain: ecwid-shopping-cart
7
  Author: Ecwid Team
8
+ Version: 4.7.1
9
  Author URI: http://www.ecwid.com?source=wporg
10
  */
11
 
467
  do_action('ecwid_plugin_upgraded', array( 'old' => $stored_version, 'new' => $current_version ) );
468
  update_option('ecwid_plugin_version', $current_version);
469
 
 
 
 
 
470
  add_option('ecwid_use_new_horizontal_categories', '');
471
  add_option('ecwid_use_new_search', '');
472
  }
1498
 
1499
  add_option('ecwid_hide_appearance_menu', get_option('ecwid_store_id') == ECWID_DEMO_STORE_ID ? 'Y' : 'N', '', 'yes');
1500
 
 
 
 
 
1501
  /* All new options should go to check_version thing */
1502
 
1503
  require_once ECWID_PLUGIN_DIR . 'includes/class-ecwid-nav-menus.php';
1639
  }
1640
 
1641
  $widgets = ecwid_get_store_shortcode_widgets();
1642
+ if ($widgets && in_array('search', $widgets)) {
1643
  return true;
1644
  }
1645
 
1646
+ $post = get_post(ecwid_get_current_store_page_id());
1647
+ if ($post && !is_wp_error($post)) {
1648
+
1649
+ $shortcodes = ecwid_find_shortcodes( $post->post_content, 'ecwid_search' );
1650
+
1651
+ if ( $shortcodes ) {
1652
+ return TRUE;
1653
+ }
1654
+ }
1655
+
1656
  return false;
1657
  }
1658
 
1663
  }
1664
 
1665
  $widgets = ecwid_get_store_shortcode_widgets();
1666
+ if ($widgets && in_array('categories', $widgets)) {
1667
  return true;
1668
  }
1669
 
1670
+ $post = get_post(ecwid_get_current_store_page_id());
1671
+ if ($post && !is_wp_error($post)) {
1672
+ $shortcodes = ecwid_find_shortcodes( $post->post_content, 'ecwid_categories');
1673
+
1674
+ if ($shortcodes) return true;
1675
+ }
1676
+
1677
  return false;
1678
  }
1679
 
includes/class-ecwid-message-manager.php CHANGED
@@ -323,7 +323,7 @@ TXT
323
  return ecwid_is_old_cats_widget_used() || ecwid_is_old_search_widget_used();
324
 
325
  case "install_ecwid_theme":
326
- return false;
327
  $install_date = ecwid_get_wp_install_date();
328
  $theme = ecwid_get_theme_identification();
329
 
@@ -357,4 +357,4 @@ TXT
357
  }
358
  }
359
 
360
- }
323
  return ecwid_is_old_cats_widget_used() || ecwid_is_old_search_widget_used();
324
 
325
  case "install_ecwid_theme":
326
+ return false;
327
  $install_date = ecwid_get_wp_install_date();
328
  $theme = ecwid_get_theme_identification();
329
 
357
  }
358
  }
359
 
360
+ }
includes/shortcodes/class-ecwid-shortcode-productbrowser.php CHANGED
@@ -166,4 +166,4 @@ HTML;
166
 
167
  return $ecwid_default_category_id;
168
  }
169
- }
166
 
167
  return $ecwid_default_category_id;
168
  }
169
+ }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: ecwid
3
  Tags: ecommerce, downloadable products, Facebook ecommerce, online store, paypal, product catalog, shop, shopping cart, store
4
  Requires at least: 3.5
5
  Tested up to: 4.6
6
- Stable tag: 4.7
7
 
8
  Powerful, easy to use ecommerce shopping cart. Bank level PCI DSS Level 1 security. iPhone & Android apps. Superb support. Free plan available.
9
 
@@ -149,6 +149,9 @@ You can use Ecwid’s built-in import tools to copy your store products from any
149
  * [Ecwid eCommerce Forums](https://www.ecwid.com/forums/forumdisplay.php?f=19)
150
 
151
  == Changelog ==
 
 
 
152
  = 4.7 =
153
  - Fixed a layout issue in the floating cart widget in the "Mobius" WordPress theme.
154
  - Fixed a few issues with the Single Sign On functionality in the plugin.
3
  Tags: ecommerce, downloadable products, Facebook ecommerce, online store, paypal, product catalog, shop, shopping cart, store
4
  Requires at least: 3.5
5
  Tested up to: 4.6
6
+ Stable tag: 4.7.1
7
 
8
  Powerful, easy to use ecommerce shopping cart. Bank level PCI DSS Level 1 security. iPhone & Android apps. Superb support. Free plan available.
9
 
149
  * [Ecwid eCommerce Forums](https://www.ecwid.com/forums/forumdisplay.php?f=19)
150
 
151
  == Changelog ==
152
+ = 4.7.1 =
153
+ - Fixed a few warning messages appearing on some sites with the new version of the plugin.
154
+
155
  = 4.7 =
156
  - Fixed a layout issue in the floating cart widget in the "Mobius" WordPress theme.
157
  - Fixed a few issues with the Single Sign On functionality in the plugin.