Plugin Directory

Changeset 616927


Ignore:
Timestamp:
10/24/2012 04:45:22 PM (13 years ago)
Author:
sbutze
Message:
 
Location:
wp-image-size-limit
Files:
6 added
1 edited

Legend:

Unmodified
Added
Removed
  • wp-image-size-limit/trunk/wp-image-size-limit.php

    r604928 r616927  
    22/*
    33Plugin Name: WP Image Size Limit
    4 Plugin URI: http://www.seanbutze.com
     4Plugin URI: http://wordpress.org/extend/plugins/wp-image-size-limit
    55Description: Allows setting a maximum file size for image uploads.
    66Author: Sean Butze
    77Author URI: http://www.seanbutze.com
    8 Version: 1.0.2
     8Version: 1.0.3
    99*/
     10
     11
     12define('WPISL_DEBUG', false);
    1013
    1114require_once ('wpisl-options.php');
     
    8588
    8689      if ( ( $size > $limit ) && ($is_image !== false) ) {
    87          //$file['error'] = 'Image files must be smaller than '.$limit_output.$unit;
    88          $file['error'] = 'filesize = '.$size.', limit ='.$limit;
     90         $file['error'] = 'Image files must be smaller than '.$limit_output.$unit;
     91         if (WPISL_DEBUG) {
     92            $file['error'] .= ' [ filesize = '.$size.', limit ='.$limit.' ]';
     93         }
    8994      }
    9095      return $file;
Note: See TracChangeset for help on using the changeset viewer.