Plugin Directory

Changeset 3298614


Ignore:
Timestamp:
05/22/2025 10:13:26 AM (9 months ago)
Author:
wplingua
Message:

2.6.3

Location:
wplingua
Files:
479 added
2 deleted
11 edited

Legend:

Unmodified
Added
Removed
  • wplingua/trunk/inc/admin/admin-bar.php

    r3265363 r3298614  
    4848    $url       = wplng_get_url_current();
    4949    $url_clean = remove_query_arg(
    50         array( 'wplng-mode', 'wplng-load', 'wplng-nocache' ),
     50        array( 'wplng-mode', 'wplng-load', 'nocache' ),
    5151        $url
    5252    );
  • wplingua/trunk/inc/admin/assets.php

    r3265363 r3298614  
    150150    wp_enqueue_script(
    151151        'wplingua-script',
    152         plugins_url() . '/wplingua/assets/js/script.js',
     152        plugins_url() . '/wplingua/assets/js/front.js',
    153153        array( 'jquery' ),
    154154        WPLNG_PLUGIN_VERSION
  • wplingua/trunk/inc/api-key.php

    r3296154 r3298614  
    303303    global $wplng_api_is_overloaded;
    304304
    305     if ( null !== $wplng_api_is_overloaded ) {
     305    // If overload is true, return directly
     306    // Else, recheck the value
     307    if ( ! empty( $wplng_api_is_overloaded ) ) {
    306308        return $wplng_api_is_overloaded;
    307309    }
  • wplingua/trunk/inc/args.php

    r3296154 r3298614  
    139139                'wplng-mode',
    140140                'wplng-load',
    141                 'wplng-nocache',
     141                'nocache',
    142142            ),
    143143            wp_make_link_relative(
     
    158158                'wplng-mode',
    159159                'wplng-load',
    160                 'wplng-nocache',
     160                'nocache',
    161161            ),
    162162            wp_make_link_relative(
     
    353353    }
    354354
     355    if ( $args['load'] !== 'disabled' ) {
     356
     357        // Set HTTP no-cache header
     358        nocache_headers();
     359
     360        // Disable cache for plugins
     361        if ( ! defined( 'DONOTCACHEPAGE' ) ) {
     362            define( 'DONOTCACHEPAGE', true );
     363        }
     364
     365        if (function_exists( 'do_action' )) {
     366            do_action( 'litespeed_purge_all' );
     367        }
     368    }
     369
    355370    $texts_unknow = array_splice(
    356371        $texts_unknow,
  • wplingua/trunk/inc/assets.php

    r3265363 r3298614  
    3030    wp_enqueue_script(
    3131        'wplingua-script',
    32         plugins_url() . '/wplingua/assets/js/script.js',
     32        plugins_url() . '/wplingua/assets/js/front.js',
    3333        array( 'jquery' ),
    3434        WPLNG_PLUGIN_VERSION
  • wplingua/trunk/inc/dom/load-progress.php

    r3296154 r3298614  
    6767
    6868            $redirect_query_arg['wplng-load']    = 'progress';
    69             $redirect_query_arg['wplng-nocache'] = (string) time() . (string) rand( 100, 999 );
     69            $redirect_query_arg['nocache'] = (string) time() . (string) rand( 100, 999 );
    7070            $redirect_needed                     = true;
    7171        }
     
    197197            array(
    198198                'wplng-load'    => 'progress',
    199                 'wplng-nocache' => (string) time() . (string) rand( 100, 999 ),
     199                'nocache' => (string) time() . (string) rand( 100, 999 ),
    200200            ),
    201201            $url_reload
     
    244244        array(
    245245            'wplng-load'    => 'loading',
    246             'wplng-nocache' => (string) time() . (string) rand( 100, 999 ),
     246            'nocache' => (string) time() . (string) rand( 100, 999 ),
    247247        ),
    248248        $args['url_current']
     
    255255    $html .= '>';
    256256    $html .= '</iframe>'; // End #wplng-translation-in-progress
    257 
     257   
    258258    /**
    259259     * Place the HTML in the end of body
  • wplingua/trunk/inc/hreflang.php

    r3265363 r3298614  
    3030    $url_original = wplng_get_url_original();
    3131    $url_original = remove_query_arg(
    32         array( 'wplng-mode', 'wplng-load', 'wplng-nocache' ),
     32        array( 'wplng-mode', 'wplng-load', 'nocache' ),
    3333        $url_original
    3434    );
  • wplingua/trunk/inc/switcher-block.php

    r3265363 r3298614  
    172172    wp_enqueue_script(
    173173        'wplingua-script',
    174         plugins_url() . '/wplingua/assets/js/script.js',
     174        plugins_url() . '/wplingua/assets/js/front.js',
    175175        array( 'jquery' ),
    176176        WPLNG_PLUGIN_VERSION
  • wplingua/trunk/inc/translation.php

    r3296154 r3298614  
    289289    $discovery_url = wp_make_link_relative( $discovery_url );
    290290    $discovery_url = remove_query_arg(
    291         array( 'wplng-mode', 'wplng-load', 'wplng-nocache' ),
     291        array( 'wplng-mode', 'wplng-load', 'nocache' ),
    292292        $discovery_url
    293293    );
  • wplingua/trunk/readme.txt

    r3296930 r3298614  
    55Requires at least: 6.0
    66Tested up to: 6.8
    7 Stable tag: 2.6.2
     7Stable tag: 2.6.3
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    191191
    192192== Changelog ==
     193
     194= 2.6.3 =
     195
     196* Better compatibility with LiteSpeed
     197* Better overload management
    193198
    194199= 2.6.2 =
  • wplingua/trunk/wplingua.php

    r3296930 r3298614  
    88 * Text Domain: wplingua
    99 * Domain Path: /languages/
    10  * Version: 2.6.2
     10 * Version: 2.6.3
    1111 * Requires PHP: 7.4
    1212 * License: GPL v2 or later
     
    2525define( 'WPLNG_API_VERSION', '3.0' );
    2626define( 'WPLNG_API_SSLVERIFY', true );
    27 define( 'WPLNG_PLUGIN_VERSION', '2.6.2' );
     27define( 'WPLNG_PLUGIN_VERSION', '2.6.3' );
    2828define( 'WPLNG_PLUGIN_FILE', plugin_basename( __FILE__ ) );
    2929define( 'WPLNG_PLUGIN_PATH', __DIR__ );
Note: See TracChangeset for help on using the changeset viewer.