Changeset 2448904
- Timestamp:
- 01/01/2021 07:17:34 PM (5 years ago)
- Location:
- optipic
- Files:
-
- 15 added
- 4 edited
-
tags/1.10.0 (added)
-
tags/1.10.0/images (added)
-
tags/1.10.0/images/op_logo.png (added)
-
tags/1.10.0/includes (added)
-
tags/1.10.0/includes/functions.php (added)
-
tags/1.10.0/includes/optipic-cdn-php (added)
-
tags/1.10.0/includes/optipic-cdn-php/ImgUrlConverter.php (added)
-
tags/1.10.0/includes/settings.php (added)
-
tags/1.10.0/includes/template_loader.php (added)
-
tags/1.10.0/optipic-ru_RU.mo (added)
-
tags/1.10.0/optipic-ru_RU.po (added)
-
tags/1.10.0/optipic.php (added)
-
tags/1.10.0/optipic.pot (added)
-
tags/1.10.0/readme.txt (added)
-
tags/1.10.0/uninstall.php (added)
-
trunk/includes/optipic-cdn-php/ImgUrlConverter.php (modified) (4 diffs)
-
trunk/includes/settings.php (modified) (1 diff)
-
trunk/optipic.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
optipic/trunk/includes/optipic-cdn-php/ImgUrlConverter.php
r2439251 r2448904 12 12 13 13 class ImgUrlConverter { 14 15 /** 16 * Library version number 17 */ 18 const VERSION = '1.10'; 14 19 15 20 /** … … 173 178 if($gziped) { 174 179 $content = gzencode($content); 180 181 // modify Content-Length if it's already sent 182 $headersList = self::getResponseHeadersList(); 183 if(is_array($headersList) && !empty($headersList['Content-Length'])) { 184 header('Content-Length: ' . strlen($content)); 185 } 175 186 } 176 187 … … 348 359 return $relativeUrl; 349 360 } 361 if(substr($relativeUrl, 0, 2)=='\/') { // for json-encoded urls when / --> \/ 362 return $relativeUrl; 363 } 350 364 351 365 if(!$baseUrl) { … … 370 384 return $baseUrl; 371 385 } 386 387 public static function getResponseHeadersList() { 388 $list = array(); 389 390 $headersList = headers_list(); 391 if(is_array($headersList)) { 392 foreach($headersList as $row) { 393 list($headerKey, $headerValue) = explode(":", $row); 394 $headerKey = trim($headerKey); 395 $headerValue = trim($headerValue); 396 $list[$headerKey] = $headerValue; 397 } 398 } 399 400 return $list; 401 } 372 402 } 373 403 ?> -
optipic/trunk/includes/settings.php
r2445242 r2448904 87 87 $siteId = !empty($optipic_options['cdn_site_id'])? $optipic_options['cdn_site_id']: ''; 88 88 ?> 89 <script src="https://optipic.io/api/cp/stat?domain=<?=$_SERVER["HTTP_HOST"]?>&sid=<?=$siteId?>&cms=wordpress&stype=cdn&append_to=<?=urlencode("#optipic-settings-form-wrap")?>&version=1. 8.1"></script>89 <script src="https://optipic.io/api/cp/stat?domain=<?=$_SERVER["HTTP_HOST"]?>&sid=<?=$siteId?>&cms=wordpress&stype=cdn&append_to=<?=urlencode("#optipic-settings-form-wrap")?>&version=1.10.0"></script> -
optipic/trunk/optipic.php
r2445242 r2448904 4 4 Plugin URI: https://optipic.io/en/webp/wordpress/ 5 5 Description: OptiPic.io - image optimization via smart CDN. The module automates the process of optimizing and compressing all images on the site according to the recommendations of Google PageSpeed Insights. 6 Version: 1. 8.16 Version: 1.10.0 7 7 Author: OptiPic.io 8 8 Author URI: https://optipic.io/en/ -
optipic/trunk/readme.txt
r2445242 r2448904 4 4 Requires at least: 4.0 5 5 Tested up to: 5.5.3 6 Stable tag: 1. 8.16 Stable tag: 1.10.0 7 7 License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 8 8 … … 55 55 * Improved interface. 56 56 * Optimized images replacing logic. 57 58 = 1.10.0 = 59 * Optimized images replacing logic.
Note: See TracChangeset
for help on using the changeset viewer.