Plugin Directory

Changeset 3037923


Ignore:
Timestamp:
02/19/2024 12:38:01 PM (2 years ago)
Author:
postiwp
Message:

Update to version 2.4.7 from GitHub

Location:
posti-warehouse
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • posti-warehouse/tags/2.4.7/README.md

    r3037801 r3037923  
    9797
    9898## Version history
     99- 2.4.7: Changed product handling to strip HTML tags when sending product to warehouse.
    99100- 2.4.6:
    100101    - Bug fix: Finnish translation MO file was corrupted.
  • posti-warehouse/tags/2.4.7/classes/class-api.php

    r3037801 r3037923  
    1414    private $last_status = false;
    1515    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';
    1717
    1818    public function __construct(Posti_Warehouse_Logger $logger, array &$options) {
  • posti-warehouse/tags/2.4.7/classes/class-product.php

    r3036709 r3037923  
    473473                $options['properties'][] = [
    474474                    'name' => (string) str_ireplace('attribute_', '', $attr_id),
    475                     'value' => (string) $attr,
     475                    'value' => (string) self::strip_html($attr),
    476476                    'specifier' => '',
    477477                    'description' => ''
     
    485485                'descriptions' => array(
    486486                    '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()),
    489489                        'specifications' => $specifications,
    490490                    )
     
    559559            'descriptions' => array(
    560560                '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())
    563563                )
    564564            ),
     
    935935        return !empty($warehouse) && 'Catalog' !== $this->get_stock_type($warehouses, $warehouse);
    936936    }
     937
     938    private static function strip_html($text) {
     939        return strip_tags(str_replace('<br>', "\n", $text));
     940    }
    937941}
  • posti-warehouse/tags/2.4.7/posti-warehouse.php

    r3037801 r3037923  
    33/**
    44 * Plugin Name: Posti Warehouse
    5  * Version: 2.4.6
     5 * Version: 2.4.7
    66 * Description: Provides integration to Posti warehouse and dropshipping services.
    77 * Author: Posti
  • posti-warehouse/tags/2.4.7/readme.txt

    r3037801 r3037923  
    55Tested up to: 6.4.3
    66Requires PHP: 7.1
    7 Stable tag: 2.4.6
     7Stable tag: 2.4.7
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
  • posti-warehouse/trunk/README.md

    r3037801 r3037923  
    9797
    9898## Version history
     99- 2.4.7: Changed product handling to strip HTML tags when sending product to warehouse.
    99100- 2.4.6:
    100101    - Bug fix: Finnish translation MO file was corrupted.
  • posti-warehouse/trunk/classes/class-api.php

    r3037801 r3037923  
    1414    private $last_status = false;
    1515    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';
    1717
    1818    public function __construct(Posti_Warehouse_Logger $logger, array &$options) {
  • posti-warehouse/trunk/classes/class-product.php

    r3036709 r3037923  
    473473                $options['properties'][] = [
    474474                    'name' => (string) str_ireplace('attribute_', '', $attr_id),
    475                     'value' => (string) $attr,
     475                    'value' => (string) self::strip_html($attr),
    476476                    'specifier' => '',
    477477                    'description' => ''
     
    485485                'descriptions' => array(
    486486                    '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()),
    489489                        'specifications' => $specifications,
    490490                    )
     
    559559            'descriptions' => array(
    560560                '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())
    563563                )
    564564            ),
     
    935935        return !empty($warehouse) && 'Catalog' !== $this->get_stock_type($warehouses, $warehouse);
    936936    }
     937
     938    private static function strip_html($text) {
     939        return strip_tags(str_replace('<br>', "\n", $text));
     940    }
    937941}
  • posti-warehouse/trunk/posti-warehouse.php

    r3037801 r3037923  
    33/**
    44 * Plugin Name: Posti Warehouse
    5  * Version: 2.4.6
     5 * Version: 2.4.7
    66 * Description: Provides integration to Posti warehouse and dropshipping services.
    77 * Author: Posti
  • posti-warehouse/trunk/readme.txt

    r3037801 r3037923  
    55Tested up to: 6.4.3
    66Requires PHP: 7.1
    7 Stable tag: 2.4.6
     7Stable tag: 2.4.7
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset for help on using the changeset viewer.