Plugin Directory

Changeset 2704280


Ignore:
Timestamp:
04/04/2022 12:00:35 PM (4 years ago)
Author:
motaword
Message:

version 1.3.3

Location:
motaword
Files:
6 edited
6 copied

Legend:

Unmodified
Added
Removed
  • motaword/tags/1.3.3/README.txt

    r2698217 r2704280  
    55Requires at least: 3.0.1
    66Tested up to: 5.9.2
    7 Stable tag: 1.3.2
     7Stable tag: 1.3.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6868== Changelog ==
    6969
     70= 1.3.3 =
     71* Fixed encoding and block matching issues
     72
    7073= 1.3.2 =
    7174* Allow sending a post for retranslation (if the post is already translated) to translate the updated sections.
  • motaword/tags/1.3.3/admin/class-motaword-admin.php

    r2698210 r2704280  
    790790                    $blocks = function_exists('parse_blocks') ? parse_blocks($wpPostContent) : [];
    791791                    foreach ($blocks as $block) {
     792                        $serializedBlock = serialize_block($block);
     793                        if (!$serializedBlock) {
     794                             continue;
     795                        }
     796
    792797                        if (!$block['blockName']) {
    793798                            continue;
     
    803808                        }
    804809
    805                         $serializedBlock = serialize_block($block);
    806810                        // append block attributes to the fields we want to send for translation
    807811                        // the fields are gathered in a {postId}.json file
  • motaword/tags/1.3.3/includes/class-motaword.php

    r2698217 r2704280  
    2323 * version of the plugin.
    2424 *
    25  * @version    1.3.2
     25 * @version    1.3.3
    2626 * @package    motaword
    2727 * @subpackage motaword/includes
     
    9797     * @param string $pluginName
    9898     *
    99      * @version    1.3.1
     99     * @version    1.3.3
    100100     */
    101101    public function __construct($pluginName = 'motaword/motaword.php')
     
    103103
    104104        $this->motaword = 'motaword';
    105         $this->version = '1.3.2';
     105        $this->version = '1.3.3';
    106106
    107107        $this->setPluginFile($pluginName);
  • motaword/tags/1.3.3/motaword.php

    r2698217 r2704280  
    1616 * Plugin URI:        https://www.motaword.com/developer
    1717 * Description:       MotaWord plugin allows you to seamlessly submit your posts for translation to MotaWord.
    18  * Version:           1.3.2
     18 * Version:           1.3.3
    1919 * Author:            MotaWord Engineering <[email protected]>
    2020 * Author URI:        https://www.motaword.com/developer
  • motaword/tags/1.3.3/public/class-motaword-public.php

    r2684797 r2704280  
    281281
    282282            if ($modifiedBlocks) {
    283                 $updateData['post_content'] = serialize_blocks($postBlocks);
     283                $updateData['post_content'] = wp_slash(serialize_blocks($postBlocks));
    284284            }
    285285        }
  • motaword/trunk/README.txt

    r2698217 r2704280  
    55Requires at least: 3.0.1
    66Tested up to: 5.9.2
    7 Stable tag: 1.3.2
     7Stable tag: 1.3.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6868== Changelog ==
    6969
     70= 1.3.3 =
     71* Fixed encoding and block matching issues
     72
    7073= 1.3.2 =
    7174* Allow sending a post for retranslation (if the post is already translated) to translate the updated sections.
  • motaword/trunk/admin/class-motaword-admin.php

    r2698210 r2704280  
    790790                    $blocks = function_exists('parse_blocks') ? parse_blocks($wpPostContent) : [];
    791791                    foreach ($blocks as $block) {
     792                        $serializedBlock = serialize_block($block);
     793                        if (!$serializedBlock) {
     794                             continue;
     795                        }
     796
    792797                        if (!$block['blockName']) {
    793798                            continue;
     
    803808                        }
    804809
    805                         $serializedBlock = serialize_block($block);
    806810                        // append block attributes to the fields we want to send for translation
    807811                        // the fields are gathered in a {postId}.json file
  • motaword/trunk/includes/class-motaword.php

    r2698217 r2704280  
    2323 * version of the plugin.
    2424 *
    25  * @version    1.3.2
     25 * @version    1.3.3
    2626 * @package    motaword
    2727 * @subpackage motaword/includes
     
    9797     * @param string $pluginName
    9898     *
    99      * @version    1.3.1
     99     * @version    1.3.3
    100100     */
    101101    public function __construct($pluginName = 'motaword/motaword.php')
     
    103103
    104104        $this->motaword = 'motaword';
    105         $this->version = '1.3.2';
     105        $this->version = '1.3.3';
    106106
    107107        $this->setPluginFile($pluginName);
  • motaword/trunk/motaword.php

    r2698217 r2704280  
    1616 * Plugin URI:        https://www.motaword.com/developer
    1717 * Description:       MotaWord plugin allows you to seamlessly submit your posts for translation to MotaWord.
    18  * Version:           1.3.2
     18 * Version:           1.3.3
    1919 * Author:            MotaWord Engineering <[email protected]>
    2020 * Author URI:        https://www.motaword.com/developer
  • motaword/trunk/public/class-motaword-public.php

    r2684797 r2704280  
    281281
    282282            if ($modifiedBlocks) {
    283                 $updateData['post_content'] = serialize_blocks($postBlocks);
     283                $updateData['post_content'] = wp_slash(serialize_blocks($postBlocks));
    284284            }
    285285        }
Note: See TracChangeset for help on using the changeset viewer.