WordPress.org

Plugin Directory

Changeset 682184


Ignore:
Timestamp:
03/15/13 07:14:28 (13 months ago)
Author:
alexdunae
Message:

tagged 1.6.3 -- bye, bye

Location:
wp-smushit/tags
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-smushit/tags/1.6.0/readme.txt

    r549335 r682184  
    3636Sometimes the Smush.it service goes down or is under heavy load. If the plugin has difficulty connecting to Smush.it then automatically smushing is temporarily disabled (currently for 6 hours). You can always re-enable it via the `Media > Settings` screen or manually smush the image from the Media Library. 
    3737 
     38You can also define how long you want to wait for the Smush.it server to respond. 
     39 
    3840= NextGEN Gallery = 
    3941NextGEN user?  Also download the <a href="http://wordpress.org/extend/plugins/wp-smushit-nextgen-gallery-integration/">WP Smush.it NextGEN Integration</a> plugin. 
    4042 
    41 = Privacy =  
     43= Privacy = 
    4244Be sure you&rsquo;re comfortable with Smush.it&rsquo;s privacy policy (found on their <a href="http://info.yahoo.com/legal/us/yahoo/smush_it/smush_it-4378.html">FAQ</a>). 
    4345 
     
    99101* avoid time-out errors when working with larger files -- props to [Milan Dinić](http://wordpress.org/support/profile/dimadin) for the fix 
    100102 
    101 = 1.2.10 =  
     103= 1.2.10 = 
    102104* removed testing link 
    103105 
    104 = 1.2.9 =  
     106= 1.2.9 = 
    105107* updated Smush.it endpoint URL 
    106108 
  • wp-smushit/tags/1.6.0/settings.php

    r549334 r682184  
    22 
    33  /* 
    4    
     4 
    55    Each service has a setting specifying whether it should be used automatically on upload. 
    6      
     6 
    77    Values are: 
    88      -1  Don't use (until manually enabled via Media > Settings) 
    99      0   Use automatically 
    1010      n   Any other number is a Unix timestamp indicating when the service can be used again 
    11    
     11 
    1212  */ 
    13    
     13 
    1414  define('WP_SMUSHIT_AUTO_OK', 0); 
    1515  define('WP_SMUSHIT_AUTO_NEVER', -1); 
     
    1818  function wp_smushit_register_settings() { 
    1919    add_settings_section( 'wp_smushit_settings', 'WP Smush.it', 'wp_smushit_settings_cb', 'media' ); 
    20     add_settings_field( 'wp_smushit_smushit_auto', 'Use Smush.it on upload?', 'wp_smushit_smushit_auto_cb', 'media', 'wp_smushit_settings' ); 
     20    add_settings_field( 'wp_smushit_smushit_auto', 'Use Smush.it on upload?', 'wp_smushit_render_auto_opts',    'media', 'wp_smushit_settings' ); 
     21    add_settings_field( 'wp_smushit_smushit_timeout', 'How many seconds should we wait for a response from Smush.it?', 'wp_smushit_render_timeout_opts', 'media', 'wp_smushit_settings' ); 
    2122    register_setting( 'media', 'wp_smushit_smushit_auto'); 
    2223  } 
     
    2627  } 
    2728 
    28   function wp_smushit_smushit_auto_cb() { 
    29     wp_smushit_render_auto_opts( 'wp_smushit_smushit_auto' ); 
    30   } 
    31    
    32   function wp_smushit_render_auto_opts( $key ) { 
     29  function wp_smushit_render_auto_opts() { 
     30    $key = 'wp_smushit_smushit_auto'; 
    3331    $val = intval( get_option( $key, WP_SMUSHIT_AUTO_OK ) ); 
    3432    printf( "<select name='%1\$s' id='%1\$s'>",  esc_attr( $key ) ); 
     
    4240  } 
    4341 
     42  function wp_smushit_render_timeout_opts( $key ) { 
     43    $key = 'wp_smushit_smushit_timeout'; 
     44    $val = intval( get_option( $key, WP_SMUSHIT_AUTO_OK ) ); 
     45    printf( "<input type='text' name='%1\$s' id='%1\$s'>",  esc_attr( $key ), intval( get_option( $key, 60 ) ) ); 
     46  } 
     47 
    4448  // default is 6hrs 
    4549  function wp_smushit_temporarily_disable( $seconds = 21600) { 
Note: See TracChangeset for help on using the changeset viewer.