wp-content/plugins/resmushit-image-optimizer/classes/resmushit.class.php
/**
      * 
      * Check if this Attachment was successfully optimized
      *
      * @param int 		$attachment_id 	Post ID
      * @return string	$status
      */
Check if this Attachment was successfully optimized

@param int              $attachment_id  Post ID
@return string  $status
Check if this Attachment was successfully optimized @param int $attachment_id Post ID @return string $status
public static function wasSuccessfullyUpdated($attachment_id){
		if( self::getDisabledState( $attachment_id ))
			return 'disabled';
		if( filesize(get_attached_file( $attachment_id )) > self::MAX_FILESIZE){
			return 'file_too_big';
		}
		if( self::getPictureQualitySetting() != self::getAttachmentQuality( $attachment_id ))
			return 'failed';
		return 'success';
	}
public static function wasSuccessfullyUpdated ( $ attachment_id ) { if ( self :: getDisabledState ( $ attachment_id ) ) return 'disabled' ; if ( filesize ( get_attached_file ( $ attachment_id ) ) > self :: MAX_FILESIZE ) { return 'file_too_big' ; } if ( self :: getPictureQualitySetting ( ) != self :: getAttachmentQuality ( $ attachment_id ) ) return 'failed' ; return 'success' ; }
Check if this Attachment was successfully optimized
Check if this Attachment was successfully optimized