Plugin Directory

Changeset 3066868


Ignore:
Timestamp:
04/08/2024 11:24:47 AM (2 years ago)
Author:
memsource
Message:

Version 4.7.1

Location:
memsource-connector/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • memsource-connector/trunk/memsource.php

    r3056870 r3066868  
    55Plugin URI: https://support.phrase.com/hc/en-us/articles/5709657294620
    66Description: Localize WordPress websites with the help of professional translation tools: translation memories, terminology bases and quality checkers.
    7 Version: 4.7.0
     7Version: 4.7.1
    88Text Domain: memsource
    99Domain Path: /locale
     
    1818
    1919define('MEMSOURCE_PLUGIN_PATH', dirname(__FILE__));
    20 define('MEMSOURCE_PLUGIN_VERSION', '4.7.0');
     20define('MEMSOURCE_PLUGIN_VERSION', '4.7.1');
    2121define('MEMSOURCE_PLUGIN_DIR_URL', plugin_dir_url(__FILE__));
    2222define('MEMSOURCE_PLUGIN_REQUIERED_PHP_VERSION', '7.4');
  • memsource-connector/trunk/readme.txt

    r3056870 r3066868  
    3333== Changelog ==
    3434
     35= 4.7.1 =
     36*Release Date - 8 Apr 2024*
     37
     38* Fix errors when parsing content from Gutenberg blocks
     39
    3540= 4.7.0 =
    3641*Release Date - 22 Mar 2024*
  • memsource-connector/trunk/src/Parser/BlockParser.php

    r3056870 r3066868  
    7878
    7979            if ($this->blockService->isAttributeTranslatable($blockName, $attribute)) {
    80                 $this->extractTextFromBlock($blockName, $attribute, $value, count($values) === 1);
     80                $this->extractTextFromBlock($blockName, $attribute, $value ?? '', count($values) === 1);
    8181            }
    8282        }
     
    8585    private function extractBlockComments($value)
    8686    {
    87         preg_match_all('/<!--(.*)-->/Uis', $value, $matches, PREG_SET_ORDER);
     87        preg_match_all('/<!--(.*)-->/Uis', $value ?? '', $matches, PREG_SET_ORDER);
    8888
    8989        foreach ($matches as $match) {
Note: See TracChangeset for help on using the changeset viewer.