Changeset 3131183
- Timestamp:
- 08/05/2024 04:40:55 PM (20 months ago)
- Location:
- cocart-get-cart-enhanced
- Files:
-
- 12 edited
- 1 copied
-
tags/4.0.4 (copied) (copied from cocart-get-cart-enhanced/trunk)
-
tags/4.0.4/cocart-get-cart-enhanced.php (modified) (1 diff)
-
tags/4.0.4/includes/class-cocart-get-cart-enhanced.php (modified) (1 diff)
-
tags/4.0.4/includes/filters/filter-v1.php (modified) (2 diffs)
-
tags/4.0.4/languages/cocart-get-cart-enhanced.pot (modified) (2 diffs)
-
tags/4.0.4/load-package.php (modified) (1 diff)
-
tags/4.0.4/readme.txt (modified) (1 diff)
-
trunk/cocart-get-cart-enhanced.php (modified) (1 diff)
-
trunk/includes/class-cocart-get-cart-enhanced.php (modified) (1 diff)
-
trunk/includes/filters/filter-v1.php (modified) (2 diffs)
-
trunk/languages/cocart-get-cart-enhanced.pot (modified) (2 diffs)
-
trunk/load-package.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cocart-get-cart-enhanced/tags/4.0.4/cocart-get-cart-enhanced.php
r3126364 r3131183 6 6 * Author: CoCart Headless, LLC 7 7 * Author URI: https://cocartapi.com 8 * Version: 4.0. 38 * Version: 4.0.4 9 9 * Text Domain: cocart-get-cart-enhanced 10 10 * Domain Path: /languages/ -
cocart-get-cart-enhanced/tags/4.0.4/includes/class-cocart-get-cart-enhanced.php
r3126364 r3131183 29 29 * @var string 30 30 */ 31 public static $version = '4.0. 3';31 public static $version = '4.0.4'; 32 32 33 33 /** -
cocart-get-cart-enhanced/tags/4.0.4/includes/filters/filter-v1.php
r3084216 r3131183 382 382 public static function get_cart_key() { 383 383 // Current user ID. 384 $cart_key = strval( get_current_user_id() ); 384 $current_user_id = strval( get_current_user_id() ); 385 386 if ( $current_user_id > 0 ) { 387 return $current_user_id; 388 } 389 390 // Customer ID used as the cart key by default. 391 $cart_key = WC()->session->get_customer_id(); 385 392 386 393 // Get cart cookie... if any. … … 393 400 394 401 // Check if we requested to load a specific cart. 395 if ( isset( $_REQUEST['cart_key'] ) || isset( $_REQUEST['id'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended396 $cart_key = isset( $_REQUEST['cart_key'] ) ? trim( esc_html( sanitize_key( wp_unslash( $_REQUEST['cart_key'] ) ) ) ) : trim( esc_html( sanitize_key( wp_unslash( $_REQUEST['id'] ) )) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended402 if ( ! empty( $_REQUEST['cart_key'] ) || ! empty( $_REQUEST['id'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended 403 $cart_key = isset( $_REQUEST['cart_key'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['cart_key'] ) ) : sanitize_text_field( wp_unslash( $_REQUEST['id'] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended 397 404 } 398 405 -
cocart-get-cart-enhanced/tags/4.0.4/languages/cocart-get-cart-enhanced.pot
r3126364 r3131183 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: CoCart - Cart API Enhanced 4.0. 3\n"5 "Project-Id-Version: CoCart - Cart API Enhanced 4.0.4\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://github.com/cocart-headless/cocart-get-cart-enhanced/issues\n" 8 "POT-Creation-Date: 2024-0 7-27 02:36:32+00:00\n"8 "POT-Creation-Date: 2024-08-05 16:29:54+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=utf-8\n" … … 47 47 msgstr "" 48 48 49 #: includes/filters/filter-v1.php:5 2949 #: includes/filters/filter-v1.php:536 50 50 msgid "Free shipping coupon" 51 51 msgstr "" 52 52 53 #: includes/filters/filter-v1.php:6 7653 #: includes/filters/filter-v1.php:683 54 54 msgid "An item which is no longer available was removed from your cart." 55 55 msgstr "" 56 56 57 #: includes/filters/filter-v1.php:6 8357 #: includes/filters/filter-v1.php:690 58 58 #. translators: %s: product name 59 59 msgid "There are too many "%s" in the cart. Only 1 can be purchased." 60 60 msgstr "" 61 61 62 #: includes/filters/filter-v1.php:7 1762 #: includes/filters/filter-v1.php:724 63 63 #. translators: %s: product name 64 64 msgid "Sorry, \"%s\" is not in stock and cannot be purchased." 65 65 msgstr "" 66 66 67 #: includes/filters/filter-v1.php:74 267 #: includes/filters/filter-v1.php:749 68 68 #. translators: 1: product name 2: quantity in stock 69 69 msgid "" -
cocart-get-cart-enhanced/tags/4.0.4/load-package.php
r3126364 r3131183 3 3 * This file is designed to be used to load as package NOT a WP plugin! 4 4 * 5 * @version 4.0. 35 * @version 4.0.4 6 6 * @package CoCart - Cart API Enhanced 7 7 */ -
cocart-get-cart-enhanced/tags/4.0.4/readme.txt
r3126364 r3131183 5 5 Requires PHP: 7.4 6 6 Tested up to: 6.6 7 Stable tag: 4.0. 37 Stable tag: 4.0.4 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html -
cocart-get-cart-enhanced/trunk/cocart-get-cart-enhanced.php
r3126364 r3131183 6 6 * Author: CoCart Headless, LLC 7 7 * Author URI: https://cocartapi.com 8 * Version: 4.0. 38 * Version: 4.0.4 9 9 * Text Domain: cocart-get-cart-enhanced 10 10 * Domain Path: /languages/ -
cocart-get-cart-enhanced/trunk/includes/class-cocart-get-cart-enhanced.php
r3126364 r3131183 29 29 * @var string 30 30 */ 31 public static $version = '4.0. 3';31 public static $version = '4.0.4'; 32 32 33 33 /** -
cocart-get-cart-enhanced/trunk/includes/filters/filter-v1.php
r3084216 r3131183 382 382 public static function get_cart_key() { 383 383 // Current user ID. 384 $cart_key = strval( get_current_user_id() ); 384 $current_user_id = strval( get_current_user_id() ); 385 386 if ( $current_user_id > 0 ) { 387 return $current_user_id; 388 } 389 390 // Customer ID used as the cart key by default. 391 $cart_key = WC()->session->get_customer_id(); 385 392 386 393 // Get cart cookie... if any. … … 393 400 394 401 // Check if we requested to load a specific cart. 395 if ( isset( $_REQUEST['cart_key'] ) || isset( $_REQUEST['id'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended396 $cart_key = isset( $_REQUEST['cart_key'] ) ? trim( esc_html( sanitize_key( wp_unslash( $_REQUEST['cart_key'] ) ) ) ) : trim( esc_html( sanitize_key( wp_unslash( $_REQUEST['id'] ) )) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended402 if ( ! empty( $_REQUEST['cart_key'] ) || ! empty( $_REQUEST['id'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended 403 $cart_key = isset( $_REQUEST['cart_key'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['cart_key'] ) ) : sanitize_text_field( wp_unslash( $_REQUEST['id'] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended 397 404 } 398 405 -
cocart-get-cart-enhanced/trunk/languages/cocart-get-cart-enhanced.pot
r3126364 r3131183 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: CoCart - Cart API Enhanced 4.0. 3\n"5 "Project-Id-Version: CoCart - Cart API Enhanced 4.0.4\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://github.com/cocart-headless/cocart-get-cart-enhanced/issues\n" 8 "POT-Creation-Date: 2024-0 7-27 02:36:32+00:00\n"8 "POT-Creation-Date: 2024-08-05 16:29:54+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=utf-8\n" … … 47 47 msgstr "" 48 48 49 #: includes/filters/filter-v1.php:5 2949 #: includes/filters/filter-v1.php:536 50 50 msgid "Free shipping coupon" 51 51 msgstr "" 52 52 53 #: includes/filters/filter-v1.php:6 7653 #: includes/filters/filter-v1.php:683 54 54 msgid "An item which is no longer available was removed from your cart." 55 55 msgstr "" 56 56 57 #: includes/filters/filter-v1.php:6 8357 #: includes/filters/filter-v1.php:690 58 58 #. translators: %s: product name 59 59 msgid "There are too many "%s" in the cart. Only 1 can be purchased." 60 60 msgstr "" 61 61 62 #: includes/filters/filter-v1.php:7 1762 #: includes/filters/filter-v1.php:724 63 63 #. translators: %s: product name 64 64 msgid "Sorry, \"%s\" is not in stock and cannot be purchased." 65 65 msgstr "" 66 66 67 #: includes/filters/filter-v1.php:74 267 #: includes/filters/filter-v1.php:749 68 68 #. translators: 1: product name 2: quantity in stock 69 69 msgid "" -
cocart-get-cart-enhanced/trunk/load-package.php
r3126364 r3131183 3 3 * This file is designed to be used to load as package NOT a WP plugin! 4 4 * 5 * @version 4.0. 35 * @version 4.0.4 6 6 * @package CoCart - Cart API Enhanced 7 7 */ -
cocart-get-cart-enhanced/trunk/readme.txt
r3126364 r3131183 5 5 Requires PHP: 7.4 6 6 Tested up to: 6.6 7 Stable tag: 4.0. 37 Stable tag: 4.0.4 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset
for help on using the changeset viewer.