Ecwid Ecommerce Shopping Cart - Version 6.10.19

Version Description

  • Mar 09, 2022 =
  • Minor fixes and improvements.
Download this release

Release Info

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

Code changes from version 6.10.18 to 6.10.19

ecwid-shopping-cart.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.ecwid.com?partner=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 Ecommerce
8
- Version: 6.10.18
9
  Author URI: https://ecwid.to/ecwid-site
10
  License: GPLv2 or later
11
  */
@@ -1956,14 +1956,12 @@ function ecwid_params_do_page() {
1956
  add_action('admin_post_' . ecwid_get_update_params_action(), 'ecwid_update_plugin_params');
1957
  function ecwid_update_plugin_params()
1958
  {
1959
- if ( !current_user_can('administrator') ) {
1960
- header('403 Access Denied');
1961
- die();
1962
  }
1963
 
1964
  if ( isset($_POST['wp-nonce']) && !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST['wp-nonce'])), ecwid_get_update_params_action()) ) {
1965
- header('403 Access Denied');
1966
- die();
1967
  }
1968
 
1969
  $options = ecwid_get_update_params_options();
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 Ecommerce
8
+ Version: 6.10.19
9
  Author URI: https://ecwid.to/ecwid-site
10
  License: GPLv2 or later
11
  */
1956
  add_action('admin_post_' . ecwid_get_update_params_action(), 'ecwid_update_plugin_params');
1957
  function ecwid_update_plugin_params()
1958
  {
1959
+ if ( !current_user_can('manage_options') ) {
1960
+ wp_die( __( 'Sorry, you are not allowed to access this page.' ) );
 
1961
  }
1962
 
1963
  if ( isset($_POST['wp-nonce']) && !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST['wp-nonce'])), ecwid_get_update_params_action()) ) {
1964
+ wp_die( __( 'Sorry, you are not allowed to access this page.' ) );
 
1965
  }
1966
 
1967
  $options = ecwid_get_update_params_options();
includes/class-ecwid-admin-main-page.php CHANGED
@@ -205,6 +205,15 @@ class Ecwid_Admin_Main_Page
205
  require_once ECWID_ADMIN_TEMPLATES_DIR . '/welcome-page.php';
206
  }
207
 
 
 
 
 
 
 
 
 
 
208
  public function get_welcome_page_note( $text, $additional_classes = '' ) {
209
  return sprintf( '<div class="ec-note %s">%s</div>', $additional_classes, $text );
210
  }
205
  require_once ECWID_ADMIN_TEMPLATES_DIR . '/welcome-page.php';
206
  }
207
 
208
+ protected function _is_registration_blocked_locale()
209
+ {
210
+ $locale = ecwid_get_current_user_locale();
211
+ if ( strpos( $locale, 'ru' ) === 0 ) {
212
+ return true;
213
+ }
214
+ return false;
215
+ }
216
+
217
  public function get_welcome_page_note( $text, $additional_classes = '' ) {
218
  return sprintf( '<div class="ec-note %s">%s</div>', $additional_classes, $text );
219
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Ecwid
3
  Tags: ecommerce, e-commerce, storefront, shopping cart, online store
4
  Requires at least: 4.4
5
  Tested up to: 5.9
6
- Stable tag: 6.10.18
7
 
8
  Powerful, easy to use ecommerce shopping cart for WordPress. Sell on Facebook and Instagram. iPhone & Android apps. Superb support. Free plan available.
9
 
@@ -152,7 +152,10 @@ You can use Ecwid’s built-in import tools to copy your store products from any
152
 
153
  == Changelog ==
154
 
155
- = 6.10.18 - Jan 25, 2021 =
 
 
 
156
  - **WordPress 5.9 compatibility.** The new WordPress version will be released soon. The Ecwid ecommerce shopping cart plugin is ready for the new release — everything works well in your WordPress admin and storefront pages. Feel free to upgrade your site to WordPress 5.9.
157
  - **Compatibility with PHP 8.** WordPress 5.9 also includes improvements to support PHP 8. Ecwid ecommerce shopping cart plugin should work well with the latest PHP version.
158
 
3
  Tags: ecommerce, e-commerce, storefront, shopping cart, online store
4
  Requires at least: 4.4
5
  Tested up to: 5.9
6
+ Stable tag: 6.10.19
7
 
8
  Powerful, easy to use ecommerce shopping cart for WordPress. Sell on Facebook and Instagram. iPhone & Android apps. Superb support. Free plan available.
9
 
152
 
153
  == Changelog ==
154
 
155
+ = 6.10.19 - Mar 09, 2022 =
156
+ - Minor fixes and improvements.
157
+
158
+ = 6.10.18 - Jan 25, 2022 =
159
  - **WordPress 5.9 compatibility.** The new WordPress version will be released soon. The Ecwid ecommerce shopping cart plugin is ready for the new release — everything works well in your WordPress admin and storefront pages. Feel free to upgrade your site to WordPress 5.9.
160
  - **Compatibility with PHP 8.** WordPress 5.9 also includes improvements to support PHP 8. Ecwid ecommerce shopping cart plugin should work well with the latest PHP version.
161
 
templates/admin/legacy-connect.tpl.php CHANGED
@@ -35,9 +35,13 @@
35
  <?php printf( __('Create a new %s account which you will use to manage your store and inventory. The registration is free.', 'ecwid-shopping-cart'), Ecwid_Config::get_brand() ); ?>
36
  </div>
37
  <div class="ecwid-account-buttons">
 
 
38
  <a class="pure-button pure-button-secondary" target="_blank" href="<?php echo ecwid_get_register_link(); ?>">
39
  <?php _e('Create new account', 'ecwid-shopping-cart'); ?>
40
  </a>
 
 
41
  <a class="pure-button pure-button-secondary" target="_blank" href="https://<?php echo Ecwid_Config::get_cpanel_domain(); ?>">
42
  <?php _e('I already have an account, sign in', 'ecwid-shopping-cart'); ?>
43
  </a>
35
  <?php printf( __('Create a new %s account which you will use to manage your store and inventory. The registration is free.', 'ecwid-shopping-cart'), Ecwid_Config::get_brand() ); ?>
36
  </div>
37
  <div class="ecwid-account-buttons">
38
+
39
+ <?php if(!$this->_is_registration_blocked_locale()) {?>
40
  <a class="pure-button pure-button-secondary" target="_blank" href="<?php echo ecwid_get_register_link(); ?>">
41
  <?php _e('Create new account', 'ecwid-shopping-cart'); ?>
42
  </a>
43
+ <?php } ?>
44
+
45
  <a class="pure-button pure-button-secondary" target="_blank" href="https://<?php echo Ecwid_Config::get_cpanel_domain(); ?>">
46
  <?php _e('I already have an account, sign in', 'ecwid-shopping-cart'); ?>
47
  </a>
templates/admin/welcome-connect.php CHANGED
@@ -4,7 +4,8 @@
4
  <button type="submit" class="btn btn--large btn--orange"><?php _e( 'Connect Your Store', 'ecwid-shopping-cart' ); ?></button>
5
  </form>
6
  </div>
7
- <?php if ( !Ecwid_Config::is_no_reg_wl() ) { ?>
 
8
  <a target="_blank" href="<?php echo esc_attr(ecwid_get_register_link()); ?>"><?php _e( 'Create store', 'ecwid-shopping-cart' ); ?>&nbsp;&rsaquo;</a>
9
  <?php } ?>
10
  </div>
4
  <button type="submit" class="btn btn--large btn--orange"><?php _e( 'Connect Your Store', 'ecwid-shopping-cart' ); ?></button>
5
  </form>
6
  </div>
7
+ <?php
8
+ if ( !Ecwid_Config::is_no_reg_wl() && !$this->_is_registration_blocked_locale() ) { ?>
9
  <a target="_blank" href="<?php echo esc_attr(ecwid_get_register_link()); ?>"><?php _e( 'Create store', 'ecwid-shopping-cart' ); ?>&nbsp;&rsaquo;</a>
10
  <?php } ?>
11
  </div>
templates/admin/welcome-create.php CHANGED
@@ -1,10 +1,16 @@
1
  <div class="ec-form">
 
2
  <div class="ec-button">
3
-
4
  <button type="button" class="ec-create-store-button btn btn--large btn--orange"><?php _e( 'Create Store', 'ecwid-shopping-cart' ); ?></button>
5
-
6
  </div>
7
  <a href="<?php echo $connect_url; ?>" class="ec-connect-store"><?php _e( 'Connect your store', 'ecwid-shopping-cart' ); ?>&nbsp;&rsaquo;</a>
 
 
 
 
 
 
 
8
  </div>
9
 
10
  <div class="ec-note ec-create-store-success-note">
1
  <div class="ec-form">
2
+ <?php if(!$this->_is_registration_blocked_locale()) {?>
3
  <div class="ec-button">
 
4
  <button type="button" class="ec-create-store-button btn btn--large btn--orange"><?php _e( 'Create Store', 'ecwid-shopping-cart' ); ?></button>
 
5
  </div>
6
  <a href="<?php echo $connect_url; ?>" class="ec-connect-store"><?php _e( 'Connect your store', 'ecwid-shopping-cart' ); ?>&nbsp;&rsaquo;</a>
7
+ <?php } else {?>
8
+ <div class="ec-button">
9
+ <form action="<?php echo $connect_url; ?>" method="post">
10
+ <button type="submit" class="btn btn--large btn--orange"><?php _e( 'Connect your store', 'ecwid-shopping-cart' ); ?></button>
11
+ </form>
12
+ </div>
13
+ <?php }?>
14
  </div>
15
 
16
  <div class="ec-note ec-create-store-success-note">
templates/admin/welcome-page.php CHANGED
@@ -25,7 +25,7 @@
25
 
26
  <?php } ?>
27
 
28
- <?php if( $state == 'no_oauth' ) { ?>
29
 
30
  <div class="ec-subheading">
31
  <p>
25
 
26
  <?php } ?>
27
 
28
+ <?php if( $state == 'no_oauth' && !$this->_is_registration_blocked_locale() ) { ?>
29
 
30
  <div class="ec-subheading">
31
  <p>