Changeset 3402971
- Timestamp:
- 11/26/2025 03:36:33 AM (4 months ago)
- Location:
- linguise
- Files:
-
- 32 edited
- 1 copied
-
tags/2.2.6 (copied) (copied from linguise/trunk)
-
tags/2.2.6/linguise.php (modified) (1 diff)
-
tags/2.2.6/readme.txt (modified) (2 diffs)
-
tags/2.2.6/src/constants.php (modified) (1 diff)
-
tags/2.2.6/src/switcher.php (modified) (2 diffs)
-
tags/2.2.6/vendor/autoload.php (modified) (1 diff)
-
tags/2.2.6/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/2.2.6/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/2.2.6/vendor/composer/installed.json (modified) (2 diffs)
-
tags/2.2.6/vendor/composer/installed.php (modified) (3 diffs)
-
tags/2.2.6/vendor/linguise/script-php/.version (modified) (1 diff)
-
tags/2.2.6/vendor/linguise/script-php/src/CmsDetect.php (modified) (1 diff)
-
tags/2.2.6/vendor/linguise/script-php/src/CurlRequest.php (modified) (16 diffs)
-
tags/2.2.6/vendor/linguise/script-php/src/Database.php (modified) (2 diffs)
-
tags/2.2.6/vendor/linguise/script-php/src/SetCookie.php (modified) (1 diff)
-
tags/2.2.6/vendor/linguise/script-php/src/Url.php (modified) (1 diff)
-
tags/2.2.6/vendor/linguise/script-php/src/templates/tpl/advanced.php (modified) (1 diff)
-
trunk/linguise.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/constants.php (modified) (1 diff)
-
trunk/src/switcher.php (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.json (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (3 diffs)
-
trunk/vendor/linguise/script-php/.version (modified) (1 diff)
-
trunk/vendor/linguise/script-php/src/CmsDetect.php (modified) (1 diff)
-
trunk/vendor/linguise/script-php/src/CurlRequest.php (modified) (16 diffs)
-
trunk/vendor/linguise/script-php/src/Database.php (modified) (2 diffs)
-
trunk/vendor/linguise/script-php/src/SetCookie.php (modified) (1 diff)
-
trunk/vendor/linguise/script-php/src/Url.php (modified) (1 diff)
-
trunk/vendor/linguise/script-php/src/templates/tpl/advanced.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
linguise/tags/2.2.6/linguise.php
r3397694 r3402971 5 5 * Plugin URI: https://www.linguise.com/ 6 6 * Description: Linguise translation plugin 7 * Version:2.2. 57 * Version:2.2.6 8 8 * Text Domain: linguise 9 9 * Domain Path: /languages -
linguise/tags/2.2.6/readme.txt
r3397694 r3402971 4 4 Requires at least: 4.0 5 5 Tested up to: 6.8 6 Stable tag: 2.2. 56 Stable tag: 2.2.6 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 107 107 108 108 == Changelog == 109 = 2.2.6 = 110 - Fix: Search translation toggle reverted when enabled in admin page 111 109 112 = 2.2.5 = 110 113 - Fix: Issues with fragment i18n is not getting translated because of CDATA -
linguise/tags/2.2.6/src/constants.php
r3397694 r3402971 1 1 <?php 2 2 if (!defined('LINGUISE_SCRIPT_TRANSLATION_VERSION')) { 3 define('LINGUISE_SCRIPT_TRANSLATION_VERSION', 'wordpress_plugin/2.2. 5');3 define('LINGUISE_SCRIPT_TRANSLATION_VERSION', 'wordpress_plugin/2.2.6'); 4 4 } 5 5 6 6 if (!defined('LINGUISE_VERSION')) { 7 define('LINGUISE_VERSION', '2.2. 5');7 define('LINGUISE_VERSION', '2.2.6'); 8 8 } -
linguise/tags/2.2.6/src/switcher.php
r3362901 r3402971 78 78 $trailing_slashes = $matches[1]; 79 79 } else { 80 // @codeCoverageIgnoreStart 80 81 $trailing_slashes = ''; 82 // @codeCoverageIgnoreEnd 81 83 } 82 84 … … 368 370 } 369 371 370 if ($this->config['flag_display_type'] === 'side_by_side') {371 $item->classes[] = 'linguise_parent_menu_item_side_by_side';372 }373 374 372 $new_items[] = $item; 375 373 $is_found = true; -
linguise/tags/2.2.6/vendor/autoload.php
r3393999 r3402971 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 5f08ba9b0f3be0f76f56dfd143f0289f::getLoader();25 return ComposerAutoloaderInit464a2998e9c988ac7d584a14e1604ea8::getLoader(); -
linguise/tags/2.2.6/vendor/composer/autoload_real.php
r3393999 r3402971 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 5f08ba9b0f3be0f76f56dfd143f0289f5 class ComposerAutoloaderInit464a2998e9c988ac7d584a14e1604ea8 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 5f08ba9b0f3be0f76f56dfd143f0289f', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit464a2998e9c988ac7d584a14e1604ea8', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 5f08ba9b0f3be0f76f56dfd143f0289f', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit464a2998e9c988ac7d584a14e1604ea8', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Composer\Autoload\ComposerStaticInit 5f08ba9b0f3be0f76f56dfd143f0289f::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8::getInitializer($loader)); 31 31 32 32 $loader->register(true); 33 33 34 $filesToLoad = \Composer\Autoload\ComposerStaticInit 5f08ba9b0f3be0f76f56dfd143f0289f::$files;34 $filesToLoad = \Composer\Autoload\ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8::$files; 35 35 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 36 36 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
linguise/tags/2.2.6/vendor/composer/autoload_static.php
r3393999 r3402971 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 5f08ba9b0f3be0f76f56dfd143f0289f7 class ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8 8 8 { 9 9 public static $files = array ( … … 156 156 { 157 157 return \Closure::bind(function () use ($loader) { 158 $loader->prefixLengthsPsr4 = ComposerStaticInit 5f08ba9b0f3be0f76f56dfd143f0289f::$prefixLengthsPsr4;159 $loader->prefixDirsPsr4 = ComposerStaticInit 5f08ba9b0f3be0f76f56dfd143f0289f::$prefixDirsPsr4;160 $loader->classMap = ComposerStaticInit 5f08ba9b0f3be0f76f56dfd143f0289f::$classMap;158 $loader->prefixLengthsPsr4 = ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8::$prefixLengthsPsr4; 159 $loader->prefixDirsPsr4 = ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8::$prefixDirsPsr4; 160 $loader->classMap = ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8::$classMap; 161 161 162 162 }, null, ClassLoader::class); -
linguise/tags/2.2.6/vendor/composer/installed.json
r3397694 r3402971 57 57 { 58 58 "name": "linguise/script-php", 59 "version": "v1.3.4 1",60 "version_normalized": "1.3.4 1.0",59 "version": "v1.3.43", 60 "version_normalized": "1.3.43.0", 61 61 "source": { 62 62 "type": "git", 63 63 "url": "git@bitbucket.org:linguise/script-php.git", 64 "reference": " dd11ab02f87a02c275f1621254068f795f7046fb"64 "reference": "6db57d8b5179ea31f2858d72442862166b8cabe7" 65 65 }, 66 66 "require": { … … 75 75 "vlucas/phpdotenv": "^5.6" 76 76 }, 77 "time": "2025-11- 18T03:16:07+00:00",77 "time": "2025-11-26T03:08:27+00:00", 78 78 "type": "library", 79 79 "installation-source": "source", -
linguise/tags/2.2.6/vendor/composer/installed.php
r3397694 r3402971 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' 8bdaaf1d32585b5280a4c2cc6ab9b9722d0e8b00',6 'reference' => '0da894d35554640f8b5d735c9311132bce48fb5e', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 21 21 ), 22 22 'linguise/script-php' => array( 23 'pretty_version' => 'v1.3.4 1',24 'version' => '1.3.4 1.0',25 'reference' => ' dd11ab02f87a02c275f1621254068f795f7046fb',23 'pretty_version' => 'v1.3.43', 24 'version' => '1.3.43.0', 25 'reference' => '6db57d8b5179ea31f2858d72442862166b8cabe7', 26 26 'type' => 'library', 27 27 'install_path' => __DIR__ . '/../linguise/script-php', … … 32 32 'pretty_version' => 'dev-master', 33 33 'version' => 'dev-master', 34 'reference' => ' 8bdaaf1d32585b5280a4c2cc6ab9b9722d0e8b00',34 'reference' => '0da894d35554640f8b5d735c9311132bce48fb5e', 35 35 'type' => 'library', 36 36 'install_path' => __DIR__ . '/../../', -
linguise/tags/2.2.6/vendor/linguise/script-php/.version
r3397694 r3402971 1 1.3.4 11 1.3.43 -
linguise/tags/2.2.6/vendor/linguise/script-php/src/CmsDetect.php
r3316163 r3402971 3 3 namespace Linguise\Vendor\Linguise\Script\Core; 4 4 5 defined('LINGUISE_SCRIPT_TRANSLATION') or die(); 5 defined('LINGUISE_SCRIPT_TRANSLATION') or die(); // @codeCoverageIgnore 6 6 7 7 class CmsDetect { -
linguise/tags/2.2.6/vendor/linguise/script-php/src/CurlRequest.php
r3316163 r3402971 3 3 namespace Linguise\Vendor\Linguise\Script\Core; 4 4 5 defined('LINGUISE_SCRIPT_TRANSLATION') or die(); 5 defined('LINGUISE_SCRIPT_TRANSLATION') or die(); // @codeCoverageIgnore 6 6 7 7 class CurlRequest … … 14 14 * @return array|null|false Decoded JSON, null if no JSON, false if fail to read 15 15 */ 16 pr ivatefunction readJSONInput()16 protected function readJSONInput() 17 17 { 18 18 if (isset($_SERVER['HTTP_CONTENT_TYPE']) && strpos($_SERVER['HTTP_CONTENT_TYPE'], 'application/json') === 0) { 19 $stream = fopen('php://input', 'r'); 19 $stream = $this->openJsonInputStream(); 20 if ($stream === false) { 21 return false; 22 } 20 23 21 24 // Check if it's seeked already. … … 26 29 if ($memory === false) { 27 30 // fail to read 31 // @codeCoverageIgnoreStart 28 32 fclose($stream); 29 33 return false; 34 // @codeCoverageIgnoreEnd 30 35 } 31 36 … … 37 42 if ($success !== 0) { 38 43 // fail to seek 39 return false; 44 return false; // @codeCoverageIgnore 40 45 } 41 46 … … 43 48 if ($memory === false) { 44 49 // fail to read, seek back to original $pos 50 // @codeCoverageIgnoreStart 45 51 fseek($stream, $pos); 46 52 fclose($stream); 47 53 return false; 54 // @codeCoverageIgnoreEnd 48 55 } 49 56 … … 60 67 return null; 61 68 } 69 } 70 71 /** 72 * Opens the input stream for reading JSON data. 73 * 74 * @codeCoverageIgnore 75 * 76 * @return resource|false 77 */ 78 protected function openJsonInputStream() 79 { 80 return fopen('php://input', 'r'); 62 81 } 63 82 … … 87 106 if (isset($_SERVER['CONTENT_TYPE']) && !isset($_SERVER['HTTP_CONTENT_TYPE']) && !empty($content_type)) { 88 107 // Set HTTP_CONTENT_TYPE 89 $_SERVER['HTTP_CONTENT_TYPE'] = $content_type; 108 $_SERVER['HTTP_CONTENT_TYPE'] = $content_type; // @codeCoverageIgnore 90 109 } 91 110 … … 111 130 foreach ($file_value['name'] as $index => $file_name_value) { 112 131 if (!$file_value['tmp_name'][$index]) { 113 continue; 132 continue; // @codeCoverageIgnore 114 133 } 115 134 … … 123 142 } else { 124 143 if (!$file_value['tmp_name']) { 125 continue; 144 continue; // @codeCoverageIgnore 126 145 } 127 146 … … 207 226 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); 208 227 if (Configuration::getInstance()->get('dl_certificates') === true) { 209 curl_setopt($ch, CURLOPT_CAINFO, Certificates::getInstance()->getPath()); 228 curl_setopt($ch, CURLOPT_CAINFO, Certificates::getInstance()->getPath()); // @codeCoverageIgnore 210 229 } 211 230 … … 245 264 246 265 if (count($header_parts) !== 2) { 247 continue; 266 continue; // @codeCoverageIgnore 248 267 } 249 268 … … 260 279 Debug::log('Failed to retrieve content, cannot determine content type. Response code: ' . $response_code); 261 280 Debug::saveError('Failed to retrieve content, cannot determine content type. Response code: ' . $response_code); 262 $response->end();281 return $response->end(); 263 282 } 264 283 … … 278 297 Debug::log('Failed to retrieve content, cannot determine content type. Response code: ' . $response_code); 279 298 Debug::saveError('Failed to retrieve content, cannot determine content type. Response code: ' . $response_code); 280 $response->end();299 return $response->end(); 281 300 } 282 301 } … … 291 310 // So in Configuration[Local] we can modify JSON response if we want. 292 311 Hook::trigger('onJsonResponse'); 293 $response->end();312 return $response->end(); 294 313 } 295 314 … … 298 317 Debug::log('Content type not translatable ' . $content_type); 299 318 Debug::saveError('Content type not translatable ' . $content_type); 300 $response->end();319 return $response->end(); 301 320 } 302 321 … … 320 339 $response->end(); 321 340 } 322 323 341 } 324 342 } -
linguise/tags/2.2.6/vendor/linguise/script-php/src/Database.php
r3316163 r3402971 6 6 use Linguise\Vendor\Linguise\Script\Core\Databases\Sqlite; 7 7 8 defined('LINGUISE_SCRIPT_TRANSLATION') or die(); 8 defined('LINGUISE_SCRIPT_TRANSLATION') or die(); // @codeCoverageIgnore 9 9 10 10 class Database … … 167 167 $config->multisite = true; 168 168 } else { 169 $config->multisite = false; 169 $config->multisite = false; // @codeCoverageIgnore 170 170 } 171 171 break; -
linguise/tags/2.2.6/vendor/linguise/script-php/src/SetCookie.php
r3316163 r3402971 7 7 namespace Linguise\Vendor\Linguise\Script\Core; 8 8 9 defined('LINGUISE_SCRIPT_TRANSLATION') or die(); 9 defined('LINGUISE_SCRIPT_TRANSLATION') or die(); // @codeCoverageIgnore 10 10 11 11 /** -
linguise/tags/2.2.6/vendor/linguise/script-php/src/Url.php
r2650802 r3402971 3 3 namespace Linguise\Vendor\Linguise\Script\Core; 4 4 5 defined('LINGUISE_SCRIPT_TRANSLATION') or die(); 5 defined('LINGUISE_SCRIPT_TRANSLATION') or die(); // @codeCoverageIgnore 6 6 7 class Url 8 { 9 7 class Url { 10 8 public static function translateUrl($redirect_url) 11 9 { -
linguise/tags/2.2.6/vendor/linguise/script-php/src/templates/tpl/advanced.php
r3321566 r3402971 133 133 <div class="flex flex-col mt-4 gap-2 linguise-inner-options"> 134 134 <label class="linguise-slider-checkbox"> 135 <input type="checkbox" class="slider-input" name="linguise_options[search_translation]" value="1" <?php echo isset($options['search_translation ']) ? (AdminHelper::checked($options['search_translation'], 1)) : (''); ?> />135 <input type="checkbox" class="slider-input" name="linguise_options[search_translation]" value="1" <?php echo isset($options['search_translations']) ? (AdminHelper::checked($options['search_translations'], 1)) : (''); ?> /> 136 136 <span class="slider"></span> 137 137 <span class="slider-label font-semibold"> -
linguise/trunk/linguise.php
r3397694 r3402971 5 5 * Plugin URI: https://www.linguise.com/ 6 6 * Description: Linguise translation plugin 7 * Version:2.2. 57 * Version:2.2.6 8 8 * Text Domain: linguise 9 9 * Domain Path: /languages -
linguise/trunk/readme.txt
r3397694 r3402971 4 4 Requires at least: 4.0 5 5 Tested up to: 6.8 6 Stable tag: 2.2. 56 Stable tag: 2.2.6 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 107 107 108 108 == Changelog == 109 = 2.2.6 = 110 - Fix: Search translation toggle reverted when enabled in admin page 111 109 112 = 2.2.5 = 110 113 - Fix: Issues with fragment i18n is not getting translated because of CDATA -
linguise/trunk/src/constants.php
r3397694 r3402971 1 1 <?php 2 2 if (!defined('LINGUISE_SCRIPT_TRANSLATION_VERSION')) { 3 define('LINGUISE_SCRIPT_TRANSLATION_VERSION', 'wordpress_plugin/2.2. 5');3 define('LINGUISE_SCRIPT_TRANSLATION_VERSION', 'wordpress_plugin/2.2.6'); 4 4 } 5 5 6 6 if (!defined('LINGUISE_VERSION')) { 7 define('LINGUISE_VERSION', '2.2. 5');7 define('LINGUISE_VERSION', '2.2.6'); 8 8 } -
linguise/trunk/src/switcher.php
r3362901 r3402971 78 78 $trailing_slashes = $matches[1]; 79 79 } else { 80 // @codeCoverageIgnoreStart 80 81 $trailing_slashes = ''; 82 // @codeCoverageIgnoreEnd 81 83 } 82 84 … … 368 370 } 369 371 370 if ($this->config['flag_display_type'] === 'side_by_side') {371 $item->classes[] = 'linguise_parent_menu_item_side_by_side';372 }373 374 372 $new_items[] = $item; 375 373 $is_found = true; -
linguise/trunk/vendor/autoload.php
r3393999 r3402971 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 5f08ba9b0f3be0f76f56dfd143f0289f::getLoader();25 return ComposerAutoloaderInit464a2998e9c988ac7d584a14e1604ea8::getLoader(); -
linguise/trunk/vendor/composer/autoload_real.php
r3393999 r3402971 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 5f08ba9b0f3be0f76f56dfd143f0289f5 class ComposerAutoloaderInit464a2998e9c988ac7d584a14e1604ea8 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 5f08ba9b0f3be0f76f56dfd143f0289f', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit464a2998e9c988ac7d584a14e1604ea8', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 5f08ba9b0f3be0f76f56dfd143f0289f', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit464a2998e9c988ac7d584a14e1604ea8', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Composer\Autoload\ComposerStaticInit 5f08ba9b0f3be0f76f56dfd143f0289f::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8::getInitializer($loader)); 31 31 32 32 $loader->register(true); 33 33 34 $filesToLoad = \Composer\Autoload\ComposerStaticInit 5f08ba9b0f3be0f76f56dfd143f0289f::$files;34 $filesToLoad = \Composer\Autoload\ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8::$files; 35 35 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 36 36 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
linguise/trunk/vendor/composer/autoload_static.php
r3393999 r3402971 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 5f08ba9b0f3be0f76f56dfd143f0289f7 class ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8 8 8 { 9 9 public static $files = array ( … … 156 156 { 157 157 return \Closure::bind(function () use ($loader) { 158 $loader->prefixLengthsPsr4 = ComposerStaticInit 5f08ba9b0f3be0f76f56dfd143f0289f::$prefixLengthsPsr4;159 $loader->prefixDirsPsr4 = ComposerStaticInit 5f08ba9b0f3be0f76f56dfd143f0289f::$prefixDirsPsr4;160 $loader->classMap = ComposerStaticInit 5f08ba9b0f3be0f76f56dfd143f0289f::$classMap;158 $loader->prefixLengthsPsr4 = ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8::$prefixLengthsPsr4; 159 $loader->prefixDirsPsr4 = ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8::$prefixDirsPsr4; 160 $loader->classMap = ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8::$classMap; 161 161 162 162 }, null, ClassLoader::class); -
linguise/trunk/vendor/composer/installed.json
r3397694 r3402971 57 57 { 58 58 "name": "linguise/script-php", 59 "version": "v1.3.4 1",60 "version_normalized": "1.3.4 1.0",59 "version": "v1.3.43", 60 "version_normalized": "1.3.43.0", 61 61 "source": { 62 62 "type": "git", 63 63 "url": "git@bitbucket.org:linguise/script-php.git", 64 "reference": " dd11ab02f87a02c275f1621254068f795f7046fb"64 "reference": "6db57d8b5179ea31f2858d72442862166b8cabe7" 65 65 }, 66 66 "require": { … … 75 75 "vlucas/phpdotenv": "^5.6" 76 76 }, 77 "time": "2025-11- 18T03:16:07+00:00",77 "time": "2025-11-26T03:08:27+00:00", 78 78 "type": "library", 79 79 "installation-source": "source", -
linguise/trunk/vendor/composer/installed.php
r3397694 r3402971 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' 8bdaaf1d32585b5280a4c2cc6ab9b9722d0e8b00',6 'reference' => '0da894d35554640f8b5d735c9311132bce48fb5e', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 21 21 ), 22 22 'linguise/script-php' => array( 23 'pretty_version' => 'v1.3.4 1',24 'version' => '1.3.4 1.0',25 'reference' => ' dd11ab02f87a02c275f1621254068f795f7046fb',23 'pretty_version' => 'v1.3.43', 24 'version' => '1.3.43.0', 25 'reference' => '6db57d8b5179ea31f2858d72442862166b8cabe7', 26 26 'type' => 'library', 27 27 'install_path' => __DIR__ . '/../linguise/script-php', … … 32 32 'pretty_version' => 'dev-master', 33 33 'version' => 'dev-master', 34 'reference' => ' 8bdaaf1d32585b5280a4c2cc6ab9b9722d0e8b00',34 'reference' => '0da894d35554640f8b5d735c9311132bce48fb5e', 35 35 'type' => 'library', 36 36 'install_path' => __DIR__ . '/../../', -
linguise/trunk/vendor/linguise/script-php/.version
r3397694 r3402971 1 1.3.4 11 1.3.43 -
linguise/trunk/vendor/linguise/script-php/src/CmsDetect.php
r3316163 r3402971 3 3 namespace Linguise\Vendor\Linguise\Script\Core; 4 4 5 defined('LINGUISE_SCRIPT_TRANSLATION') or die(); 5 defined('LINGUISE_SCRIPT_TRANSLATION') or die(); // @codeCoverageIgnore 6 6 7 7 class CmsDetect { -
linguise/trunk/vendor/linguise/script-php/src/CurlRequest.php
r3316163 r3402971 3 3 namespace Linguise\Vendor\Linguise\Script\Core; 4 4 5 defined('LINGUISE_SCRIPT_TRANSLATION') or die(); 5 defined('LINGUISE_SCRIPT_TRANSLATION') or die(); // @codeCoverageIgnore 6 6 7 7 class CurlRequest … … 14 14 * @return array|null|false Decoded JSON, null if no JSON, false if fail to read 15 15 */ 16 pr ivatefunction readJSONInput()16 protected function readJSONInput() 17 17 { 18 18 if (isset($_SERVER['HTTP_CONTENT_TYPE']) && strpos($_SERVER['HTTP_CONTENT_TYPE'], 'application/json') === 0) { 19 $stream = fopen('php://input', 'r'); 19 $stream = $this->openJsonInputStream(); 20 if ($stream === false) { 21 return false; 22 } 20 23 21 24 // Check if it's seeked already. … … 26 29 if ($memory === false) { 27 30 // fail to read 31 // @codeCoverageIgnoreStart 28 32 fclose($stream); 29 33 return false; 34 // @codeCoverageIgnoreEnd 30 35 } 31 36 … … 37 42 if ($success !== 0) { 38 43 // fail to seek 39 return false; 44 return false; // @codeCoverageIgnore 40 45 } 41 46 … … 43 48 if ($memory === false) { 44 49 // fail to read, seek back to original $pos 50 // @codeCoverageIgnoreStart 45 51 fseek($stream, $pos); 46 52 fclose($stream); 47 53 return false; 54 // @codeCoverageIgnoreEnd 48 55 } 49 56 … … 60 67 return null; 61 68 } 69 } 70 71 /** 72 * Opens the input stream for reading JSON data. 73 * 74 * @codeCoverageIgnore 75 * 76 * @return resource|false 77 */ 78 protected function openJsonInputStream() 79 { 80 return fopen('php://input', 'r'); 62 81 } 63 82 … … 87 106 if (isset($_SERVER['CONTENT_TYPE']) && !isset($_SERVER['HTTP_CONTENT_TYPE']) && !empty($content_type)) { 88 107 // Set HTTP_CONTENT_TYPE 89 $_SERVER['HTTP_CONTENT_TYPE'] = $content_type; 108 $_SERVER['HTTP_CONTENT_TYPE'] = $content_type; // @codeCoverageIgnore 90 109 } 91 110 … … 111 130 foreach ($file_value['name'] as $index => $file_name_value) { 112 131 if (!$file_value['tmp_name'][$index]) { 113 continue; 132 continue; // @codeCoverageIgnore 114 133 } 115 134 … … 123 142 } else { 124 143 if (!$file_value['tmp_name']) { 125 continue; 144 continue; // @codeCoverageIgnore 126 145 } 127 146 … … 207 226 curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); 208 227 if (Configuration::getInstance()->get('dl_certificates') === true) { 209 curl_setopt($ch, CURLOPT_CAINFO, Certificates::getInstance()->getPath()); 228 curl_setopt($ch, CURLOPT_CAINFO, Certificates::getInstance()->getPath()); // @codeCoverageIgnore 210 229 } 211 230 … … 245 264 246 265 if (count($header_parts) !== 2) { 247 continue; 266 continue; // @codeCoverageIgnore 248 267 } 249 268 … … 260 279 Debug::log('Failed to retrieve content, cannot determine content type. Response code: ' . $response_code); 261 280 Debug::saveError('Failed to retrieve content, cannot determine content type. Response code: ' . $response_code); 262 $response->end();281 return $response->end(); 263 282 } 264 283 … … 278 297 Debug::log('Failed to retrieve content, cannot determine content type. Response code: ' . $response_code); 279 298 Debug::saveError('Failed to retrieve content, cannot determine content type. Response code: ' . $response_code); 280 $response->end();299 return $response->end(); 281 300 } 282 301 } … … 291 310 // So in Configuration[Local] we can modify JSON response if we want. 292 311 Hook::trigger('onJsonResponse'); 293 $response->end();312 return $response->end(); 294 313 } 295 314 … … 298 317 Debug::log('Content type not translatable ' . $content_type); 299 318 Debug::saveError('Content type not translatable ' . $content_type); 300 $response->end();319 return $response->end(); 301 320 } 302 321 … … 320 339 $response->end(); 321 340 } 322 323 341 } 324 342 } -
linguise/trunk/vendor/linguise/script-php/src/Database.php
r3316163 r3402971 6 6 use Linguise\Vendor\Linguise\Script\Core\Databases\Sqlite; 7 7 8 defined('LINGUISE_SCRIPT_TRANSLATION') or die(); 8 defined('LINGUISE_SCRIPT_TRANSLATION') or die(); // @codeCoverageIgnore 9 9 10 10 class Database … … 167 167 $config->multisite = true; 168 168 } else { 169 $config->multisite = false; 169 $config->multisite = false; // @codeCoverageIgnore 170 170 } 171 171 break; -
linguise/trunk/vendor/linguise/script-php/src/SetCookie.php
r3316163 r3402971 7 7 namespace Linguise\Vendor\Linguise\Script\Core; 8 8 9 defined('LINGUISE_SCRIPT_TRANSLATION') or die(); 9 defined('LINGUISE_SCRIPT_TRANSLATION') or die(); // @codeCoverageIgnore 10 10 11 11 /** -
linguise/trunk/vendor/linguise/script-php/src/Url.php
r2650802 r3402971 3 3 namespace Linguise\Vendor\Linguise\Script\Core; 4 4 5 defined('LINGUISE_SCRIPT_TRANSLATION') or die(); 5 defined('LINGUISE_SCRIPT_TRANSLATION') or die(); // @codeCoverageIgnore 6 6 7 class Url 8 { 9 7 class Url { 10 8 public static function translateUrl($redirect_url) 11 9 { -
linguise/trunk/vendor/linguise/script-php/src/templates/tpl/advanced.php
r3321566 r3402971 133 133 <div class="flex flex-col mt-4 gap-2 linguise-inner-options"> 134 134 <label class="linguise-slider-checkbox"> 135 <input type="checkbox" class="slider-input" name="linguise_options[search_translation]" value="1" <?php echo isset($options['search_translation ']) ? (AdminHelper::checked($options['search_translation'], 1)) : (''); ?> />135 <input type="checkbox" class="slider-input" name="linguise_options[search_translation]" value="1" <?php echo isset($options['search_translations']) ? (AdminHelper::checked($options['search_translations'], 1)) : (''); ?> /> 136 136 <span class="slider"></span> 137 137 <span class="slider-label font-semibold">
Note: See TracChangeset
for help on using the changeset viewer.