Plugin Directory

Changeset 3425738


Ignore:
Timestamp:
12/23/2025 02:59:55 AM (3 months ago)
Author:
linguise
Message:

Updating to version 2.2.12

Location:
linguise
Files:
44 edited
1 copied

Legend:

Unmodified
Added
Removed
  • linguise/tags/2.2.12/assets/languages.json

    r3393999 r3425738  
    7676    "rtl": false,
    7777    "wp_code": "bg_BG"
     78  },
     79  "my": {
     80    "name": "Burmese",
     81    "original_name": "မြန်မာဘာသာ",
     82    "code": "my",
     83    "rtl": false
    7884  },
    7985  "ca": {
  • linguise/tags/2.2.12/linguise.php

    r3421512 r3425738  
    55 * Plugin URI: https://www.linguise.com/
    66 * Description: Linguise translation plugin
    7  * Version:2.2.11
     7 * Version:2.2.12
    88 * Text Domain: linguise
    99 * Domain Path: /languages
  • linguise/tags/2.2.12/readme.txt

    r3421512 r3425738  
    44Requires at least: 4.0
    55Tested up to: 6.9
    6 Stable tag: 2.2.11
     6Stable tag: 2.2.12
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    107107
    108108== Changelog ==
     109= 2.2.12 =
     110- Fix: Missing flags: Myanmar / Burmese
     111
    109112= 2.2.11 =
    110113- Feature: Support Cookie Law Info/CookieYes
  • linguise/tags/2.2.12/src/Helper.php

    r3415968 r3425738  
    2626    {
    2727        $admin_url = strtolower(admin_url());
    28 
    29         if (strpos(home_url(add_query_arg(null, null)), $admin_url) === 0) {
    30             if (0 === strpos(strtolower(wp_get_referer()), $admin_url)) {
     28        $referrer  = strtolower(wp_get_referer());
     29        $current_url = home_url(add_query_arg(null, null));
     30
     31        if (strpos($current_url, $admin_url) === 0) {
     32            if (0 === strpos($referrer, $admin_url)) {
    3133                return true;
    3234            } else {
    3335                if (function_exists('wp_doing_ajax')) {
    34                     return !wp_doing_ajax();
     36                    return !wp_doing_ajax(); // @codeCoverageIgnore
    3537                } else {
    36                     return !(defined('DOING_AJAX') && DOING_AJAX );
     38                    return !(defined('DOING_AJAX') && DOING_AJAX);
    3739                }
    3840            }
     
    99101        if (!empty($site_path) && strpos($path, $site_path) === 0) {
    100102            // Remove the site path from the URL
    101             $path = substr($path, strlen($site_path));
     103            $path = substr($path, strlen($site_path)); // @codeCoverageIgnore
    102104        }
    103105
     
    192194
    193195        if (!$linguise_options) {
    194             return false;
     196            return false; // @codeCoverageIgnore
    195197        }
    196198
     
    214216
    215217            if (self::localeCompare($lang_key, $locale)) {
    216                 return $lang_key;
     218                return $lang_key; // @codeCoverageIgnore
    217219            }
    218220        }
     
    288290        // Check if LINGUISE_PLUGIN_URL has / at the end
    289291        if (substr(LINGUISE_PLUGIN_URL, -1) === '/') {
    290             return LINGUISE_PLUGIN_URL . $path;
     292            return LINGUISE_PLUGIN_URL . $path; // @codeCoverageIgnore
    291293        }
    292294
     
    324326            return null;
    325327        }
    326    
     328
    327329        if (!ctype_xdigit($hex_color)) {
    328330            return null;
    329331        }
    330    
     332
    331333        $r = hexdec(substr($hex_color, 0, 2));
    332334        $g = hexdec(substr($hex_color, 2, 2));
    333335        $b = hexdec(substr($hex_color, 4, 2));
    334    
     336
    335337        return [
    336338            'r' => $r,
     
    384386        }
    385387
     388        // @codeCoverageIgnoreStart
    386389        $keys = array_keys($arrOrObject);
    387390        return implode('', $keys) !== implode(range(0, count($keys) - 1));
     391        // @codeCoverageIgnoreEnd
    388392    }
    389393
  • linguise/tags/2.2.12/src/admin/Helper.php

    r3362901 r3425738  
    2727            $errors = defined('LINGUISE_TESTING_ERRORS') ? LINGUISE_TESTING_ERRORS : '';
    2828        } else {
     29            // @codeCoverageIgnoreStart
    2930            $errorsFile = LINGUISE_PLUGIN_PATH . DIRECTORY_SEPARATOR. 'vendor' . DIRECTORY_SEPARATOR . 'linguise' . DIRECTORY_SEPARATOR . 'script-php' . DIRECTORY_SEPARATOR . 'errors.php';
    3031            if (file_exists($errorsFile)) {
     
    3334                $errors = '';
    3435            }
     36            // @codeCoverageIgnoreEnd
    3537        }
    3638
    3739        $errorsList = [];
    3840        if (!preg_match_all('/^\[([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2})\] (?:([0-9]{3}): )?(.*)$/m', $errors, $matches, PREG_SET_ORDER)) {
    39             return $errorsList;
     41            return $errorsList; // @codeCoverageIgnore
    4042        }
    4143
     
    156158            return 'Testing (' .  $lang_code . ')'; // In testing mode, we return the code as is
    157159        }
     160        // @codeCoverageIgnoreStart
    158161        require_once ABSPATH . 'wp-admin/includes/translation-install.php';
    159162        $translations = wp_get_available_translations();
     
    163166   
    164167        return 'Unknown';
     168        // @codeCoverageIgnoreEnd
    165169    }
    166170
     
    169173     *
    170174     * @param string $mode The mode to check for multisite
     175     *
     176     * @codeCoverageIgnore
    171177     *
    172178     * @return array the multisite information
  • linguise/tags/2.2.12/src/admin/menu.php

    r3079113 r3425738  
    11<?php
     2
    23/* Prohibit direct script loading */
    34defined('ABSPATH') || die('No direct script access allowed!');
     
    6768                        <label class="menu-item-title">
    6869                            <input type="checkbox" class="menu-item-checkbox"
    69                                    name="menu-item[<?php echo (int)$_nav_menu_placeholder; ?>][menu-item-object-id]"
    70                                    value="-1"> <?php esc_html_e('Linguise Languages', 'linguise'); ?>
     70                                name="menu-item[<?php echo (int)$_nav_menu_placeholder; ?>][menu-item-object-id]"
     71                                value="-1"> <?php esc_html_e('Linguise Languages', 'linguise'); ?>
    7172                        </label>
    7273                        <input type="hidden" class="menu-item-type"
    73                                name="menu-item[<?php echo (int)$_nav_menu_placeholder; ?>][menu-item-type]"
    74                                value="custom">
     74                            name="menu-item[<?php echo (int)$_nav_menu_placeholder; ?>][menu-item-type]"
     75                            value="custom">
    7576                        <input type="hidden" class="menu-item-title"
    76                                name="menu-item[<?php echo (int)$_nav_menu_placeholder; ?>][menu-item-title]"
    77                                value="<?php esc_html_e('Linguise Languages', 'linguise'); ?>">
     77                            name="menu-item[<?php echo (int)$_nav_menu_placeholder; ?>][menu-item-title]"
     78                            value="<?php esc_html_e('Linguise Languages', 'linguise'); ?>">
    7879                        <input type="hidden" class="menu-item-url"
    79                                name="menu-item[<?php echo (int)$_nav_menu_placeholder; ?>][menu-item-url]"
    80                                value="#linguise_switcher">
     80                            name="menu-item[<?php echo (int)$_nav_menu_placeholder; ?>][menu-item-url]"
     81                            value="#linguise_switcher">
    8182                    </li>
    8283                </ul>
     
    8586                <span class="add-to-menu">
    8687                    <input type="submit" <?php disabled($nav_menu_selected_id, 0); ?> class="button-secondary submit-add-to-menu right"
    87                            value="<?php esc_attr_e('Add to Menu', 'linguise'); ?>" name="add-post-type-menu-item"
    88                            id="submit-posttype-lang-switch">
     88                        value="<?php esc_attr_e('Add to Menu', 'linguise'); ?>" name="add-post-type-menu-item"
     89                        id="submit-posttype-lang-switch">
    8990                    <span class="spinner"></span>
    9091                </span>
  • linguise/tags/2.2.12/src/cache.php

    r3197925 r3425738  
    1111    // check user capabilities
    1212    if (!current_user_can('manage_options')) {
    13         header('Content-Type: application/json; charset=UTF-8;');
     13        if (!defined('LINGUISE_WP_PLUGIN_TEST_MODE')) {
     14            header('Content-Type: application/json; charset=UTF-8;');
     15        }
    1416        echo json_encode(['success' => false]);
    15         die();
     17        if (defined('LINGUISE_WP_PLUGIN_TEST_MODE')) {
     18            return;
     19        }
     20        die(); // @codeCoverageIgnore
    1621    }
    1722
  • linguise/tags/2.2.12/src/constants.php

    r3421512 r3425738  
    11<?php
    22if (!defined('LINGUISE_SCRIPT_TRANSLATION_VERSION')) {
    3     define('LINGUISE_SCRIPT_TRANSLATION_VERSION', 'wordpress_plugin/2.2.11');
     3    define('LINGUISE_SCRIPT_TRANSLATION_VERSION', 'wordpress_plugin/2.2.12');
    44}
    55
    66if (!defined('LINGUISE_VERSION')) {
    7     define('LINGUISE_VERSION', '2.2.11');
     7    define('LINGUISE_VERSION', '2.2.12');
    88}
  • linguise/tags/2.2.12/src/install.php

    r3335243 r3425738  
    11<?php
     2
    23add_action('admin_init', function () {
    34    $installed_version = get_option('linguise_version', null);
     
    910         */
    1011        if (!defined('LINGUISE_SCRIPT_TRANSLATION')) {
    11             define('LINGUISE_SCRIPT_TRANSLATION', 1);
     12            define('LINGUISE_SCRIPT_TRANSLATION', 1); // @codeCoverageIgnore
    1213        }
    1314        require_once(__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'linguise' . DIRECTORY_SEPARATOR . 'script-php' . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'Databases' . DIRECTORY_SEPARATOR . 'Mysql.php');
     
    8485    <script type="text/javascript">
    8586        jQuery(function($) {
    86           $(document).ready(function() {
    87             $(document).on('click', '#linguise_admin_notice .notice-dismiss', function(e) {
    88               e.preventDefault();
    89               $('#linguise_feedback_notice_dismiss').trigger('click');
    90               return false;
    91             }).on('click', '#linguise_feedback_notice_dismiss', function(e) {
    92               e.preventDefault();
    93               // Send ajax to dismiss URL
    94               $.ajax({
    95                 url: $(this).prop('href'),
    96                 method: 'GET',
    97                 success: function(data) {
    98                   $('#linguise_admin_notice').fadeOut('fast', function() {
    99                     $(this).remove();
    100                   })
    101                 }
    102               });
    103               return false;
     87            $(document).ready(function() {
     88                $(document)
     89                    .on('click', '#linguise_admin_notice .notice-dismiss', function(e) {
     90                        e.preventDefault();
     91
     92                        $('#linguise_feedback_notice_dismiss').trigger('click');
     93                        return false;
     94                    })
     95                    .on('click', '#linguise_feedback_notice_dismiss', function(e) {
     96                        e.preventDefault();
     97                        // Send ajax to dismiss URL
     98                        $.ajax({
     99                            url: $(this).prop('href'),
     100                            method: 'GET',
     101                            success: function(data) {
     102                                $('#linguise_admin_notice').fadeOut('fast', function() {
     103                                    $(this).remove();
     104                                })
     105                            }
     106                        });
     107                        return false;
     108                    });
    104109            });
    105           });
    106110        });
    107111    </script>
     
    113117    // check user capabilities
    114118    if (!current_user_can('manage_options')) {
     119        // @codeCoverageIgnoreStart
    115120        header('Content-Type: application/json; charset=UTF-8;');
    116121        echo json_encode(['success' => false]);
    117122        die();
     123        // @codeCoverageIgnoreEnd
    118124    }
    119125
  • linguise/tags/2.2.12/src/rest-ajax.php

    r3397694 r3425738  
    2626{
    2727    if (!defined('LINGUISE_SCRIPT_TRANSLATION')) {
    28         define('LINGUISE_SCRIPT_TRANSLATION', 1);
     28        define('LINGUISE_SCRIPT_TRANSLATION', 1); // @codeCoverageIgnore
    2929    }
    3030
     
    3535    $options = linguiseGetOptions();
    3636
     37    // @codeCoverageIgnoreStart
    3738    if (!empty(Configuration::getInstance()->get('debug')) && Configuration::getInstance()->get('debug')) {
    3839        if (is_int(Configuration::getInstance()->get('debug'))) {
     
    4344        Debug::enable($verbosity, Configuration::getInstance()->get('debug_ip'));
    4445    }
     46    // @codeCoverageIgnoreEnd
    4547
    4648    $route = $request->get_route();
     
    121123    list($translated_content, $response_code) = Translation::getInstance()->_translate($ch, $boundary);
    122124    if (PHP_VERSION_ID < 80000) {
     125        // @codeCoverageIgnoreStart
    123126        // phpcs:ignore PHPCompatibility.FunctionUse.RemovedFunctions.curl_closeDeprecated,Generic.PHP.DeprecatedFunctions.Deprecated -- Since PHP 8.0+, we guard it here
    124127        curl_close($ch); // Since, PHP 8+ this thing actually does not do anything (deprecated in PHP 8.5)
     128        // @codeCoverageIgnoreEnd
    125129    }
    126130
     
    142146    $reflect_lang = $req_reflect->getProperty('language');
    143147    if (PHP_VERSION_ID < 80100) {
     148        // @codeCoverageIgnoreStart
    144149        // phpcs:ignore Generic.PHP.DeprecatedFunctions.Deprecated -- Since PHP 8.0+, we guard it here
    145150        $reflect_lang->setAccessible(true); // Since PHP 8.1+, this does not do anything anymore
     151        // @codeCoverageIgnoreEnd
    146152    }
    147153    // Get the old value first
     
    163169
    164170    register_shutdown_function(function () use ($db_updated) {
     171         // @codeCoverageIgnoreStart
    165172        if ($db_updated) {
    166173            Database::getInstance()->close();
    167174        }
     175         // @codeCoverageIgnoreEnd
    168176    });
    169177
     
    192200    $tl_json_frag = $translated_fragments['wp-ajax-json'][$woo_prefix];
    193201    if (empty($tl_json_frag)) {
    194         return $response;
     202        return $response; // @codeCoverageIgnore
    195203    }
    196204
    197205    $tl_json_frag_list = $tl_json_frag['fragments'];
    198206    if (empty($tl_json_frag_list)) {
    199         return $response;
     207        return $response; // @codeCoverageIgnore
    200208    }
    201209
  • linguise/tags/2.2.12/src/synchronization-loader.php

    r3339453 r3425738  
    2121    // We don't need to sync
    2222    if (defined('REST_REQUEST') && REST_REQUEST) {
    23         return $original_data;
     23        return $original_data; // @codeCoverageIgnore
    2424    }
    2525
     
    3636   
    3737            if (!$result) {
    38                 Debug::saveError('configuration synchronization to Linguise failed:'. $token);
     38                Debug::saveError('configuration synchronization to Linguise failed:'. $token); // @codeCoverageIgnore
    3939            }
    4040        }
    41     } catch (Exception $e) {
    42         Debug::saveError('configuration synchronization to Linguise failed: ' . $e->getMessage());
     41    } catch (Exception $e) { // @codeCoverageIgnore
     42        Debug::saveError('configuration synchronization to Linguise failed: ' . $e->getMessage()); // @codeCoverageIgnore
    4343    }
    4444
     
    5353 * @return WP_REST_Response
    5454 */
    55 function update_config(WP_REST_Request $request)
     55function linguise_synchronize_update_config($request)
    5656{
    5757    $jwt_token = $request->get_header('X-Linguise-Hash');
     
    7575        $config = $synchronization->convertparamsToWPOptions($params);
    7676        $merged_config = array_merge($options, $config);
    77     } catch (Exception $e) {
    78         return new WP_Error('error', $e->getMessage(), array( 'status' => 500 ));
     77    } catch (Exception $e) { // @codeCoverageIgnore
     78        return new WP_Error('error', $e->getMessage(), array( 'status' => 500 )); // @codeCoverageIgnore
    7979    }
    8080
     
    8484}
    8585
     86// @codeCoverageIgnoreStart
    8687add_action('rest_api_init', function () {
    8788    register_rest_route('linguise/v1', '/sync', array(
    8889        'methods' => 'POST',
    89         'callback' => 'update_config',
     90        'callback' => 'linguise_synchronize_update_config',
    9091        'permission_callback' => '__return_true',
    9192    ));
    9293});
     94// @codeCoverageIgnoreEnd
  • linguise/tags/2.2.12/src/thirdparty/ajax-search-lite.php

    r3317948 r3425738  
    7474     * Decides if the Ajax Search Lite – Live Search & Filter integration should be loaded.
    7575     *
     76     * @codeCoverageIgnore
     77     *
    7678     * @return boolean
    7779     */
  • linguise/tags/2.2.12/src/thirdparty/wc/fibosearch.php

    r3349428 r3425738  
    7575     * Decides if the integration should be loaded.
    7676     *
     77     * @codeCoverageIgnore
     78     *
    7779     * @return boolean
    7880     */
     
    8486    /**
    8587     * Initializes the integration.
     88     *
     89     * @codeCoverageIgnore
    8690     *
    8791     * @return void
     
    97101     * Unload the integration
    98102     *
     103     * @codeCoverageIgnore
     104     *
    99105     * @return void
    100106     */
     
    166172     * @param string $output The HTML output to be translated
    167173     *
     174     * @codeCoverageIgnore
     175     *
    168176     * @return string The translated HTML output
    169177     */
     
    181189        // Add extra template to output
    182190        add_filter('linguise_fragment_filters', function ($filters) {
     191            // @codeCoverageIgnoreStart
    183192            $filters[] = [
    184193                'key' => 'value',
     
    194203
    195204            return $filters;
     205            // @codeCoverageIgnoreEnd
    196206        }, 15, 1);
    197207
     
    214224
    215225        if (empty($result)) {
    216             return $output;
     226            return $output; // @codeCoverageIgnore
    217227        }
    218228
    219229        if (isset($result->redirect)) {
    220230            // Somehow we got this...?
    221             return $output;
     231            return $output; // @codeCoverageIgnore
    222232        }
    223233
    224234        $translated_fragments = FragmentHandler::intoJSONFragments($result->content);
    225235        if (empty($translated_fragments)) {
    226             return $output;
     236            return $output; // @codeCoverageIgnore
    227237        }
    228238
    229239        if (!isset($translated_fragments['fibosearch-tmpl'])) {
    230             return $output;
     240            return $output; // @codeCoverageIgnore
    231241        }
    232242   
    233243        if (!isset($translated_fragments['fibosearch-tmpl']['render-output'])) {
    234             return $output;
     244            return $output; // @codeCoverageIgnore
    235245        }
    236246   
    237247        $tl_json_frag = $translated_fragments['fibosearch-tmpl']['render-output'];
    238248        if (empty($tl_json_frag)) {
    239             return $output;
     249            return $output; // @codeCoverageIgnore
    240250        }
    241251   
    242252        $tl_json_frag_list = $tl_json_frag['fragments'];
    243253        if (empty($tl_json_frag_list)) {
    244             return $output;
     254            return $output; // @codeCoverageIgnore
    245255        }
    246256
     
    250260        }
    251261
    252         return $output;
     262        return $output; // @codeCoverageIgnore
    253263    }
    254264}
  • linguise/tags/2.2.12/src/thirdparty/wc/gateway-stripe.php

    r3371505 r3425738  
    5252     * Decides if the integration should be loaded.
    5353     *
     54     * @codeCoverageIgnore
     55     *
    5456     * @return boolean
    5557     */
     
    6163    /**
    6264     * Initializes the integration.
     65     *
     66     * @codeCoverageIgnore
    6367     *
    6468     * @return void
     
    7781    /**
    7882     * Unload the integration
     83     *
     84     * @codeCoverageIgnore
    7985     *
    8086     * @return void
     
    176182   
    177183        if (!$stripe_code) {
    178             return $params;
     184            return $params; // @codeCoverageIgnore
    179185        }
    180186
  • linguise/tags/2.2.12/src/thirdparty/wc/woocommerce.php

    r3414869 r3425738  
    230230     * Determines if the integration should be loaded.
    231231     *
     232     * @codeCoverageIgnore
     233     *
    232234     * @return boolean
    233235     */
     
    239241    /**
    240242     * Load the integration
     243     *
     244     * @codeCoverageIgnore
    241245     *
    242246     * @return void
     
    279283     * Unload the integration
    280284     *
     285     * @codeCoverageIgnore
     286     *
    281287     * @return void
    282288     */
     
    311317     * Reload the integration
    312318     *
     319     * @codeCoverageIgnore
     320     *
    313321     * @return void
    314322     */
     
    323331    /**
    324332     * Initializes the common hooks required for this integration to work
     333     *
     334     * @codeCoverageIgnore
    325335     *
    326336     * @return void
     
    387397        if (!empty($site_path) && $site_path !== '/') {
    388398            // Remove the site path from the URL path
    389             $url_path = str_replace($site_path, '', $url_path);
     399            $url_path = str_replace($site_path, '', $url_path); // @codeCoverageIgnore
    390400        }
    391401
     
    413423    {
    414424        if (WPHelper::isAdminRequest()) {
    415             return;
     425            return; // @codeCoverageIgnore
    416426        }
    417427
     
    511521             */
    512522            if (is_plugin_active('funnel-builder/funnel-builder.php')) {
    513                 return add_query_arg('linguise_language', $language_meta, $endpoint);
     523                return add_query_arg('linguise_language', $language_meta, $endpoint); // @codeCoverageIgnore
    514524            }
    515525
     
    586596     * Hook WC reset password, this function will flush the reset password cookie from user browser
    587597     * when reset password is successful and it's in translated pages
     598     *
     599     * @codeCoverageIgnore
    588600     *
    589601     * @return void
     
    627639            foreach ($data as $class => $fragment) {
    628640                if (!is_string($fragment)) {
    629                     continue; // Ignore non-string fragments
     641                    // Ignore non-string fragments
     642                    continue; // @codeCoverageIgnore
    630643                }
    631644
     
    722735            return $replaced;
    723736        }
    724         return $html;
     737        return $html; // @codeCoverageIgnore
    725738    }
    726739
     
    753766            return $replaced;
    754767        }
    755         return $field;
     768        return $field; // @codeCoverageIgnore
    756769    }
    757770
  • linguise/tags/2.2.12/vendor/autoload.php

    r3402971 r3425738  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit464a2998e9c988ac7d584a14e1604ea8::getLoader();
     25return ComposerAutoloaderInit7960a36ebaed5635997fc39c8c154bac::getLoader();
  • linguise/tags/2.2.12/vendor/composer/autoload_real.php

    r3402971 r3425738  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit464a2998e9c988ac7d584a14e1604ea8
     5class ComposerAutoloaderInit7960a36ebaed5635997fc39c8c154bac
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInit464a2998e9c988ac7d584a14e1604ea8', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInit7960a36ebaed5635997fc39c8c154bac', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    27         spl_autoload_unregister(array('ComposerAutoloaderInit464a2998e9c988ac7d584a14e1604ea8', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInit7960a36ebaed5635997fc39c8c154bac', 'loadClassLoader'));
    2828
    2929        require __DIR__ . '/autoload_static.php';
    30         call_user_func(\Composer\Autoload\ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8::getInitializer($loader));
     30        call_user_func(\Composer\Autoload\ComposerStaticInit7960a36ebaed5635997fc39c8c154bac::getInitializer($loader));
    3131
    3232        $loader->register(true);
    3333
    34         $filesToLoad = \Composer\Autoload\ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8::$files;
     34        $filesToLoad = \Composer\Autoload\ComposerStaticInit7960a36ebaed5635997fc39c8c154bac::$files;
    3535        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3636            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • linguise/tags/2.2.12/vendor/composer/autoload_static.php

    r3402971 r3425738  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8
     7class ComposerStaticInit7960a36ebaed5635997fc39c8c154bac
    88{
    99    public static $files = array (
     
    156156    {
    157157        return \Closure::bind(function () use ($loader) {
    158             $loader->prefixLengthsPsr4 = ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8::$prefixLengthsPsr4;
    159             $loader->prefixDirsPsr4 = ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8::$prefixDirsPsr4;
    160             $loader->classMap = ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8::$classMap;
     158            $loader->prefixLengthsPsr4 = ComposerStaticInit7960a36ebaed5635997fc39c8c154bac::$prefixLengthsPsr4;
     159            $loader->prefixDirsPsr4 = ComposerStaticInit7960a36ebaed5635997fc39c8c154bac::$prefixDirsPsr4;
     160            $loader->classMap = ComposerStaticInit7960a36ebaed5635997fc39c8c154bac::$classMap;
    161161
    162162        }, null, ClassLoader::class);
  • linguise/tags/2.2.12/vendor/composer/installed.json

    r3402971 r3425738  
    5757        {
    5858            "name": "linguise/script-php",
    59             "version": "v1.3.43",
    60             "version_normalized": "1.3.43.0",
     59            "version": "v1.3.44",
     60            "version_normalized": "1.3.44.0",
    6161            "source": {
    6262                "type": "git",
    6363                "url": "git@bitbucket.org:linguise/script-php.git",
    64                 "reference": "6db57d8b5179ea31f2858d72442862166b8cabe7"
     64                "reference": "91cf8a78d12fb1c2caf0d01be16cdecfdf9a6641"
    6565            },
    6666            "require": {
     
    7575                "vlucas/phpdotenv": "^5.6"
    7676            },
    77             "time": "2025-11-26T03:08:27+00:00",
     77            "time": "2025-12-23T02:37:47+00:00",
    7878            "type": "library",
    7979            "installation-source": "source",
  • linguise/tags/2.2.12/vendor/composer/installed.php

    r3421512 r3425738  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => '909daa4146a0768ccbe122b904804fa40902d816',
     6        'reference' => '58497631af7ca4eddd9b65d01ea20e7544b65ab0',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'linguise/script-php' => array(
    23             'pretty_version' => 'v1.3.43',
    24             'version' => '1.3.43.0',
    25             'reference' => '6db57d8b5179ea31f2858d72442862166b8cabe7',
     23            'pretty_version' => 'v1.3.44',
     24            'version' => '1.3.44.0',
     25            'reference' => '91cf8a78d12fb1c2caf0d01be16cdecfdf9a6641',
    2626            'type' => 'library',
    2727            'install_path' => __DIR__ . '/../linguise/script-php',
     
    3232            'pretty_version' => 'dev-master',
    3333            'version' => 'dev-master',
    34             'reference' => '909daa4146a0768ccbe122b904804fa40902d816',
     34            'reference' => '58497631af7ca4eddd9b65d01ea20e7544b65ab0',
    3535            'type' => 'library',
    3636            'install_path' => __DIR__ . '/../../',
  • linguise/tags/2.2.12/vendor/linguise/script-php/.version

    r3402971 r3425738  
    1 1.3.43
     11.3.44
  • linguise/tags/2.2.12/vendor/linguise/script-php/assets/languages.json

    r3393999 r3425738  
    5959    "original_name": "Български",
    6060    "code": "bg"
     61  },
     62  "my": {
     63    "name": "Burmese",
     64    "original_name": "မြန်မာဘာသာ",
     65    "code": "my"
    6166  },
    6267  "ca": {
  • linguise/trunk/assets/languages.json

    r3393999 r3425738  
    7676    "rtl": false,
    7777    "wp_code": "bg_BG"
     78  },
     79  "my": {
     80    "name": "Burmese",
     81    "original_name": "မြန်မာဘာသာ",
     82    "code": "my",
     83    "rtl": false
    7884  },
    7985  "ca": {
  • linguise/trunk/linguise.php

    r3421512 r3425738  
    55 * Plugin URI: https://www.linguise.com/
    66 * Description: Linguise translation plugin
    7  * Version:2.2.11
     7 * Version:2.2.12
    88 * Text Domain: linguise
    99 * Domain Path: /languages
  • linguise/trunk/readme.txt

    r3421512 r3425738  
    44Requires at least: 4.0
    55Tested up to: 6.9
    6 Stable tag: 2.2.11
     6Stable tag: 2.2.12
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    107107
    108108== Changelog ==
     109= 2.2.12 =
     110- Fix: Missing flags: Myanmar / Burmese
     111
    109112= 2.2.11 =
    110113- Feature: Support Cookie Law Info/CookieYes
  • linguise/trunk/src/Helper.php

    r3415968 r3425738  
    2626    {
    2727        $admin_url = strtolower(admin_url());
    28 
    29         if (strpos(home_url(add_query_arg(null, null)), $admin_url) === 0) {
    30             if (0 === strpos(strtolower(wp_get_referer()), $admin_url)) {
     28        $referrer  = strtolower(wp_get_referer());
     29        $current_url = home_url(add_query_arg(null, null));
     30
     31        if (strpos($current_url, $admin_url) === 0) {
     32            if (0 === strpos($referrer, $admin_url)) {
    3133                return true;
    3234            } else {
    3335                if (function_exists('wp_doing_ajax')) {
    34                     return !wp_doing_ajax();
     36                    return !wp_doing_ajax(); // @codeCoverageIgnore
    3537                } else {
    36                     return !(defined('DOING_AJAX') && DOING_AJAX );
     38                    return !(defined('DOING_AJAX') && DOING_AJAX);
    3739                }
    3840            }
     
    99101        if (!empty($site_path) && strpos($path, $site_path) === 0) {
    100102            // Remove the site path from the URL
    101             $path = substr($path, strlen($site_path));
     103            $path = substr($path, strlen($site_path)); // @codeCoverageIgnore
    102104        }
    103105
     
    192194
    193195        if (!$linguise_options) {
    194             return false;
     196            return false; // @codeCoverageIgnore
    195197        }
    196198
     
    214216
    215217            if (self::localeCompare($lang_key, $locale)) {
    216                 return $lang_key;
     218                return $lang_key; // @codeCoverageIgnore
    217219            }
    218220        }
     
    288290        // Check if LINGUISE_PLUGIN_URL has / at the end
    289291        if (substr(LINGUISE_PLUGIN_URL, -1) === '/') {
    290             return LINGUISE_PLUGIN_URL . $path;
     292            return LINGUISE_PLUGIN_URL . $path; // @codeCoverageIgnore
    291293        }
    292294
     
    324326            return null;
    325327        }
    326    
     328
    327329        if (!ctype_xdigit($hex_color)) {
    328330            return null;
    329331        }
    330    
     332
    331333        $r = hexdec(substr($hex_color, 0, 2));
    332334        $g = hexdec(substr($hex_color, 2, 2));
    333335        $b = hexdec(substr($hex_color, 4, 2));
    334    
     336
    335337        return [
    336338            'r' => $r,
     
    384386        }
    385387
     388        // @codeCoverageIgnoreStart
    386389        $keys = array_keys($arrOrObject);
    387390        return implode('', $keys) !== implode(range(0, count($keys) - 1));
     391        // @codeCoverageIgnoreEnd
    388392    }
    389393
  • linguise/trunk/src/admin/Helper.php

    r3362901 r3425738  
    2727            $errors = defined('LINGUISE_TESTING_ERRORS') ? LINGUISE_TESTING_ERRORS : '';
    2828        } else {
     29            // @codeCoverageIgnoreStart
    2930            $errorsFile = LINGUISE_PLUGIN_PATH . DIRECTORY_SEPARATOR. 'vendor' . DIRECTORY_SEPARATOR . 'linguise' . DIRECTORY_SEPARATOR . 'script-php' . DIRECTORY_SEPARATOR . 'errors.php';
    3031            if (file_exists($errorsFile)) {
     
    3334                $errors = '';
    3435            }
     36            // @codeCoverageIgnoreEnd
    3537        }
    3638
    3739        $errorsList = [];
    3840        if (!preg_match_all('/^\[([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2})\] (?:([0-9]{3}): )?(.*)$/m', $errors, $matches, PREG_SET_ORDER)) {
    39             return $errorsList;
     41            return $errorsList; // @codeCoverageIgnore
    4042        }
    4143
     
    156158            return 'Testing (' .  $lang_code . ')'; // In testing mode, we return the code as is
    157159        }
     160        // @codeCoverageIgnoreStart
    158161        require_once ABSPATH . 'wp-admin/includes/translation-install.php';
    159162        $translations = wp_get_available_translations();
     
    163166   
    164167        return 'Unknown';
     168        // @codeCoverageIgnoreEnd
    165169    }
    166170
     
    169173     *
    170174     * @param string $mode The mode to check for multisite
     175     *
     176     * @codeCoverageIgnore
    171177     *
    172178     * @return array the multisite information
  • linguise/trunk/src/admin/menu.php

    r3079113 r3425738  
    11<?php
     2
    23/* Prohibit direct script loading */
    34defined('ABSPATH') || die('No direct script access allowed!');
     
    6768                        <label class="menu-item-title">
    6869                            <input type="checkbox" class="menu-item-checkbox"
    69                                    name="menu-item[<?php echo (int)$_nav_menu_placeholder; ?>][menu-item-object-id]"
    70                                    value="-1"> <?php esc_html_e('Linguise Languages', 'linguise'); ?>
     70                                name="menu-item[<?php echo (int)$_nav_menu_placeholder; ?>][menu-item-object-id]"
     71                                value="-1"> <?php esc_html_e('Linguise Languages', 'linguise'); ?>
    7172                        </label>
    7273                        <input type="hidden" class="menu-item-type"
    73                                name="menu-item[<?php echo (int)$_nav_menu_placeholder; ?>][menu-item-type]"
    74                                value="custom">
     74                            name="menu-item[<?php echo (int)$_nav_menu_placeholder; ?>][menu-item-type]"
     75                            value="custom">
    7576                        <input type="hidden" class="menu-item-title"
    76                                name="menu-item[<?php echo (int)$_nav_menu_placeholder; ?>][menu-item-title]"
    77                                value="<?php esc_html_e('Linguise Languages', 'linguise'); ?>">
     77                            name="menu-item[<?php echo (int)$_nav_menu_placeholder; ?>][menu-item-title]"
     78                            value="<?php esc_html_e('Linguise Languages', 'linguise'); ?>">
    7879                        <input type="hidden" class="menu-item-url"
    79                                name="menu-item[<?php echo (int)$_nav_menu_placeholder; ?>][menu-item-url]"
    80                                value="#linguise_switcher">
     80                            name="menu-item[<?php echo (int)$_nav_menu_placeholder; ?>][menu-item-url]"
     81                            value="#linguise_switcher">
    8182                    </li>
    8283                </ul>
     
    8586                <span class="add-to-menu">
    8687                    <input type="submit" <?php disabled($nav_menu_selected_id, 0); ?> class="button-secondary submit-add-to-menu right"
    87                            value="<?php esc_attr_e('Add to Menu', 'linguise'); ?>" name="add-post-type-menu-item"
    88                            id="submit-posttype-lang-switch">
     88                        value="<?php esc_attr_e('Add to Menu', 'linguise'); ?>" name="add-post-type-menu-item"
     89                        id="submit-posttype-lang-switch">
    8990                    <span class="spinner"></span>
    9091                </span>
  • linguise/trunk/src/cache.php

    r3197925 r3425738  
    1111    // check user capabilities
    1212    if (!current_user_can('manage_options')) {
    13         header('Content-Type: application/json; charset=UTF-8;');
     13        if (!defined('LINGUISE_WP_PLUGIN_TEST_MODE')) {
     14            header('Content-Type: application/json; charset=UTF-8;');
     15        }
    1416        echo json_encode(['success' => false]);
    15         die();
     17        if (defined('LINGUISE_WP_PLUGIN_TEST_MODE')) {
     18            return;
     19        }
     20        die(); // @codeCoverageIgnore
    1621    }
    1722
  • linguise/trunk/src/constants.php

    r3421512 r3425738  
    11<?php
    22if (!defined('LINGUISE_SCRIPT_TRANSLATION_VERSION')) {
    3     define('LINGUISE_SCRIPT_TRANSLATION_VERSION', 'wordpress_plugin/2.2.11');
     3    define('LINGUISE_SCRIPT_TRANSLATION_VERSION', 'wordpress_plugin/2.2.12');
    44}
    55
    66if (!defined('LINGUISE_VERSION')) {
    7     define('LINGUISE_VERSION', '2.2.11');
     7    define('LINGUISE_VERSION', '2.2.12');
    88}
  • linguise/trunk/src/install.php

    r3335243 r3425738  
    11<?php
     2
    23add_action('admin_init', function () {
    34    $installed_version = get_option('linguise_version', null);
     
    910         */
    1011        if (!defined('LINGUISE_SCRIPT_TRANSLATION')) {
    11             define('LINGUISE_SCRIPT_TRANSLATION', 1);
     12            define('LINGUISE_SCRIPT_TRANSLATION', 1); // @codeCoverageIgnore
    1213        }
    1314        require_once(__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'linguise' . DIRECTORY_SEPARATOR . 'script-php' . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'Databases' . DIRECTORY_SEPARATOR . 'Mysql.php');
     
    8485    <script type="text/javascript">
    8586        jQuery(function($) {
    86           $(document).ready(function() {
    87             $(document).on('click', '#linguise_admin_notice .notice-dismiss', function(e) {
    88               e.preventDefault();
    89               $('#linguise_feedback_notice_dismiss').trigger('click');
    90               return false;
    91             }).on('click', '#linguise_feedback_notice_dismiss', function(e) {
    92               e.preventDefault();
    93               // Send ajax to dismiss URL
    94               $.ajax({
    95                 url: $(this).prop('href'),
    96                 method: 'GET',
    97                 success: function(data) {
    98                   $('#linguise_admin_notice').fadeOut('fast', function() {
    99                     $(this).remove();
    100                   })
    101                 }
    102               });
    103               return false;
     87            $(document).ready(function() {
     88                $(document)
     89                    .on('click', '#linguise_admin_notice .notice-dismiss', function(e) {
     90                        e.preventDefault();
     91
     92                        $('#linguise_feedback_notice_dismiss').trigger('click');
     93                        return false;
     94                    })
     95                    .on('click', '#linguise_feedback_notice_dismiss', function(e) {
     96                        e.preventDefault();
     97                        // Send ajax to dismiss URL
     98                        $.ajax({
     99                            url: $(this).prop('href'),
     100                            method: 'GET',
     101                            success: function(data) {
     102                                $('#linguise_admin_notice').fadeOut('fast', function() {
     103                                    $(this).remove();
     104                                })
     105                            }
     106                        });
     107                        return false;
     108                    });
    104109            });
    105           });
    106110        });
    107111    </script>
     
    113117    // check user capabilities
    114118    if (!current_user_can('manage_options')) {
     119        // @codeCoverageIgnoreStart
    115120        header('Content-Type: application/json; charset=UTF-8;');
    116121        echo json_encode(['success' => false]);
    117122        die();
     123        // @codeCoverageIgnoreEnd
    118124    }
    119125
  • linguise/trunk/src/rest-ajax.php

    r3397694 r3425738  
    2626{
    2727    if (!defined('LINGUISE_SCRIPT_TRANSLATION')) {
    28         define('LINGUISE_SCRIPT_TRANSLATION', 1);
     28        define('LINGUISE_SCRIPT_TRANSLATION', 1); // @codeCoverageIgnore
    2929    }
    3030
     
    3535    $options = linguiseGetOptions();
    3636
     37    // @codeCoverageIgnoreStart
    3738    if (!empty(Configuration::getInstance()->get('debug')) && Configuration::getInstance()->get('debug')) {
    3839        if (is_int(Configuration::getInstance()->get('debug'))) {
     
    4344        Debug::enable($verbosity, Configuration::getInstance()->get('debug_ip'));
    4445    }
     46    // @codeCoverageIgnoreEnd
    4547
    4648    $route = $request->get_route();
     
    121123    list($translated_content, $response_code) = Translation::getInstance()->_translate($ch, $boundary);
    122124    if (PHP_VERSION_ID < 80000) {
     125        // @codeCoverageIgnoreStart
    123126        // phpcs:ignore PHPCompatibility.FunctionUse.RemovedFunctions.curl_closeDeprecated,Generic.PHP.DeprecatedFunctions.Deprecated -- Since PHP 8.0+, we guard it here
    124127        curl_close($ch); // Since, PHP 8+ this thing actually does not do anything (deprecated in PHP 8.5)
     128        // @codeCoverageIgnoreEnd
    125129    }
    126130
     
    142146    $reflect_lang = $req_reflect->getProperty('language');
    143147    if (PHP_VERSION_ID < 80100) {
     148        // @codeCoverageIgnoreStart
    144149        // phpcs:ignore Generic.PHP.DeprecatedFunctions.Deprecated -- Since PHP 8.0+, we guard it here
    145150        $reflect_lang->setAccessible(true); // Since PHP 8.1+, this does not do anything anymore
     151        // @codeCoverageIgnoreEnd
    146152    }
    147153    // Get the old value first
     
    163169
    164170    register_shutdown_function(function () use ($db_updated) {
     171         // @codeCoverageIgnoreStart
    165172        if ($db_updated) {
    166173            Database::getInstance()->close();
    167174        }
     175         // @codeCoverageIgnoreEnd
    168176    });
    169177
     
    192200    $tl_json_frag = $translated_fragments['wp-ajax-json'][$woo_prefix];
    193201    if (empty($tl_json_frag)) {
    194         return $response;
     202        return $response; // @codeCoverageIgnore
    195203    }
    196204
    197205    $tl_json_frag_list = $tl_json_frag['fragments'];
    198206    if (empty($tl_json_frag_list)) {
    199         return $response;
     207        return $response; // @codeCoverageIgnore
    200208    }
    201209
  • linguise/trunk/src/synchronization-loader.php

    r3339453 r3425738  
    2121    // We don't need to sync
    2222    if (defined('REST_REQUEST') && REST_REQUEST) {
    23         return $original_data;
     23        return $original_data; // @codeCoverageIgnore
    2424    }
    2525
     
    3636   
    3737            if (!$result) {
    38                 Debug::saveError('configuration synchronization to Linguise failed:'. $token);
     38                Debug::saveError('configuration synchronization to Linguise failed:'. $token); // @codeCoverageIgnore
    3939            }
    4040        }
    41     } catch (Exception $e) {
    42         Debug::saveError('configuration synchronization to Linguise failed: ' . $e->getMessage());
     41    } catch (Exception $e) { // @codeCoverageIgnore
     42        Debug::saveError('configuration synchronization to Linguise failed: ' . $e->getMessage()); // @codeCoverageIgnore
    4343    }
    4444
     
    5353 * @return WP_REST_Response
    5454 */
    55 function update_config(WP_REST_Request $request)
     55function linguise_synchronize_update_config($request)
    5656{
    5757    $jwt_token = $request->get_header('X-Linguise-Hash');
     
    7575        $config = $synchronization->convertparamsToWPOptions($params);
    7676        $merged_config = array_merge($options, $config);
    77     } catch (Exception $e) {
    78         return new WP_Error('error', $e->getMessage(), array( 'status' => 500 ));
     77    } catch (Exception $e) { // @codeCoverageIgnore
     78        return new WP_Error('error', $e->getMessage(), array( 'status' => 500 )); // @codeCoverageIgnore
    7979    }
    8080
     
    8484}
    8585
     86// @codeCoverageIgnoreStart
    8687add_action('rest_api_init', function () {
    8788    register_rest_route('linguise/v1', '/sync', array(
    8889        'methods' => 'POST',
    89         'callback' => 'update_config',
     90        'callback' => 'linguise_synchronize_update_config',
    9091        'permission_callback' => '__return_true',
    9192    ));
    9293});
     94// @codeCoverageIgnoreEnd
  • linguise/trunk/src/thirdparty/ajax-search-lite.php

    r3317948 r3425738  
    7474     * Decides if the Ajax Search Lite – Live Search & Filter integration should be loaded.
    7575     *
     76     * @codeCoverageIgnore
     77     *
    7678     * @return boolean
    7779     */
  • linguise/trunk/src/thirdparty/wc/fibosearch.php

    r3349428 r3425738  
    7575     * Decides if the integration should be loaded.
    7676     *
     77     * @codeCoverageIgnore
     78     *
    7779     * @return boolean
    7880     */
     
    8486    /**
    8587     * Initializes the integration.
     88     *
     89     * @codeCoverageIgnore
    8690     *
    8791     * @return void
     
    97101     * Unload the integration
    98102     *
     103     * @codeCoverageIgnore
     104     *
    99105     * @return void
    100106     */
     
    166172     * @param string $output The HTML output to be translated
    167173     *
     174     * @codeCoverageIgnore
     175     *
    168176     * @return string The translated HTML output
    169177     */
     
    181189        // Add extra template to output
    182190        add_filter('linguise_fragment_filters', function ($filters) {
     191            // @codeCoverageIgnoreStart
    183192            $filters[] = [
    184193                'key' => 'value',
     
    194203
    195204            return $filters;
     205            // @codeCoverageIgnoreEnd
    196206        }, 15, 1);
    197207
     
    214224
    215225        if (empty($result)) {
    216             return $output;
     226            return $output; // @codeCoverageIgnore
    217227        }
    218228
    219229        if (isset($result->redirect)) {
    220230            // Somehow we got this...?
    221             return $output;
     231            return $output; // @codeCoverageIgnore
    222232        }
    223233
    224234        $translated_fragments = FragmentHandler::intoJSONFragments($result->content);
    225235        if (empty($translated_fragments)) {
    226             return $output;
     236            return $output; // @codeCoverageIgnore
    227237        }
    228238
    229239        if (!isset($translated_fragments['fibosearch-tmpl'])) {
    230             return $output;
     240            return $output; // @codeCoverageIgnore
    231241        }
    232242   
    233243        if (!isset($translated_fragments['fibosearch-tmpl']['render-output'])) {
    234             return $output;
     244            return $output; // @codeCoverageIgnore
    235245        }
    236246   
    237247        $tl_json_frag = $translated_fragments['fibosearch-tmpl']['render-output'];
    238248        if (empty($tl_json_frag)) {
    239             return $output;
     249            return $output; // @codeCoverageIgnore
    240250        }
    241251   
    242252        $tl_json_frag_list = $tl_json_frag['fragments'];
    243253        if (empty($tl_json_frag_list)) {
    244             return $output;
     254            return $output; // @codeCoverageIgnore
    245255        }
    246256
     
    250260        }
    251261
    252         return $output;
     262        return $output; // @codeCoverageIgnore
    253263    }
    254264}
  • linguise/trunk/src/thirdparty/wc/gateway-stripe.php

    r3371505 r3425738  
    5252     * Decides if the integration should be loaded.
    5353     *
     54     * @codeCoverageIgnore
     55     *
    5456     * @return boolean
    5557     */
     
    6163    /**
    6264     * Initializes the integration.
     65     *
     66     * @codeCoverageIgnore
    6367     *
    6468     * @return void
     
    7781    /**
    7882     * Unload the integration
     83     *
     84     * @codeCoverageIgnore
    7985     *
    8086     * @return void
     
    176182   
    177183        if (!$stripe_code) {
    178             return $params;
     184            return $params; // @codeCoverageIgnore
    179185        }
    180186
  • linguise/trunk/src/thirdparty/wc/woocommerce.php

    r3414869 r3425738  
    230230     * Determines if the integration should be loaded.
    231231     *
     232     * @codeCoverageIgnore
     233     *
    232234     * @return boolean
    233235     */
     
    239241    /**
    240242     * Load the integration
     243     *
     244     * @codeCoverageIgnore
    241245     *
    242246     * @return void
     
    279283     * Unload the integration
    280284     *
     285     * @codeCoverageIgnore
     286     *
    281287     * @return void
    282288     */
     
    311317     * Reload the integration
    312318     *
     319     * @codeCoverageIgnore
     320     *
    313321     * @return void
    314322     */
     
    323331    /**
    324332     * Initializes the common hooks required for this integration to work
     333     *
     334     * @codeCoverageIgnore
    325335     *
    326336     * @return void
     
    387397        if (!empty($site_path) && $site_path !== '/') {
    388398            // Remove the site path from the URL path
    389             $url_path = str_replace($site_path, '', $url_path);
     399            $url_path = str_replace($site_path, '', $url_path); // @codeCoverageIgnore
    390400        }
    391401
     
    413423    {
    414424        if (WPHelper::isAdminRequest()) {
    415             return;
     425            return; // @codeCoverageIgnore
    416426        }
    417427
     
    511521             */
    512522            if (is_plugin_active('funnel-builder/funnel-builder.php')) {
    513                 return add_query_arg('linguise_language', $language_meta, $endpoint);
     523                return add_query_arg('linguise_language', $language_meta, $endpoint); // @codeCoverageIgnore
    514524            }
    515525
     
    586596     * Hook WC reset password, this function will flush the reset password cookie from user browser
    587597     * when reset password is successful and it's in translated pages
     598     *
     599     * @codeCoverageIgnore
    588600     *
    589601     * @return void
     
    627639            foreach ($data as $class => $fragment) {
    628640                if (!is_string($fragment)) {
    629                     continue; // Ignore non-string fragments
     641                    // Ignore non-string fragments
     642                    continue; // @codeCoverageIgnore
    630643                }
    631644
     
    722735            return $replaced;
    723736        }
    724         return $html;
     737        return $html; // @codeCoverageIgnore
    725738    }
    726739
     
    753766            return $replaced;
    754767        }
    755         return $field;
     768        return $field; // @codeCoverageIgnore
    756769    }
    757770
  • linguise/trunk/vendor/autoload.php

    r3402971 r3425738  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit464a2998e9c988ac7d584a14e1604ea8::getLoader();
     25return ComposerAutoloaderInit7960a36ebaed5635997fc39c8c154bac::getLoader();
  • linguise/trunk/vendor/composer/autoload_real.php

    r3402971 r3425738  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit464a2998e9c988ac7d584a14e1604ea8
     5class ComposerAutoloaderInit7960a36ebaed5635997fc39c8c154bac
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInit464a2998e9c988ac7d584a14e1604ea8', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInit7960a36ebaed5635997fc39c8c154bac', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    27         spl_autoload_unregister(array('ComposerAutoloaderInit464a2998e9c988ac7d584a14e1604ea8', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInit7960a36ebaed5635997fc39c8c154bac', 'loadClassLoader'));
    2828
    2929        require __DIR__ . '/autoload_static.php';
    30         call_user_func(\Composer\Autoload\ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8::getInitializer($loader));
     30        call_user_func(\Composer\Autoload\ComposerStaticInit7960a36ebaed5635997fc39c8c154bac::getInitializer($loader));
    3131
    3232        $loader->register(true);
    3333
    34         $filesToLoad = \Composer\Autoload\ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8::$files;
     34        $filesToLoad = \Composer\Autoload\ComposerStaticInit7960a36ebaed5635997fc39c8c154bac::$files;
    3535        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3636            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • linguise/trunk/vendor/composer/autoload_static.php

    r3402971 r3425738  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8
     7class ComposerStaticInit7960a36ebaed5635997fc39c8c154bac
    88{
    99    public static $files = array (
     
    156156    {
    157157        return \Closure::bind(function () use ($loader) {
    158             $loader->prefixLengthsPsr4 = ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8::$prefixLengthsPsr4;
    159             $loader->prefixDirsPsr4 = ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8::$prefixDirsPsr4;
    160             $loader->classMap = ComposerStaticInit464a2998e9c988ac7d584a14e1604ea8::$classMap;
     158            $loader->prefixLengthsPsr4 = ComposerStaticInit7960a36ebaed5635997fc39c8c154bac::$prefixLengthsPsr4;
     159            $loader->prefixDirsPsr4 = ComposerStaticInit7960a36ebaed5635997fc39c8c154bac::$prefixDirsPsr4;
     160            $loader->classMap = ComposerStaticInit7960a36ebaed5635997fc39c8c154bac::$classMap;
    161161
    162162        }, null, ClassLoader::class);
  • linguise/trunk/vendor/composer/installed.json

    r3402971 r3425738  
    5757        {
    5858            "name": "linguise/script-php",
    59             "version": "v1.3.43",
    60             "version_normalized": "1.3.43.0",
     59            "version": "v1.3.44",
     60            "version_normalized": "1.3.44.0",
    6161            "source": {
    6262                "type": "git",
    6363                "url": "git@bitbucket.org:linguise/script-php.git",
    64                 "reference": "6db57d8b5179ea31f2858d72442862166b8cabe7"
     64                "reference": "91cf8a78d12fb1c2caf0d01be16cdecfdf9a6641"
    6565            },
    6666            "require": {
     
    7575                "vlucas/phpdotenv": "^5.6"
    7676            },
    77             "time": "2025-11-26T03:08:27+00:00",
     77            "time": "2025-12-23T02:37:47+00:00",
    7878            "type": "library",
    7979            "installation-source": "source",
  • linguise/trunk/vendor/composer/installed.php

    r3421512 r3425738  
    44        'pretty_version' => 'dev-master',
    55        'version' => 'dev-master',
    6         'reference' => '909daa4146a0768ccbe122b904804fa40902d816',
     6        'reference' => '58497631af7ca4eddd9b65d01ea20e7544b65ab0',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        'linguise/script-php' => array(
    23             'pretty_version' => 'v1.3.43',
    24             'version' => '1.3.43.0',
    25             'reference' => '6db57d8b5179ea31f2858d72442862166b8cabe7',
     23            'pretty_version' => 'v1.3.44',
     24            'version' => '1.3.44.0',
     25            'reference' => '91cf8a78d12fb1c2caf0d01be16cdecfdf9a6641',
    2626            'type' => 'library',
    2727            'install_path' => __DIR__ . '/../linguise/script-php',
     
    3232            'pretty_version' => 'dev-master',
    3333            'version' => 'dev-master',
    34             'reference' => '909daa4146a0768ccbe122b904804fa40902d816',
     34            'reference' => '58497631af7ca4eddd9b65d01ea20e7544b65ab0',
    3535            'type' => 'library',
    3636            'install_path' => __DIR__ . '/../../',
  • linguise/trunk/vendor/linguise/script-php/.version

    r3402971 r3425738  
    1 1.3.43
     11.3.44
  • linguise/trunk/vendor/linguise/script-php/assets/languages.json

    r3393999 r3425738  
    5959    "original_name": "Български",
    6060    "code": "bg"
     61  },
     62  "my": {
     63    "name": "Burmese",
     64    "original_name": "မြန်မာဘာသာ",
     65    "code": "my"
    6166  },
    6267  "ca": {
Note: See TracChangeset for help on using the changeset viewer.