Changeset 3037923
- Timestamp:
- 02/19/2024 12:38:01 PM (2 years ago)
- Location:
- posti-warehouse
- Files:
-
- 10 edited
- 1 copied
-
tags/2.4.7 (copied) (copied from posti-warehouse/trunk)
-
tags/2.4.7/README.md (modified) (1 diff)
-
tags/2.4.7/classes/class-api.php (modified) (1 diff)
-
tags/2.4.7/classes/class-product.php (modified) (4 diffs)
-
tags/2.4.7/posti-warehouse.php (modified) (1 diff)
-
tags/2.4.7/readme.txt (modified) (1 diff)
-
trunk/README.md (modified) (1 diff)
-
trunk/classes/class-api.php (modified) (1 diff)
-
trunk/classes/class-product.php (modified) (4 diffs)
-
trunk/posti-warehouse.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
posti-warehouse/tags/2.4.7/README.md
r3037801 r3037923 97 97 98 98 ## Version history 99 - 2.4.7: Changed product handling to strip HTML tags when sending product to warehouse. 99 100 - 2.4.6: 100 101 - Bug fix: Finnish translation MO file was corrupted. -
posti-warehouse/tags/2.4.7/classes/class-api.php
r3037801 r3037923 14 14 private $last_status = false; 15 15 private $token_option = 'posti_wh_api_auth'; 16 private $user_agent = 'woo-wh-client/2.4. 6';16 private $user_agent = 'woo-wh-client/2.4.7'; 17 17 18 18 public function __construct(Posti_Warehouse_Logger $logger, array &$options) { -
posti-warehouse/tags/2.4.7/classes/class-product.php
r3036709 r3037923 473 473 $options['properties'][] = [ 474 474 'name' => (string) str_ireplace('attribute_', '', $attr_id), 475 'value' => (string) $attr,475 'value' => (string) self::strip_html($attr), 476 476 'specifier' => '', 477 477 'description' => '' … … 485 485 'descriptions' => array( 486 486 'en' => array( 487 'name' => $variable_name,488 'description' => $_product->get_description(),487 'name' => self::strip_html($variable_name), 488 'description' => self::strip_html($_product->get_description()), 489 489 'specifications' => $specifications, 490 490 ) … … 559 559 'descriptions' => array( 560 560 'en' => array( 561 'name' => $_product->get_name(),562 'description' => $_product->get_description()561 'name' => self::strip_html($_product->get_name()), 562 'description' => self::strip_html($_product->get_description()) 563 563 ) 564 564 ), … … 935 935 return !empty($warehouse) && 'Catalog' !== $this->get_stock_type($warehouses, $warehouse); 936 936 } 937 938 private static function strip_html($text) { 939 return strip_tags(str_replace('<br>', "\n", $text)); 940 } 937 941 } -
posti-warehouse/tags/2.4.7/posti-warehouse.php
r3037801 r3037923 3 3 /** 4 4 * Plugin Name: Posti Warehouse 5 * Version: 2.4. 65 * Version: 2.4.7 6 6 * Description: Provides integration to Posti warehouse and dropshipping services. 7 7 * Author: Posti -
posti-warehouse/tags/2.4.7/readme.txt
r3037801 r3037923 5 5 Tested up to: 6.4.3 6 6 Requires PHP: 7.1 7 Stable tag: 2.4. 67 Stable tag: 2.4.7 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html -
posti-warehouse/trunk/README.md
r3037801 r3037923 97 97 98 98 ## Version history 99 - 2.4.7: Changed product handling to strip HTML tags when sending product to warehouse. 99 100 - 2.4.6: 100 101 - Bug fix: Finnish translation MO file was corrupted. -
posti-warehouse/trunk/classes/class-api.php
r3037801 r3037923 14 14 private $last_status = false; 15 15 private $token_option = 'posti_wh_api_auth'; 16 private $user_agent = 'woo-wh-client/2.4. 6';16 private $user_agent = 'woo-wh-client/2.4.7'; 17 17 18 18 public function __construct(Posti_Warehouse_Logger $logger, array &$options) { -
posti-warehouse/trunk/classes/class-product.php
r3036709 r3037923 473 473 $options['properties'][] = [ 474 474 'name' => (string) str_ireplace('attribute_', '', $attr_id), 475 'value' => (string) $attr,475 'value' => (string) self::strip_html($attr), 476 476 'specifier' => '', 477 477 'description' => '' … … 485 485 'descriptions' => array( 486 486 'en' => array( 487 'name' => $variable_name,488 'description' => $_product->get_description(),487 'name' => self::strip_html($variable_name), 488 'description' => self::strip_html($_product->get_description()), 489 489 'specifications' => $specifications, 490 490 ) … … 559 559 'descriptions' => array( 560 560 'en' => array( 561 'name' => $_product->get_name(),562 'description' => $_product->get_description()561 'name' => self::strip_html($_product->get_name()), 562 'description' => self::strip_html($_product->get_description()) 563 563 ) 564 564 ), … … 935 935 return !empty($warehouse) && 'Catalog' !== $this->get_stock_type($warehouses, $warehouse); 936 936 } 937 938 private static function strip_html($text) { 939 return strip_tags(str_replace('<br>', "\n", $text)); 940 } 937 941 } -
posti-warehouse/trunk/posti-warehouse.php
r3037801 r3037923 3 3 /** 4 4 * Plugin Name: Posti Warehouse 5 * Version: 2.4. 65 * Version: 2.4.7 6 6 * Description: Provides integration to Posti warehouse and dropshipping services. 7 7 * Author: Posti -
posti-warehouse/trunk/readme.txt
r3037801 r3037923 5 5 Tested up to: 6.4.3 6 6 Requires PHP: 7.1 7 Stable tag: 2.4. 67 Stable tag: 2.4.7 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset
for help on using the changeset viewer.