Changeset 3009052 for litespeed-cache/trunk/src/doc.cls.php
- Timestamp:
- 12/12/2023 08:02:37 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
litespeed-cache/trunk/src/doc.cls.php
r2977143 r3009052 12 12 namespace LiteSpeed; 13 13 14 defined('WPINC') || exit ;14 defined('WPINC') || exit; 15 15 16 16 class Doc … … 26 26 public static function maybe_on_by_gm($id) 27 27 { 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 } 31 37 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 ); 33 44 self::learn_more('https://docs.litespeedtech.com/lscache/lscwp/general/#guest-optimization'); 34 45 echo '</font>'; … … 56 67 public static function privacy_policy() 57 68 { 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 ); 60 77 } 61 62 78 63 79 /** … … 128 144 echo '<font class="litespeed-primary">'; 129 145 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>'; 131 149 echo '</font>'; 132 150 } … … 155 173 public static function queue_issues($return = false) 156 174 { 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>'; 161 180 if ($return) { 162 181 return $str;
Note: See TracChangeset
for help on using the changeset viewer.