Changeset 2643600
- Timestamp:
- 12/13/2021 10:30:16 PM (4 years ago)
- Location:
- optipic
- Files:
-
- 15 added
- 4 edited
-
tags/1.25.1 (added)
-
tags/1.25.1/images (added)
-
tags/1.25.1/images/op_logo.png (added)
-
tags/1.25.1/includes (added)
-
tags/1.25.1/includes/functions.php (added)
-
tags/1.25.1/includes/optipic-cdn-php (added)
-
tags/1.25.1/includes/optipic-cdn-php/ImgUrlConverter.php (added)
-
tags/1.25.1/includes/settings.php (added)
-
tags/1.25.1/includes/template_loader.php (added)
-
tags/1.25.1/optipic-ru_RU.mo (added)
-
tags/1.25.1/optipic-ru_RU.po (added)
-
tags/1.25.1/optipic.php (added)
-
tags/1.25.1/optipic.pot (added)
-
tags/1.25.1/readme.txt (added)
-
tags/1.25.1/uninstall.php (added)
-
trunk/includes/functions.php (modified) (2 diffs)
-
trunk/includes/settings.php (modified) (1 diff)
-
trunk/optipic.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
optipic/trunk/includes/functions.php
r2550638 r2643600 1 1 <?php 2 3 function optipic_version() { 4 return '1.25.1'; 5 } 2 6 3 7 function optipic_change_content($content) { … … 14 18 $converterOptiPic = new \optipic\cdn\ImgUrlConverter($settings); 15 19 $content = $converterOptiPic->convertHtml($content); 20 } 21 22 if( current_user_can('editor') || current_user_can('administrator') ){ 23 $content = str_replace('</body>', '<script src="https://optipic.io/api/cp/stat?domain='.$_SERVER["HTTP_HOST"].'&sid='.$settings['site_id'].'&cms=wordpress&stype=cdn&mode=public&version='.optipic_version().'"></script></body>', $content); 16 24 } 17 25 -
optipic/trunk/includes/settings.php
r2643122 r2643600 96 96 $siteId = !empty($optipic_options['cdn_site_id'])? $optipic_options['cdn_site_id']: ''; 97 97 ?> 98 <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.25.0"></script>98 <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=<?=optipic_version()?>"></script> -
optipic/trunk/optipic.php
r2643122 r2643600 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.25. 06 Version: 1.25.1 7 7 Author: OptiPic.io 8 8 Author URI: https://optipic.io/en/ … … 89 89 } 90 90 91 function optipic_admin_print_footer_scripts_plugins() { 92 if (!empty($GLOBALS['pagenow']) && $GLOBALS['pagenow']=='plugins.php') { 93 $settings = optipic_get_settings(); 94 ?> 95 <script src="https://optipic.io/api/cp/stat?domain=<?=$_SERVER["HTTP_HOST"]?>&sid<?=$settings['site_id']?>&cms=wordpress&stype=cdn&mode=dont-remove-plugin&version=<?=optipic_version()?>"></script> 96 <?php 97 } 98 } 99 add_action("admin_print_footer_scripts", 'optipic_admin_print_footer_scripts_plugins', 0); 100 91 101 // Integrate with "WP Fastest Cache" plugin 92 102 // https://ru.wordpress.org/plugins/wp-fastest-cache/ -
optipic/trunk/readme.txt
r2643122 r2643600 4 4 Requires at least: 4.0 5 5 Tested up to: 5.8.2 6 Stable tag: 1.25. 06 Stable tag: 1.25.1 7 7 License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 8 8 … … 87 87 = 1.25.0 = 88 88 * Optimized images replacing logic. 89 90 = 1.25.1 = 91 * Optimized images replacing logic.
Note: See TracChangeset
for help on using the changeset viewer.