Changeset 616927
- Timestamp:
- 10/24/2012 04:45:22 PM (13 years ago)
- Location:
- wp-image-size-limit
- Files:
-
- 6 added
- 1 edited
-
tags/1.0.3 (added)
-
tags/1.0.3/readme.txt (added)
-
tags/1.0.3/screenshot-1.png (added)
-
tags/1.0.3/screenshot-2.png (added)
-
tags/1.0.3/wp-image-size-limit.php (added)
-
tags/1.0.3/wpisl-options.php (added)
-
trunk/wp-image-size-limit.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-image-size-limit/trunk/wp-image-size-limit.php
r604928 r616927 2 2 /* 3 3 Plugin Name: WP Image Size Limit 4 Plugin URI: http://w ww.seanbutze.com4 Plugin URI: http://wordpress.org/extend/plugins/wp-image-size-limit 5 5 Description: Allows setting a maximum file size for image uploads. 6 6 Author: Sean Butze 7 7 Author URI: http://www.seanbutze.com 8 Version: 1.0. 28 Version: 1.0.3 9 9 */ 10 11 12 define('WPISL_DEBUG', false); 10 13 11 14 require_once ('wpisl-options.php'); … … 85 88 86 89 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 } 89 94 } 90 95 return $file;
Note: See TracChangeset
for help on using the changeset viewer.