Plugin Directory

Changeset 3241777


Ignore:
Timestamp:
02/17/2025 10:01:49 AM (13 months ago)
Author:
Ecwid
Message:

Update to version 6.12.28 from GitHub

Location:
ecwid-shopping-cart
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ecwid-shopping-cart/tags/6.12.28/ecwid-shopping-cart.php

    r3239265 r3241777  
    66Text Domain: ecwid-shopping-cart
    77Author: Ecwid Ecommerce
    8 Version: 6.12.27
     8Version: 6.12.28
    99Author URI: https://ecwid.to/ecwid-site
    1010License: GPLv2 or later
  • ecwid-shopping-cart/tags/6.12.28/includes/class-ecwid-popup-deactivate.php

    r2917250 r3241777  
    99    const OPTION_DISABLE_POPUP = 'ecwid_disable_deactivate_popup';
    1010
     11    const HANDLE_SLUG = 'ecwid-popup-deactivate';
     12    const NONCE_SLUG = 'ecwid-popup-deactivate';
     13
    1114    public function __construct() {
    1215        add_action( 'wp_ajax_ecwid_deactivate_feedback', array( $this, 'ajax_deactivate_feedback' ) );
     
    1518    public function enqueue_scripts() {
    1619        parent::enqueue_scripts();
    17         wp_enqueue_script( 'ecwid-popup-deactivate', ECWID_PLUGIN_URL . '/js/popup-deactivate.js', array( 'jquery' ), get_option( 'ecwid_plugin_version' ) );
    18         wp_enqueue_style( 'ecwid-popup-deactivate', ECWID_PLUGIN_URL . '/css/popup-deactivate.css', array(), get_option( 'ecwid_plugin_version' ) );
     20        wp_enqueue_script( self::HANDLE_SLUG, ECWID_PLUGIN_URL . '/js/popup-deactivate.js', array( 'jquery' ), get_option( 'ecwid_plugin_version' ) );
     21        wp_enqueue_style( self::HANDLE_SLUG, ECWID_PLUGIN_URL . '/css/popup-deactivate.css', array(), get_option( 'ecwid_plugin_version' ) );
     22
     23        wp_localize_script(
     24            self::HANDLE_SLUG,
     25            'EcwidPopupDeactivate',
     26            array(
     27                '_ajax_nonce' => wp_create_nonce( self::NONCE_SLUG ),
     28            )
     29        );
    1930    }
    2031
    2132    public function ajax_deactivate_feedback() {
     33        if ( ! check_ajax_referer( self::NONCE_SLUG ) ) {
     34            die();
     35        }
     36
    2237        if ( ! current_user_can( 'manage_options' ) ) {
    23             header( '403 Access Denied' );
    24 
    2538            die();
    2639        }
  • ecwid-shopping-cart/tags/6.12.28/includes/class-ecwid-static-page.php

    r3239265 r3241777  
    150150        if ( self::is_need_to_use_new_endpoint() ) {
    151151            $query_params['getStaticContent'] = 'true';
     152            $query_params['slugsWithoutIds'] = 'false';
    152153            $query_params['slug']             = self::get_current_storefront_page_slug();
    153154
     
    468469        }
    469470
    470         if ( get_option( self::OPTION_NEW_IS_ENABLED, self::OPTION_VALUE_AUTO ) === '' && get_ecwid_store_id() % 4 === 0 ) {
     471        if ( get_option( self::OPTION_NEW_IS_ENABLED, self::OPTION_VALUE_AUTO ) === '' && get_ecwid_store_id() % 2 === 0 ) {
    471472            return true;
    472473        }
  • ecwid-shopping-cart/tags/6.12.28/js/popup-deactivate.js

    r3183692 r3241777  
    3535                action: 'ecwid_deactivate_feedback',
    3636                reason: feedback.reason,
    37                 message: feedback.message
     37                message: feedback.message,
     38                _ajax_nonce: EcwidPopupDeactivate._ajax_nonce
    3839            },
    3940            complete: function () {
  • ecwid-shopping-cart/tags/6.12.28/readme.txt

    r3239265 r3241777  
    66Requires at least: 4.4
    77Tested up to: 6.7
    8 Stable tag: 6.12.27
     8Stable tag: 6.12.28
    99
    1010Powerful, easy to use ecommerce shopping cart for WordPress. Sell on Facebook and Instagram. iPhone & Android apps. Superb support. Free plan available.
     
    154154
    155155== Changelog ==
     156= 6.12.28 - Feb 17, 2024 =
     157- In some cases, incorrect URLs could be generated in the storefront. We have fixed this issue.
     158- Plugin code improvements for better security and stability.
     159
    156160= 6.12.27 - Feb 12, 2024 =
    157161- Fixed an issue in the admin area where the product popup would not work on pages with a custom type.
  • ecwid-shopping-cart/trunk/ecwid-shopping-cart.php

    r3239265 r3241777  
    66Text Domain: ecwid-shopping-cart
    77Author: Ecwid Ecommerce
    8 Version: 6.12.27
     8Version: 6.12.28
    99Author URI: https://ecwid.to/ecwid-site
    1010License: GPLv2 or later
  • ecwid-shopping-cart/trunk/includes/class-ecwid-popup-deactivate.php

    r2917250 r3241777  
    99    const OPTION_DISABLE_POPUP = 'ecwid_disable_deactivate_popup';
    1010
     11    const HANDLE_SLUG = 'ecwid-popup-deactivate';
     12    const NONCE_SLUG = 'ecwid-popup-deactivate';
     13
    1114    public function __construct() {
    1215        add_action( 'wp_ajax_ecwid_deactivate_feedback', array( $this, 'ajax_deactivate_feedback' ) );
     
    1518    public function enqueue_scripts() {
    1619        parent::enqueue_scripts();
    17         wp_enqueue_script( 'ecwid-popup-deactivate', ECWID_PLUGIN_URL . '/js/popup-deactivate.js', array( 'jquery' ), get_option( 'ecwid_plugin_version' ) );
    18         wp_enqueue_style( 'ecwid-popup-deactivate', ECWID_PLUGIN_URL . '/css/popup-deactivate.css', array(), get_option( 'ecwid_plugin_version' ) );
     20        wp_enqueue_script( self::HANDLE_SLUG, ECWID_PLUGIN_URL . '/js/popup-deactivate.js', array( 'jquery' ), get_option( 'ecwid_plugin_version' ) );
     21        wp_enqueue_style( self::HANDLE_SLUG, ECWID_PLUGIN_URL . '/css/popup-deactivate.css', array(), get_option( 'ecwid_plugin_version' ) );
     22
     23        wp_localize_script(
     24            self::HANDLE_SLUG,
     25            'EcwidPopupDeactivate',
     26            array(
     27                '_ajax_nonce' => wp_create_nonce( self::NONCE_SLUG ),
     28            )
     29        );
    1930    }
    2031
    2132    public function ajax_deactivate_feedback() {
     33        if ( ! check_ajax_referer( self::NONCE_SLUG ) ) {
     34            die();
     35        }
     36
    2237        if ( ! current_user_can( 'manage_options' ) ) {
    23             header( '403 Access Denied' );
    24 
    2538            die();
    2639        }
  • ecwid-shopping-cart/trunk/includes/class-ecwid-static-page.php

    r3239265 r3241777  
    150150        if ( self::is_need_to_use_new_endpoint() ) {
    151151            $query_params['getStaticContent'] = 'true';
     152            $query_params['slugsWithoutIds'] = 'false';
    152153            $query_params['slug']             = self::get_current_storefront_page_slug();
    153154
     
    468469        }
    469470
    470         if ( get_option( self::OPTION_NEW_IS_ENABLED, self::OPTION_VALUE_AUTO ) === '' && get_ecwid_store_id() % 4 === 0 ) {
     471        if ( get_option( self::OPTION_NEW_IS_ENABLED, self::OPTION_VALUE_AUTO ) === '' && get_ecwid_store_id() % 2 === 0 ) {
    471472            return true;
    472473        }
  • ecwid-shopping-cart/trunk/js/popup-deactivate.js

    r3183692 r3241777  
    3535                action: 'ecwid_deactivate_feedback',
    3636                reason: feedback.reason,
    37                 message: feedback.message
     37                message: feedback.message,
     38                _ajax_nonce: EcwidPopupDeactivate._ajax_nonce
    3839            },
    3940            complete: function () {
  • ecwid-shopping-cart/trunk/readme.txt

    r3239265 r3241777  
    66Requires at least: 4.4
    77Tested up to: 6.7
    8 Stable tag: 6.12.27
     8Stable tag: 6.12.28
    99
    1010Powerful, easy to use ecommerce shopping cart for WordPress. Sell on Facebook and Instagram. iPhone & Android apps. Superb support. Free plan available.
     
    154154
    155155== Changelog ==
     156= 6.12.28 - Feb 17, 2024 =
     157- In some cases, incorrect URLs could be generated in the storefront. We have fixed this issue.
     158- Plugin code improvements for better security and stability.
     159
    156160= 6.12.27 - Feb 12, 2024 =
    157161- Fixed an issue in the admin area where the product popup would not work on pages with a custom type.
Note: See TracChangeset for help on using the changeset viewer.