Plugin Directory

Changeset 2448820


Ignore:
Timestamp:
01/01/2021 01:17:51 PM (5 years ago)
Author:
aiwatech
Message:

v-1.0.6 - Bugs Fixes.

Location:
wp-image-sizes
Files:
14 added
3 edited

Legend:

Unmodified
Added
Removed
  • wp-image-sizes/trunk/readme.txt

    r2448789 r2448820  
    44Requires at least: 4.7
    55Requires PHP: 5.2.4
    6 Stable tag: 1.0.5
     6Stable tag: 1.0.6
    77Tested up to: 5.6
    88License: GPLv2 or later
     
    6666
    6767== Changelog ==
     68= 1.0.6 =
     69* Disable sizes fixes
     70
    6871= 1.0.4 =
    6972* Media upload image sizes bug fix
  • wp-image-sizes/trunk/wp-image-sizes.php

    r2448789 r2448820  
    44 * Plugin URI: https://aiwatech.com/wp-image-sizes
    55 * Description: Save server space by creating selected image sizes for every post type. It allows to select registered image sizes in media uploader and helps to avoid creation of unneccessary images.
    6  * Version: 1.0.5
     6 * Version: 1.0.6
    77 * Requires at least: 4.7
    88 * Tested up to: 5.6
  • wp-image-sizes/trunk/wpis-init.php

    r2448785 r2448820  
    189189        $wpis_session["wpis_disable_sizes"] = [];   
    190190    }
    191    
     191
    192192    if( isset($_POST["wpis_disable_sizes"]) ){
    193         $wpis_disable_sizes = (bool) $_POST["wpis_image_sizes"];
     193        $wpis_disable_sizes = sanitize_text_field($_POST["wpis_disable_sizes"]);
    194194        $wpis_session["wpis_disable_sizes"][$post_type] = $wpis_disable_sizes;
    195195    }
     
    241241        <p class="description textleft">
    242242        <?php
    243         echo( wp_sprintf('<label class="disable-size-checkbox"><input name="wpis_disable_sizes" class="wpis-checkbox" type="checkbox" value="%s" %s>%s</label>',
    244                     $post_type,
     243        echo( wp_sprintf('<label class="disable-size-checkbox"><input name="wpis_disable_sizes" class="wpis-checkbox" type="checkbox" %s>%s</label>',
    245244                    $wpis_disable_sizes ? 'checked="checked"' : '',
    246245                    __("Disable All Sizes <small>(Select this option to skip all image size generation)</small>", "wpis")
     
    293292               
    294293                wp.media.frame.on("close", function(e){
     294                   
    295295                    if( !ajaxed ){
    296296                        ajaxed = true;
    297297                       
    298                         $.ajax({
     298                        ajaxed = $.ajax({
    299299                            url: "<?=admin_url("admin-ajax.php")?>",
    300300                            type: "POST",
Note: See TracChangeset for help on using the changeset viewer.