Plugin Directory

Changeset 3435012


Ignore:
Timestamp:
01/08/2026 10:11:55 AM (2 months ago)
Author:
wedevs
Message:

Update to version 1.1.13 from GitHub

Location:
dokan-wpml
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • dokan-wpml/tags/1.1.13/changelog.txt

    r3370142 r3435012  
     1v1.1.13 -> Jan 08, 2026
     2---------------------------
     3- **fix:** Resolved vendor dashboard queries duplication for Dokan WPML.
     4
    15v1.1.12 -> Sep 30, 2025
    26---------------------------
  • dokan-wpml/tags/1.1.13/dokan-wpml.php

    r3370142 r3435012  
    44 * Plugin URI: https://wedevs.com/
    55 * Description: WPML and Dokan compatible package
    6  * Version: 1.1.12
     6 * Version: 1.1.13
    77 * Author: weDevs
    88 * Author URI: https://wedevs.com/
     
    5050 */
    5151class Dokan_WPML {
     52    /*
     53     * Cached options.
     54     *
     55     * @var array
     56     */
     57    private static $cached_options = [];
    5258
    5359    /*
     
    8490        // load all actions and filter under plugins loaded hooks
    8591        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' ] );
    8697    }
    8798
     
    208219        add_action( 'wp_enqueue_scripts', [ $this, 'enqueue' ] );
    209220    }
     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    }
    210240
    211241    /**
     
    10061036     */
    10071037    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
    10081042        if ( ! class_exists( 'WPML_Multilingual_Options_Utils' ) ) {
    10091043            return dokan_get_option( $option, $section, $default );
     
    10111045
    10121046        global $wpdb;
    1013 
    10141047        $util    = new WPML_Multilingual_Options_Utils( $wpdb );
    10151048        $options = $util->get_option_without_filtering( $section );
    10161049
    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;
    10181055    }
    10191056
  • dokan-wpml/tags/1.1.13/languages/dokan-wpml.pot

    r3370113 r3435012  
    1 # Copyright (C) 2025 weDevs
     1# Copyright (C) 2026 weDevs
    22# This file is distributed under the GPL2.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Dokan - WPML Integration 1.1.11\n"
     5"Project-Id-Version: Dokan - WPML Integration 1.1.13\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/dokan-wpml\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-09-30T04:45:29+00:00\n"
     12"POT-Creation-Date: 2026-01-08T09:04:22+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.12.0\n"
     14"X-Generator: WP-CLI 2.11.0\n"
    1515"X-Domain: dokan-wpml\n"
    1616
     
    3737
    3838#. translators: %1$s: opening anchor tag, %2$s: closing anchor tag
    39 #: dokan-wpml.php:253
    40 #, php-format
     39#: dokan-wpml.php:283
    4140msgid "<b>Dokan - WPML Integration</b> requires %1$s Dokan plugin %2$s to be installed & activated!"
    4241msgstr ""
    4342
    4443#. translators: %1$s: opening anchor tag, %2$s: closing anchor tag
    45 #: dokan-wpml.php:259
    46 #, php-format
     44#: dokan-wpml.php:289
    4745msgid "<b>Dokan - WPML Integration</b> requires %1$s WPML Multilingual CMS %2$s to be installed & activated!"
    4846msgstr ""
    4947
    50 #: dokan-wpml.php:1700
    51 #, php-format
     48#: dokan-wpml.php:1737
    5249msgid "Dokan WPML - Error on registering vendor store URL endpoint: %s"
    5350msgstr ""
  • dokan-wpml/tags/1.1.13/readme.txt

    r3370142 r3435012  
    88WC tested up to: 10.2.2
    99Requires PHP: 7.4
    10 Stable tag: 1.1.12
     10Stable tag: 1.1.13
    1111License: GPL v2
    1212License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5252
    5353== Changelog ==
     54
     55v1.1.13 -> Jan 08, 2026
     56---------------------------
     57- **fix:** Resolved vendor dashboard queries duplication for Dokan WPML.
    5458
    5559v1.1.12 -> Sep 30, 2025
  • dokan-wpml/trunk/changelog.txt

    r3370142 r3435012  
     1v1.1.13 -> Jan 08, 2026
     2---------------------------
     3- **fix:** Resolved vendor dashboard queries duplication for Dokan WPML.
     4
    15v1.1.12 -> Sep 30, 2025
    26---------------------------
  • dokan-wpml/trunk/dokan-wpml.php

    r3370142 r3435012  
    44 * Plugin URI: https://wedevs.com/
    55 * Description: WPML and Dokan compatible package
    6  * Version: 1.1.12
     6 * Version: 1.1.13
    77 * Author: weDevs
    88 * Author URI: https://wedevs.com/
     
    5050 */
    5151class Dokan_WPML {
     52    /*
     53     * Cached options.
     54     *
     55     * @var array
     56     */
     57    private static $cached_options = [];
    5258
    5359    /*
     
    8490        // load all actions and filter under plugins loaded hooks
    8591        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' ] );
    8697    }
    8798
     
    208219        add_action( 'wp_enqueue_scripts', [ $this, 'enqueue' ] );
    209220    }
     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    }
    210240
    211241    /**
     
    10061036     */
    10071037    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
    10081042        if ( ! class_exists( 'WPML_Multilingual_Options_Utils' ) ) {
    10091043            return dokan_get_option( $option, $section, $default );
     
    10111045
    10121046        global $wpdb;
    1013 
    10141047        $util    = new WPML_Multilingual_Options_Utils( $wpdb );
    10151048        $options = $util->get_option_without_filtering( $section );
    10161049
    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;
    10181055    }
    10191056
  • dokan-wpml/trunk/languages/dokan-wpml.pot

    r3370113 r3435012  
    1 # Copyright (C) 2025 weDevs
     1# Copyright (C) 2026 weDevs
    22# This file is distributed under the GPL2.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Dokan - WPML Integration 1.1.11\n"
     5"Project-Id-Version: Dokan - WPML Integration 1.1.13\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/dokan-wpml\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-09-30T04:45:29+00:00\n"
     12"POT-Creation-Date: 2026-01-08T09:04:22+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.12.0\n"
     14"X-Generator: WP-CLI 2.11.0\n"
    1515"X-Domain: dokan-wpml\n"
    1616
     
    3737
    3838#. translators: %1$s: opening anchor tag, %2$s: closing anchor tag
    39 #: dokan-wpml.php:253
    40 #, php-format
     39#: dokan-wpml.php:283
    4140msgid "<b>Dokan - WPML Integration</b> requires %1$s Dokan plugin %2$s to be installed & activated!"
    4241msgstr ""
    4342
    4443#. translators: %1$s: opening anchor tag, %2$s: closing anchor tag
    45 #: dokan-wpml.php:259
    46 #, php-format
     44#: dokan-wpml.php:289
    4745msgid "<b>Dokan - WPML Integration</b> requires %1$s WPML Multilingual CMS %2$s to be installed & activated!"
    4846msgstr ""
    4947
    50 #: dokan-wpml.php:1700
    51 #, php-format
     48#: dokan-wpml.php:1737
    5249msgid "Dokan WPML - Error on registering vendor store URL endpoint: %s"
    5350msgstr ""
  • dokan-wpml/trunk/readme.txt

    r3370142 r3435012  
    88WC tested up to: 10.2.2
    99Requires PHP: 7.4
    10 Stable tag: 1.1.12
     10Stable tag: 1.1.13
    1111License: GPL v2
    1212License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5252
    5353== Changelog ==
     54
     55v1.1.13 -> Jan 08, 2026
     56---------------------------
     57- **fix:** Resolved vendor dashboard queries duplication for Dokan WPML.
    5458
    5559v1.1.12 -> Sep 30, 2025
Note: See TracChangeset for help on using the changeset viewer.