Changeset 2704280
- Timestamp:
- 04/04/2022 12:00:35 PM (4 years ago)
- Location:
- motaword
- Files:
-
- 6 edited
- 6 copied
-
tags/1.3.3 (copied) (copied from motaword/trunk)
-
tags/1.3.3/README.txt (copied) (copied from motaword/trunk/README.txt) (2 diffs)
-
tags/1.3.3/admin/class-motaword-admin.php (copied) (copied from motaword/trunk/admin/class-motaword-admin.php) (2 diffs)
-
tags/1.3.3/includes/class-motaword-api.php (copied) (copied from motaword/trunk/includes/class-motaword-api.php)
-
tags/1.3.3/includes/class-motaword.php (copied) (copied from motaword/trunk/includes/class-motaword.php) (3 diffs)
-
tags/1.3.3/motaword.php (copied) (copied from motaword/trunk/motaword.php) (1 diff)
-
tags/1.3.3/public/class-motaword-public.php (modified) (1 diff)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/admin/class-motaword-admin.php (modified) (2 diffs)
-
trunk/includes/class-motaword.php (modified) (3 diffs)
-
trunk/motaword.php (modified) (1 diff)
-
trunk/public/class-motaword-public.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
motaword/tags/1.3.3/README.txt
r2698217 r2704280 5 5 Requires at least: 3.0.1 6 6 Tested up to: 5.9.2 7 Stable tag: 1.3. 27 Stable tag: 1.3.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 68 68 == Changelog == 69 69 70 = 1.3.3 = 71 * Fixed encoding and block matching issues 72 70 73 = 1.3.2 = 71 74 * 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 790 790 $blocks = function_exists('parse_blocks') ? parse_blocks($wpPostContent) : []; 791 791 foreach ($blocks as $block) { 792 $serializedBlock = serialize_block($block); 793 if (!$serializedBlock) { 794 continue; 795 } 796 792 797 if (!$block['blockName']) { 793 798 continue; … … 803 808 } 804 809 805 $serializedBlock = serialize_block($block);806 810 // append block attributes to the fields we want to send for translation 807 811 // the fields are gathered in a {postId}.json file -
motaword/tags/1.3.3/includes/class-motaword.php
r2698217 r2704280 23 23 * version of the plugin. 24 24 * 25 * @version 1.3. 225 * @version 1.3.3 26 26 * @package motaword 27 27 * @subpackage motaword/includes … … 97 97 * @param string $pluginName 98 98 * 99 * @version 1.3. 199 * @version 1.3.3 100 100 */ 101 101 public function __construct($pluginName = 'motaword/motaword.php') … … 103 103 104 104 $this->motaword = 'motaword'; 105 $this->version = '1.3. 2';105 $this->version = '1.3.3'; 106 106 107 107 $this->setPluginFile($pluginName); -
motaword/tags/1.3.3/motaword.php
r2698217 r2704280 16 16 * Plugin URI: https://www.motaword.com/developer 17 17 * Description: MotaWord plugin allows you to seamlessly submit your posts for translation to MotaWord. 18 * Version: 1.3. 218 * Version: 1.3.3 19 19 * Author: MotaWord Engineering <[email protected]> 20 20 * Author URI: https://www.motaword.com/developer -
motaword/tags/1.3.3/public/class-motaword-public.php
r2684797 r2704280 281 281 282 282 if ($modifiedBlocks) { 283 $updateData['post_content'] = serialize_blocks($postBlocks);283 $updateData['post_content'] = wp_slash(serialize_blocks($postBlocks)); 284 284 } 285 285 } -
motaword/trunk/README.txt
r2698217 r2704280 5 5 Requires at least: 3.0.1 6 6 Tested up to: 5.9.2 7 Stable tag: 1.3. 27 Stable tag: 1.3.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 68 68 == Changelog == 69 69 70 = 1.3.3 = 71 * Fixed encoding and block matching issues 72 70 73 = 1.3.2 = 71 74 * 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 790 790 $blocks = function_exists('parse_blocks') ? parse_blocks($wpPostContent) : []; 791 791 foreach ($blocks as $block) { 792 $serializedBlock = serialize_block($block); 793 if (!$serializedBlock) { 794 continue; 795 } 796 792 797 if (!$block['blockName']) { 793 798 continue; … … 803 808 } 804 809 805 $serializedBlock = serialize_block($block);806 810 // append block attributes to the fields we want to send for translation 807 811 // the fields are gathered in a {postId}.json file -
motaword/trunk/includes/class-motaword.php
r2698217 r2704280 23 23 * version of the plugin. 24 24 * 25 * @version 1.3. 225 * @version 1.3.3 26 26 * @package motaword 27 27 * @subpackage motaword/includes … … 97 97 * @param string $pluginName 98 98 * 99 * @version 1.3. 199 * @version 1.3.3 100 100 */ 101 101 public function __construct($pluginName = 'motaword/motaword.php') … … 103 103 104 104 $this->motaword = 'motaword'; 105 $this->version = '1.3. 2';105 $this->version = '1.3.3'; 106 106 107 107 $this->setPluginFile($pluginName); -
motaword/trunk/motaword.php
r2698217 r2704280 16 16 * Plugin URI: https://www.motaword.com/developer 17 17 * Description: MotaWord plugin allows you to seamlessly submit your posts for translation to MotaWord. 18 * Version: 1.3. 218 * Version: 1.3.3 19 19 * Author: MotaWord Engineering <[email protected]> 20 20 * Author URI: https://www.motaword.com/developer -
motaword/trunk/public/class-motaword-public.php
r2684797 r2704280 281 281 282 282 if ($modifiedBlocks) { 283 $updateData['post_content'] = serialize_blocks($postBlocks);283 $updateData['post_content'] = wp_slash(serialize_blocks($postBlocks)); 284 284 } 285 285 }
Note: See TracChangeset
for help on using the changeset viewer.