Plugin Directory

Timestamp:
12/12/2023 08:02:37 PM (8 months ago)
Author:
LiteSpeedTech
Message:

Release v6.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • litespeed-cache/trunk/src/doc.cls.php

    r2977143 r3009052  
    1212namespace LiteSpeed;
    1313
    14 defined('WPINC') || exit;
     14defined('WPINC') || exit;
    1515
    1616class Doc
     
    2626    public static function maybe_on_by_gm($id)
    2727    {
    28         if (apply_filters('litespeed_conf', $id)) return;
    29         if (!apply_filters('litespeed_conf', Base::O_GUEST)) return;
    30         if (!apply_filters('litespeed_conf', Base::O_GUEST_OPTM)) return;
     28        if (apply_filters('litespeed_conf', $id)) {
     29            return;
     30        }
     31        if (!apply_filters('litespeed_conf', Base::O_GUEST)) {
     32            return;
     33        }
     34        if (!apply_filters('litespeed_conf', Base::O_GUEST_OPTM)) {
     35            return;
     36        }
    3137        echo '<font class="litespeed-warning">';
    32         echo '⚠️ ' . sprintf(__('This setting is %1$s for certain qualifying requests due to %2$s!', 'litespeed-cache'), '<code>' . __('ON', 'litespeed-cache') . '</code>', Lang::title(Base::O_GUEST_OPTM));
     38        echo '⚠️ ' .
     39            sprintf(
     40                __('This setting is %1$s for certain qualifying requests due to %2$s!', 'litespeed-cache'),
     41                '<code>' . __('ON', 'litespeed-cache') . '</code>',
     42                Lang::title(Base::O_GUEST_OPTM)
     43            );
    3344        self::learn_more('https://docs.litespeedtech.com/lscache/lscwp/general/#guest-optimization');
    3445        echo '</font>';
     
    5667    public static function privacy_policy()
    5768    {
    58         return __('This site utilizes caching in order to facilitate a faster response time and better user experience. Caching potentially stores a duplicate copy of every web page that is on display on this site. All cache files are temporary, and are never accessed by any third party, except as necessary to obtain technical support from the cache plugin vendor. Cache files expire on a schedule set by the site administrator, but may easily be purged by the admin before their natural expiration, if necessary. We may use QUIC.cloud services to process & cache your data temporarily.', 'litespeed-cache')
    59             . sprintf(__('Please see %s for more details.', 'litespeed-cache'), '<a href="https://quic.cloud/privacy-policy/" target="_blank">https://quic.cloud/privacy-policy/</a>');
     69        return __(
     70            'This site utilizes caching in order to facilitate a faster response time and better user experience. Caching potentially stores a duplicate copy of every web page that is on display on this site. All cache files are temporary, and are never accessed by any third party, except as necessary to obtain technical support from the cache plugin vendor. Cache files expire on a schedule set by the site administrator, but may easily be purged by the admin before their natural expiration, if necessary. We may use QUIC.cloud services to process & cache your data temporarily.',
     71            'litespeed-cache'
     72        ) .
     73            sprintf(
     74                __('Please see %s for more details.', 'litespeed-cache'),
     75                '<a href="https://quic.cloud/privacy-policy/" target="_blank">https://quic.cloud/privacy-policy/</a>'
     76            );
    6077    }
    61 
    6278
    6379    /**
     
    128144        echo '<font class="litespeed-primary">';
    129145        echo '⚠️ ' . __('This setting will edit the .htaccess file.', 'litespeed-cache');
    130         echo ' <a href="https://docs.litespeedtech.com/lscache/lscwp/toolbox/#edit-htaccess-tab" target="_blank" class="litespeed-learn-more">' . __('Learn More', 'litespeed-cache') . '</a>';
     146        echo ' <a href="https://docs.litespeedtech.com/lscache/lscwp/toolbox/#edit-htaccess-tab" target="_blank" class="litespeed-learn-more">' .
     147            __('Learn More', 'litespeed-cache') .
     148            '</a>';
    131149        echo '</font>';
    132150    }
     
    155173    public static function queue_issues($return = false)
    156174    {
    157         $str = '<div class="litespeed-desc">'
    158             . esc_html__('The queue is processed asynchronously. It may take time.', 'litespeed-cache')
    159             . self::learn_more('https://docs.litespeedtech.com/lscache/lscwp/troubleshoot/#quiccloud-queue-issues', false, false, false, true)
    160             . '</div>';
     175        $str =
     176            '<div class="litespeed-desc">' .
     177            esc_html__('The queue is processed asynchronously. It may take time.', 'litespeed-cache') .
     178            self::learn_more('https://docs.litespeedtech.com/lscache/lscwp/troubleshoot/#quiccloud-queue-issues', false, false, false, true) .
     179            '</div>';
    161180        if ($return) {
    162181            return $str;
Note: See TracChangeset for help on using the changeset viewer.