Plugin Directory

Changeset 2652708


Ignore:
Timestamp:
01/04/2022 04:12:34 PM (4 years ago)
Author:
Supertext
Message:

Sync with GitHub

Location:
polylang-supertext/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • polylang-supertext/trunk/plugin.php

    r2611600 r2652708  
    77Domain Path: /resources/languages
    88Author: Supertext AG
    9 Version: 4.07
     9Version: 4.08
    1010Author URI: http://www.supertext.ch
    1111License: GPLv2 or later
    1212*/
    1313
    14 define('SUPERTEXT_PLUGIN_VERSION', '4.07');
     14define('SUPERTEXT_PLUGIN_VERSION', '4.08');
    1515define('SUPERTEXT_PLUGIN_REVISION', 46);
    1616define('SUPERTEXT_BASE_PATH', __DIR__);
  • polylang-supertext/trunk/readme.txt

    r2611600 r2652708  
    110110== Changelog ==
    111111
     112= 4.08 =
     113* Suppress warnings generated by DOMDocument::loadHTML()
     114* Fix ordering bug when blog name is longer than 50 characters
     115
    112116= 4.07 =
    113117* Fixed fallback copy logic of post meta data when WPML is used but the translation management plugin is not activated
  • polylang-supertext/trunk/src/Supertext/Api/Wrapper.php

    r2520480 r2652708  
    22
    33namespace Supertext\Api;
     4
     5use Supertext\Helper\Constant;
    46
    57/**
     
    135137  {
    136138    $product = explode(':', $translationType);
     139    $blogName = get_bloginfo('name');
     140    $systemName = substr($blogName, 0, min(Constant::MAX_SYSTEM_NAME_LENGTH, strlen($blogName)));
    137141
    138142    $json = array(
     
    145149      'ReferenceData' => $referenceData,
    146150      'Referrer' => 'WordPress Supertext Plugin',
    147       'SystemName' => get_bloginfo('name'),
     151      'SystemName' => $systemName,
    148152      'SystemVersion' => get_bloginfo('version'),
    149153      'ComponentName' => 'supertext',
  • polylang-supertext/trunk/src/Supertext/Helper/Constant.php

    r2565361 r2652708  
    1717   * @var string live api endpoints
    1818   */
    19   const LIVE_API = 'https://www.supertext.ch/api/';
     19  const LIVE_API = 'https://www.supertext.ch/api/';
     20  /**
     21   * @var int max system name length for the order referrer data
     22   */
     23  const MAX_SYSTEM_NAME_LENGTH = 50;
    2024  /**
    2125   * @var string live api endpoints
  • polylang-supertext/trunk/src/Supertext/Helper/Library.php

    r2520480 r2652708  
    277277    ';
    278278
     279    $libxml_use_internal_errors = libxml_use_internal_errors(true);
    279280    $doc = new \DOMDocument();
    280281    $doc->loadHTML($html);
     282    libxml_clear_errors();
     283    libxml_use_internal_errors($libxml_use_internal_errors);
     284
    281285    return $doc;
    282286  }
Note: See TracChangeset for help on using the changeset viewer.