Changeset 3409340
- Timestamp:
- 12/03/2025 10:57:14 AM (11 days ago)
- Location:
- falang
- Files:
-
- 6 edited
- 1 copied
-
tags/1.3.67 (copied) (copied from falang/trunk)
-
tags/1.3.67/README.txt (modified) (2 diffs)
-
tags/1.3.67/admin/class-falang-admin.php (modified) (2 diffs)
-
tags/1.3.67/falang.php (modified) (3 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/admin/class-falang-admin.php (modified) (2 diffs)
-
trunk/falang.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
falang/tags/1.3.67/README.txt
r3362585 r3409340 91 91 3. Add languages 92 92 4. Set the default language (main language of your site) 93 5. Add the Language Switcher to your site 93 5. Add the Language Switcher to your site (by shortcode or menu) [Documentation for language switcher](https://www.faboba.com/en/wordpress/falang-for-wordpress/documentation/119-how-to-configure-language-switcher.html) 94 94 6. Translate your post / pages / menus etc. to the other languages 95 95 … … 110 110 111 111 == Changelog == 112 113 * 1.3.68 (2025/12/03) 114 * fix meta translation with serialised object 112 115 113 116 * 1.3.67 (2025/09/16) -
falang/tags/1.3.67/admin/class-falang-admin.php
r3362585 r3409340 717 717 * @update 1.3.66 fix object injection in unserialize 718 718 * @update 1.3.67 fix regression on ACF or meta non serialized save 719 * @update 1.3.68 fix meta translation with serialised object / remove preg_match 719 720 */ 720 721 public function save_translation_post() … … 755 756 $meta_key = Falang_Core::get_prefix($language) . $post_meta; 756 757 if (strlen($field_value) > 0) { 758 //the $field value need to be stripslades and trim before the is_serialize 759 $field_value = stripslashes(trim($field_value)); 757 760 if (is_serialized($field_value)){ 758 761 // Safe to unserialize // https://heera.it/the-dangers-of-phps-unserialize-and-how-to-stay-safe 759 if (preg_match('/^[\w:;,.{}()=]+$/', $field_value)) { 760 $field_value = unserialize(stripslashes(trim($field_value)), ['allowed_classes' => false]); 761 } 762 //1.3.68 remove the preg_match was not working on mediaport 763 //if (preg_match('/^[\w:;,.{}()=]+$/', $field_value)) { 764 $field_value = unserialize($field_value, ['allowed_classes' => false]); 765 //} 762 766 } 763 767 //update for standard meta or safe value -
falang/tags/1.3.67/falang.php
r3362585 r3409340 9 9 * Plugin URI: www.faboba.com/falangw/ 10 10 * Description: Adds multilingual capability to WordPress (Lite version) 11 * Version: 1.3.6 711 * Version: 1.3.68 12 12 * Author: Faboba 13 13 * Author URI: www.faboba.com … … 17 17 * Domain Path: /languages 18 18 * 19 * Copyright 2020-202 4Faboba19 * Copyright 2020-2025 Faboba 20 20 * 21 21 * This program is free software: you can redistribute it and/or modify … … 50 50 * Currently plugin version. 51 51 */ 52 define( 'FALANG_VERSION', '1.3.6 7' );52 define( 'FALANG_VERSION', '1.3.68' ); 53 53 define( 'FALANG_MIN_WP_VERSION', '4.7' ); 54 54 define( 'FALANG_FILE', __FILE__ ); // this file -
falang/trunk/README.txt
r3362585 r3409340 91 91 3. Add languages 92 92 4. Set the default language (main language of your site) 93 5. Add the Language Switcher to your site 93 5. Add the Language Switcher to your site (by shortcode or menu) [Documentation for language switcher](https://www.faboba.com/en/wordpress/falang-for-wordpress/documentation/119-how-to-configure-language-switcher.html) 94 94 6. Translate your post / pages / menus etc. to the other languages 95 95 … … 110 110 111 111 == Changelog == 112 113 * 1.3.68 (2025/12/03) 114 * fix meta translation with serialised object 112 115 113 116 * 1.3.67 (2025/09/16) -
falang/trunk/admin/class-falang-admin.php
r3362585 r3409340 717 717 * @update 1.3.66 fix object injection in unserialize 718 718 * @update 1.3.67 fix regression on ACF or meta non serialized save 719 * @update 1.3.68 fix meta translation with serialised object / remove preg_match 719 720 */ 720 721 public function save_translation_post() … … 755 756 $meta_key = Falang_Core::get_prefix($language) . $post_meta; 756 757 if (strlen($field_value) > 0) { 758 //the $field value need to be stripslades and trim before the is_serialize 759 $field_value = stripslashes(trim($field_value)); 757 760 if (is_serialized($field_value)){ 758 761 // Safe to unserialize // https://heera.it/the-dangers-of-phps-unserialize-and-how-to-stay-safe 759 if (preg_match('/^[\w:;,.{}()=]+$/', $field_value)) { 760 $field_value = unserialize(stripslashes(trim($field_value)), ['allowed_classes' => false]); 761 } 762 //1.3.68 remove the preg_match was not working on mediaport 763 //if (preg_match('/^[\w:;,.{}()=]+$/', $field_value)) { 764 $field_value = unserialize($field_value, ['allowed_classes' => false]); 765 //} 762 766 } 763 767 //update for standard meta or safe value -
falang/trunk/falang.php
r3362585 r3409340 9 9 * Plugin URI: www.faboba.com/falangw/ 10 10 * Description: Adds multilingual capability to WordPress (Lite version) 11 * Version: 1.3.6 711 * Version: 1.3.68 12 12 * Author: Faboba 13 13 * Author URI: www.faboba.com … … 17 17 * Domain Path: /languages 18 18 * 19 * Copyright 2020-202 4Faboba19 * Copyright 2020-2025 Faboba 20 20 * 21 21 * This program is free software: you can redistribute it and/or modify … … 50 50 * Currently plugin version. 51 51 */ 52 define( 'FALANG_VERSION', '1.3.6 7' );52 define( 'FALANG_VERSION', '1.3.68' ); 53 53 define( 'FALANG_MIN_WP_VERSION', '4.7' ); 54 54 define( 'FALANG_FILE', __FILE__ ); // this file
Note: See TracChangeset
for help on using the changeset viewer.