Changeset 2652791
- Timestamp:
- 01/04/2022 10:14:06 PM (4 years ago)
- Location:
- optipic/trunk
- Files:
-
- 4 edited
-
includes/functions.php (modified) (1 diff)
-
includes/settings.php (modified) (5 diffs)
-
optipic.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
optipic/trunk/includes/functions.php
r2652765 r2652791 2 2 3 3 function optipic_version() { 4 return '1.27. 0';4 return '1.27.1'; 5 5 } 6 6 -
optipic/trunk/includes/settings.php
r2643600 r2652791 3 3 <form method="post" action="options.php"> 4 4 <?php settings_fields('op-settings-group');?> 5 <?php $optipic_options = get_option('optipic_options');?> 5 <?php 6 $optipic_options = get_option('optipic_options'); 7 8 $siteId = !empty($optipic_options['cdn_site_id'])? $optipic_options['cdn_site_id']: ''; 9 $exclusionsUrl = !empty($optipic_options['exclusions_url'])? $optipic_options['exclusions_url']: ''; 10 ?> 6 11 <?php 7 12 // set default 'domains' … … 22 27 <input type="checkbox" name="optipic_options[cdn_autoreplace_active]" 23 28 value="Y" 24 <?= ( $optipic_options['cdn_autoreplace_active'] == 'Y')? 'checked' : '' ?>29 <?= (!empty($optipic_options['cdn_autoreplace_active']) && $optipic_options['cdn_autoreplace_active'] == 'Y')? 'checked' : '' ?> 25 30 /> 26 31 </td> … … 29 34 <th scope="row"><?_e("Site ID in your personal account CDN OptiPic", "optipic")?></th> 30 35 <td> 31 <input type="text" name="optipic_options[cdn_site_id]" value="<?php echo esc_attr($ optipic_options['cdn_site_id']);?>"/><br/>36 <input type="text" name="optipic_options[cdn_site_id]" value="<?php echo esc_attr($siteId);?>"/><br/> 32 37 <small> 33 38 <? echo str_replace('<a>', '<a href="https://optipic.io/cdn/cp/" target="_blank">', __('You can find out your website ID in <a>your CDN OptiPic personal account</a>. Add your site to your account if you have not already done so.', 'optipic')); ?> … … 48 53 <th scope="row"><?_e("Site pages that do not include auto-replace", "optipic")?></th> 49 54 <td> 50 <textarea type="text" name="optipic_options[exclusions_url]" cols="60"><?php echo esc_attr($ optipic_options['exclusions_url']);?></textarea><br/>55 <textarea type="text" name="optipic_options[exclusions_url]" cols="60"><?php echo esc_attr($exclusionsUrl);?></textarea><br/> 51 56 <small> 52 57 <? _e("Each on a new line and must start with a slash", "optipic"); ?> (/) … … 93 98 </div> 94 99 95 <?96 $siteId = !empty($optipic_options['cdn_site_id'])? $optipic_options['cdn_site_id']: '';97 ?>98 100 <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
r2652765 r2652791 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.27. 06 Version: 1.27.1 7 7 Author: OptiPic.io 8 8 Author URI: https://optipic.io/en/ -
optipic/trunk/readme.txt
r2652765 r2652791 4 4 Requires at least: 4.0 5 5 Tested up to: 5.8.2 6 Stable tag: 1.27. 06 Stable tag: 1.27.1 7 7 License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 8 8 … … 93 93 = 1.27.0 = 94 94 * Optimized images replacing logic. 95 96 = 1.27.1 = 97 * Fixed php notices
Note: See TracChangeset
for help on using the changeset viewer.