WordPress.org

Plugin Directory


Ignore:
Timestamp:
11/30/10 02:21:56 (3 years ago)
Author:
Viper007Bond
Message:

Version 2.1.3

  • Move the error_reporting() call in the AJAX handler to the beginning so that we're more sure that no PHP errors are outputted. Some hosts disable usage of set_time_limit() and calling it was causing a PHP warning to be outputted.
Location:
regenerate-thumbnails/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • regenerate-thumbnails/trunk/readme.txt

    r316378 r316860  
    3131 
    3232== ChangeLog == 
     33 
     34= Version 2.1.3 = 
     35 
     36* Move the `error_reporting()` call in the AJAX handler to the beginning so that we're more sure that no PHP errors are outputted. Some hosts disable usage of `set_time_limit()` and calling it was causing a PHP warning to be outputted. 
    3337 
    3438= Version 2.1.2 = 
  • regenerate-thumbnails/trunk/regenerate-thumbnails.php

    r316344 r316860  
    66Plugin URI:   http://www.viper007bond.com/wordpress-plugins/regenerate-thumbnails/ 
    77Description:  Allows you to regenerate all thumbnails after changing the thumbnail sizes. 
    8 Version:      2.1.2 
     8Version:      2.1.3 
    99Author:       Viper007Bond 
    1010Author URI:   http://www.viper007bond.com/ 
     
    324324    // Process a single image ID (this is an AJAX handler) 
    325325    function ajax_process_image() { 
     326        @error_reporting( 0 ); // Don't break the JSON result 
     327 
    326328        header( 'Content-type: application/json' ); 
    327329 
     
    340342            $this->die_json_error_msg( $image->ID, sprintf( __( 'The originally uploaded image file cannot be found at %s', 'regenerate-thumbnails' ), '<code>' . esc_html( $fullsizepath ) . '</code>' ) ); 
    341343 
    342         set_time_limit( 900 ); // 5 minutes per image should be PLENTY, lol 
    343         error_reporting( 0 ); // Don't break the JSON result 
     344        @set_time_limit( 900 ); // 5 minutes per image should be PLENTY 
    344345 
    345346        $metadata = wp_generate_attachment_metadata( $image->ID, $fullsizepath ); 
Note: See TracChangeset for help on using the changeset viewer.