WordPress.org

Ready to get started?Download WordPress

Forums

Thumbnail Updater
Small bugs corrections (1 post)

  1. Mathieu Puech
    Member
    Posted 3 years ago #

    Small correction :
    - add the button to media-upload.php page (when we are on gallery tab we can update sizes of thumbnails too)
    - correct a short open tag at the end of file (fatal error on servers without short_open_tag = on)

    --- thumbnail-updater.php
    +++ thumbnail-updater.php
    @@ -143,7 +143,7 @@
         public function media_enqueue_scripts() {
             global $hook_suffix;
    
    -        if ($hook_suffix == 'media.php')
    +        if ($hook_suffix == 'media.php' || $hook_suffix == 'media-upload.php')
                 wp_enqueue_script('imgsize', $this->url.'/js/image-size.js');
         }
         /**
    @@ -224,7 +224,7 @@
    
     </div>
    
    -    <?
    +    <?php
         exit(); // needed to keep from displaying a 0 at the end of the call.
         }

    http://wordpress.org/extend/plugins/thumbnail-updater/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic