Plugin Directory

Changeset 2652791


Ignore:
Timestamp:
01/04/2022 10:14:06 PM (4 years ago)
Author:
optipic
Message:

v1.27.1

Location:
optipic/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • optipic/trunk/includes/functions.php

    r2652765 r2652791  
    22
    33function optipic_version() {
    4     return '1.27.0';
     4    return '1.27.1';
    55}
    66
  • optipic/trunk/includes/settings.php

    r2643600 r2652791  
    33    <form method="post"  action="options.php">
    44        <?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        ?>
    611        <?php
    712        // set default 'domains'
     
    2227                    <input type="checkbox" name="optipic_options[cdn_autoreplace_active]"
    2328                           value="Y"
    24                            <?= ($optipic_options['cdn_autoreplace_active'] == 'Y')? 'checked' : '' ?>
     29                           <?= (!empty($optipic_options['cdn_autoreplace_active']) && $optipic_options['cdn_autoreplace_active'] == 'Y')? 'checked' : '' ?>
    2530                    />
    2631                </td>
     
    2934                <th scope="row"><?_e("Site ID in your personal account CDN OptiPic", "optipic")?></th>
    3035                <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/>
    3237                    <small>
    3338                        <? 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')); ?>
     
    4853                <th scope="row"><?_e("Site pages that do not include auto-replace", "optipic")?></th>
    4954                <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/>
    5156                    <small>
    5257                        <? _e("Each on a new line and must start with a slash", "optipic"); ?> (/)
     
    9398</div>
    9499
    95 <?
    96 $siteId = !empty($optipic_options['cdn_site_id'])? $optipic_options['cdn_site_id']: '';
    97 ?>
    98100<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  
    44Plugin URI:  https://optipic.io/en/webp/wordpress/
    55Description:  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.0
     6Version:  1.27.1
    77Author:  OptiPic.io
    88Author URI:  https://optipic.io/en/
  • optipic/trunk/readme.txt

    r2652765 r2652791  
    44Requires at least: 4.0
    55Tested up to: 5.8.2
    6 Stable tag: 1.27.0
     6Stable tag: 1.27.1
    77License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    88
     
    9393= 1.27.0 =
    9494* Optimized images replacing logic.
     95
     96= 1.27.1 =
     97* Fixed php notices
Note: See TracChangeset for help on using the changeset viewer.