Changeset 3435012
- Timestamp:
- 01/08/2026 10:11:55 AM (2 months ago)
- Location:
- dokan-wpml
- Files:
-
- 8 edited
- 1 copied
-
tags/1.1.13 (copied) (copied from dokan-wpml/trunk)
-
tags/1.1.13/changelog.txt (modified) (1 diff)
-
tags/1.1.13/dokan-wpml.php (modified) (6 diffs)
-
tags/1.1.13/languages/dokan-wpml.pot (modified) (3 diffs)
-
tags/1.1.13/readme.txt (modified) (2 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/dokan-wpml.php (modified) (6 diffs)
-
trunk/languages/dokan-wpml.pot (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dokan-wpml/tags/1.1.13/changelog.txt
r3370142 r3435012 1 v1.1.13 -> Jan 08, 2026 2 --------------------------- 3 - **fix:** Resolved vendor dashboard queries duplication for Dokan WPML. 4 1 5 v1.1.12 -> Sep 30, 2025 2 6 --------------------------- -
dokan-wpml/tags/1.1.13/dokan-wpml.php
r3370142 r3435012 4 4 * Plugin URI: https://wedevs.com/ 5 5 * Description: WPML and Dokan compatible package 6 * Version: 1.1.1 26 * Version: 1.1.13 7 7 * Author: weDevs 8 8 * Author URI: https://wedevs.com/ … … 50 50 */ 51 51 class Dokan_WPML { 52 /* 53 * Cached options. 54 * 55 * @var array 56 */ 57 private static $cached_options = []; 52 58 53 59 /* … … 84 90 // load all actions and filter under plugins loaded hooks 85 91 add_action( 'plugins_loaded', [ $this, 'plugins_loaded' ] ); 92 93 // Clear option cache on option updates, additions, deletions 94 add_action( 'updated_option', [ $this, 'clear_option_cache' ] ); 95 add_action( 'added_option', [ $this, 'clear_option_cache' ] ); 96 add_action( 'deleted_option', [ $this, 'clear_option_cache' ] ); 86 97 } 87 98 … … 208 219 add_action( 'wp_enqueue_scripts', [ $this, 'enqueue' ] ); 209 220 } 221 222 /** 223 * Clear cache when option is updated, added, or deleted. 224 * This function accepts variable parameters to work with all three hooks. 225 * 226 * @since 1.1.13 227 * 228 * @param string $option Name of the option 229 * 230 * @return void 231 */ 232 public function clear_option_cache( $option ) { 233 // Clear only if the option exists in cache. 234 if ( empty( self::$cached_options[ $option ] ) ) { 235 return; 236 } 237 238 unset( self::$cached_options[ $option ] ); 239 } 210 240 211 241 /** … … 1006 1036 */ 1007 1037 public function get_raw_option( $option, $section, $default = '' ) { 1038 if ( isset( self::$cached_options[ $section ][ $option ] ) ) { 1039 return self::$cached_options[ $section ][ $option ]; 1040 } 1041 1008 1042 if ( ! class_exists( 'WPML_Multilingual_Options_Utils' ) ) { 1009 1043 return dokan_get_option( $option, $section, $default ); … … 1011 1045 1012 1046 global $wpdb; 1013 1014 1047 $util = new WPML_Multilingual_Options_Utils( $wpdb ); 1015 1048 $options = $util->get_option_without_filtering( $section ); 1016 1049 1017 return isset( $options[ $option ] ) ? $options[ $option ] : $default; 1050 $result = $options[ $option ] ?? $default; 1051 1052 self::$cached_options[ $section ][ $option ] = $result; 1053 1054 return $result; 1018 1055 } 1019 1056 -
dokan-wpml/tags/1.1.13/languages/dokan-wpml.pot
r3370113 r3435012 1 # Copyright (C) 202 5weDevs1 # Copyright (C) 2026 weDevs 2 2 # This file is distributed under the GPL2. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Dokan - WPML Integration 1.1.1 1\n"5 "Project-Id-Version: Dokan - WPML Integration 1.1.13\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/dokan-wpml\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 5-09-30T04:45:29+00:00\n"12 "POT-Creation-Date: 2026-01-08T09:04:22+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2.1 2.0\n"14 "X-Generator: WP-CLI 2.11.0\n" 15 15 "X-Domain: dokan-wpml\n" 16 16 … … 37 37 38 38 #. translators: %1$s: opening anchor tag, %2$s: closing anchor tag 39 #: dokan-wpml.php:253 40 #, php-format 39 #: dokan-wpml.php:283 41 40 msgid "<b>Dokan - WPML Integration</b> requires %1$s Dokan plugin %2$s to be installed & activated!" 42 41 msgstr "" 43 42 44 43 #. translators: %1$s: opening anchor tag, %2$s: closing anchor tag 45 #: dokan-wpml.php:259 46 #, php-format 44 #: dokan-wpml.php:289 47 45 msgid "<b>Dokan - WPML Integration</b> requires %1$s WPML Multilingual CMS %2$s to be installed & activated!" 48 46 msgstr "" 49 47 50 #: dokan-wpml.php:1700 51 #, php-format 48 #: dokan-wpml.php:1737 52 49 msgid "Dokan WPML - Error on registering vendor store URL endpoint: %s" 53 50 msgstr "" -
dokan-wpml/tags/1.1.13/readme.txt
r3370142 r3435012 8 8 WC tested up to: 10.2.2 9 9 Requires PHP: 7.4 10 Stable tag: 1.1.1 210 Stable tag: 1.1.13 11 11 License: GPL v2 12 12 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 52 52 53 53 == Changelog == 54 55 v1.1.13 -> Jan 08, 2026 56 --------------------------- 57 - **fix:** Resolved vendor dashboard queries duplication for Dokan WPML. 54 58 55 59 v1.1.12 -> Sep 30, 2025 -
dokan-wpml/trunk/changelog.txt
r3370142 r3435012 1 v1.1.13 -> Jan 08, 2026 2 --------------------------- 3 - **fix:** Resolved vendor dashboard queries duplication for Dokan WPML. 4 1 5 v1.1.12 -> Sep 30, 2025 2 6 --------------------------- -
dokan-wpml/trunk/dokan-wpml.php
r3370142 r3435012 4 4 * Plugin URI: https://wedevs.com/ 5 5 * Description: WPML and Dokan compatible package 6 * Version: 1.1.1 26 * Version: 1.1.13 7 7 * Author: weDevs 8 8 * Author URI: https://wedevs.com/ … … 50 50 */ 51 51 class Dokan_WPML { 52 /* 53 * Cached options. 54 * 55 * @var array 56 */ 57 private static $cached_options = []; 52 58 53 59 /* … … 84 90 // load all actions and filter under plugins loaded hooks 85 91 add_action( 'plugins_loaded', [ $this, 'plugins_loaded' ] ); 92 93 // Clear option cache on option updates, additions, deletions 94 add_action( 'updated_option', [ $this, 'clear_option_cache' ] ); 95 add_action( 'added_option', [ $this, 'clear_option_cache' ] ); 96 add_action( 'deleted_option', [ $this, 'clear_option_cache' ] ); 86 97 } 87 98 … … 208 219 add_action( 'wp_enqueue_scripts', [ $this, 'enqueue' ] ); 209 220 } 221 222 /** 223 * Clear cache when option is updated, added, or deleted. 224 * This function accepts variable parameters to work with all three hooks. 225 * 226 * @since 1.1.13 227 * 228 * @param string $option Name of the option 229 * 230 * @return void 231 */ 232 public function clear_option_cache( $option ) { 233 // Clear only if the option exists in cache. 234 if ( empty( self::$cached_options[ $option ] ) ) { 235 return; 236 } 237 238 unset( self::$cached_options[ $option ] ); 239 } 210 240 211 241 /** … … 1006 1036 */ 1007 1037 public function get_raw_option( $option, $section, $default = '' ) { 1038 if ( isset( self::$cached_options[ $section ][ $option ] ) ) { 1039 return self::$cached_options[ $section ][ $option ]; 1040 } 1041 1008 1042 if ( ! class_exists( 'WPML_Multilingual_Options_Utils' ) ) { 1009 1043 return dokan_get_option( $option, $section, $default ); … … 1011 1045 1012 1046 global $wpdb; 1013 1014 1047 $util = new WPML_Multilingual_Options_Utils( $wpdb ); 1015 1048 $options = $util->get_option_without_filtering( $section ); 1016 1049 1017 return isset( $options[ $option ] ) ? $options[ $option ] : $default; 1050 $result = $options[ $option ] ?? $default; 1051 1052 self::$cached_options[ $section ][ $option ] = $result; 1053 1054 return $result; 1018 1055 } 1019 1056 -
dokan-wpml/trunk/languages/dokan-wpml.pot
r3370113 r3435012 1 # Copyright (C) 202 5weDevs1 # Copyright (C) 2026 weDevs 2 2 # This file is distributed under the GPL2. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Dokan - WPML Integration 1.1.1 1\n"5 "Project-Id-Version: Dokan - WPML Integration 1.1.13\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/dokan-wpml\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 5-09-30T04:45:29+00:00\n"12 "POT-Creation-Date: 2026-01-08T09:04:22+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2.1 2.0\n"14 "X-Generator: WP-CLI 2.11.0\n" 15 15 "X-Domain: dokan-wpml\n" 16 16 … … 37 37 38 38 #. translators: %1$s: opening anchor tag, %2$s: closing anchor tag 39 #: dokan-wpml.php:253 40 #, php-format 39 #: dokan-wpml.php:283 41 40 msgid "<b>Dokan - WPML Integration</b> requires %1$s Dokan plugin %2$s to be installed & activated!" 42 41 msgstr "" 43 42 44 43 #. translators: %1$s: opening anchor tag, %2$s: closing anchor tag 45 #: dokan-wpml.php:259 46 #, php-format 44 #: dokan-wpml.php:289 47 45 msgid "<b>Dokan - WPML Integration</b> requires %1$s WPML Multilingual CMS %2$s to be installed & activated!" 48 46 msgstr "" 49 47 50 #: dokan-wpml.php:1700 51 #, php-format 48 #: dokan-wpml.php:1737 52 49 msgid "Dokan WPML - Error on registering vendor store URL endpoint: %s" 53 50 msgstr "" -
dokan-wpml/trunk/readme.txt
r3370142 r3435012 8 8 WC tested up to: 10.2.2 9 9 Requires PHP: 7.4 10 Stable tag: 1.1.1 210 Stable tag: 1.1.13 11 11 License: GPL v2 12 12 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 52 52 53 53 == Changelog == 54 55 v1.1.13 -> Jan 08, 2026 56 --------------------------- 57 - **fix:** Resolved vendor dashboard queries duplication for Dokan WPML. 54 58 55 59 v1.1.12 -> Sep 30, 2025
Note: See TracChangeset
for help on using the changeset viewer.