02-08-2017, 01:38 AM
Pages: 1 2
02-08-2017, 07:16 AM
Thanks for sharing.. Worked with the latest version 2.5.3
02-08-2017, 09:18 PM
Under OP'shack, remove this code :
(Working for me)
//Flag to check if we need to revalidate the key
$revalidate = false;
$api_auth = get_site_option( 'wp_smush_api_auth' );
//Check if need to revalidate
if ( ! $api_auth || empty( $api_auth ) || empty( $api_auth[ $api_key ] ) ) {
$revalidate = true;
} else {
$last_checked = $api_auth[ $api_key ]['timestamp'];
$valid = $api_auth[ $api_key ]['validity'];
$diff = $last_checked - current_time( 'timestamp' );
//Difference in hours
$diff_h = $diff / 3600;
//Difference in minutes
$diff_m = $diff / 60;
switch ( $valid ) {
case 'valid':
//if last checked was more than 12 hours
if ( $diff_h > 12 ) {
$revalidate = true;
}
break;
case 'invalid':
//if last checked was more than 24 hours
if ( $diff_h > 24 ) {
$revalidate = true;
}
break;
case 'network_failure':
//if last checked was more than 5 minutes
if ( $diff_m > 5 ) {
$revalidate = true;
}
break;
}
}
//If we are suppose to validate api, update the results in options table
if ( $revalidate ) {
if ( empty( $api_auth[ $api_key ] ) ) {
//For api key resets
$api_auth[ $api_key ] = array();
(Working for me)
//Flag to check if we need to revalidate the key
$revalidate = false;
$api_auth = get_site_option( 'wp_smush_api_auth' );
//Check if need to revalidate
if ( ! $api_auth || empty( $api_auth ) || empty( $api_auth[ $api_key ] ) ) {
$revalidate = true;
} else {
$last_checked = $api_auth[ $api_key ]['timestamp'];
$valid = $api_auth[ $api_key ]['validity'];
$diff = $last_checked - current_time( 'timestamp' );
//Difference in hours
$diff_h = $diff / 3600;
//Difference in minutes
$diff_m = $diff / 60;
switch ( $valid ) {
case 'valid':
//if last checked was more than 12 hours
if ( $diff_h > 12 ) {
$revalidate = true;
}
break;
case 'invalid':
//if last checked was more than 24 hours
if ( $diff_h > 24 ) {
$revalidate = true;
}
break;
case 'network_failure':
//if last checked was more than 5 minutes
if ( $diff_m > 5 ) {
$revalidate = true;
}
break;
}
}
//If we are suppose to validate api, update the results in options table
if ( $revalidate ) {
if ( empty( $api_auth[ $api_key ] ) ) {
//For api key resets
$api_auth[ $api_key ] = array();
02-08-2017, 09:36 PM
Thank you.
02-08-2017, 09:45 PM
Worked once then killed the site. Apologies. Was worth a try.
02-09-2017, 02:50 AM
@grumble, thanks for share but not working.
02-26-2017, 11:23 PM
activated but getting this message " It looks like Smush couldn’t verify your WPMU DEV membership so Pro features like Super-Smush may not work correctly. If you think this is an error, run a re-check or get in touch with our support team."
03-02-2017, 09:22 PM
Can anyone plz share the cracked plugin here
03-02-2017, 10:15 PM
it does not work anymore
Pages: 1 2