Changeset 3066868
- Timestamp:
- 04/08/2024 11:24:47 AM (2 years ago)
- Location:
- memsource-connector/trunk
- Files:
-
- 3 edited
-
memsource.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
src/Parser/BlockParser.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
memsource-connector/trunk/memsource.php
r3056870 r3066868 5 5 Plugin URI: https://support.phrase.com/hc/en-us/articles/5709657294620 6 6 Description: Localize WordPress websites with the help of professional translation tools: translation memories, terminology bases and quality checkers. 7 Version: 4.7. 07 Version: 4.7.1 8 8 Text Domain: memsource 9 9 Domain Path: /locale … … 18 18 19 19 define('MEMSOURCE_PLUGIN_PATH', dirname(__FILE__)); 20 define('MEMSOURCE_PLUGIN_VERSION', '4.7. 0');20 define('MEMSOURCE_PLUGIN_VERSION', '4.7.1'); 21 21 define('MEMSOURCE_PLUGIN_DIR_URL', plugin_dir_url(__FILE__)); 22 22 define('MEMSOURCE_PLUGIN_REQUIERED_PHP_VERSION', '7.4'); -
memsource-connector/trunk/readme.txt
r3056870 r3066868 33 33 == Changelog == 34 34 35 = 4.7.1 = 36 *Release Date - 8 Apr 2024* 37 38 * Fix errors when parsing content from Gutenberg blocks 39 35 40 = 4.7.0 = 36 41 *Release Date - 22 Mar 2024* -
memsource-connector/trunk/src/Parser/BlockParser.php
r3056870 r3066868 78 78 79 79 if ($this->blockService->isAttributeTranslatable($blockName, $attribute)) { 80 $this->extractTextFromBlock($blockName, $attribute, $value , count($values) === 1);80 $this->extractTextFromBlock($blockName, $attribute, $value ?? '', count($values) === 1); 81 81 } 82 82 } … … 85 85 private function extractBlockComments($value) 86 86 { 87 preg_match_all('/<!--(.*)-->/Uis', $value , $matches, PREG_SET_ORDER);87 preg_match_all('/<!--(.*)-->/Uis', $value ?? '', $matches, PREG_SET_ORDER); 88 88 89 89 foreach ($matches as $match) {
Note: See TracChangeset
for help on using the changeset viewer.