Changeset 2652708
- Timestamp:
- 01/04/2022 04:12:34 PM (4 years ago)
- Location:
- polylang-supertext/trunk
- Files:
-
- 5 edited
-
plugin.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
src/Supertext/Api/Wrapper.php (modified) (3 diffs)
-
src/Supertext/Helper/Constant.php (modified) (1 diff)
-
src/Supertext/Helper/Library.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
polylang-supertext/trunk/plugin.php
r2611600 r2652708 7 7 Domain Path: /resources/languages 8 8 Author: Supertext AG 9 Version: 4.0 79 Version: 4.08 10 10 Author URI: http://www.supertext.ch 11 11 License: GPLv2 or later 12 12 */ 13 13 14 define('SUPERTEXT_PLUGIN_VERSION', '4.0 7');14 define('SUPERTEXT_PLUGIN_VERSION', '4.08'); 15 15 define('SUPERTEXT_PLUGIN_REVISION', 46); 16 16 define('SUPERTEXT_BASE_PATH', __DIR__); -
polylang-supertext/trunk/readme.txt
r2611600 r2652708 110 110 == Changelog == 111 111 112 = 4.08 = 113 * Suppress warnings generated by DOMDocument::loadHTML() 114 * Fix ordering bug when blog name is longer than 50 characters 115 112 116 = 4.07 = 113 117 * 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 2 2 3 3 namespace Supertext\Api; 4 5 use Supertext\Helper\Constant; 4 6 5 7 /** … … 135 137 { 136 138 $product = explode(':', $translationType); 139 $blogName = get_bloginfo('name'); 140 $systemName = substr($blogName, 0, min(Constant::MAX_SYSTEM_NAME_LENGTH, strlen($blogName))); 137 141 138 142 $json = array( … … 145 149 'ReferenceData' => $referenceData, 146 150 'Referrer' => 'WordPress Supertext Plugin', 147 'SystemName' => get_bloginfo('name'),151 'SystemName' => $systemName, 148 152 'SystemVersion' => get_bloginfo('version'), 149 153 'ComponentName' => 'supertext', -
polylang-supertext/trunk/src/Supertext/Helper/Constant.php
r2565361 r2652708 17 17 * @var string live api endpoints 18 18 */ 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; 20 24 /** 21 25 * @var string live api endpoints -
polylang-supertext/trunk/src/Supertext/Helper/Library.php
r2520480 r2652708 277 277 '; 278 278 279 $libxml_use_internal_errors = libxml_use_internal_errors(true); 279 280 $doc = new \DOMDocument(); 280 281 $doc->loadHTML($html); 282 libxml_clear_errors(); 283 libxml_use_internal_errors($libxml_use_internal_errors); 284 281 285 return $doc; 282 286 }
Note: See TracChangeset
for help on using the changeset viewer.