public function test_in_progress_should_return_truef_meta_start_is_recent() { $image_size = new Tiny_Image_Size('test.jpg'); $two_minutes_ago = date('U') - 60 * 2; $image_size->meta['start'] = $two_minutes_ago; $this->assertTrue($image_size->in_progress()); }
</th> <th><?php esc_html_e('Compressed', 'tiny-compress-images'); ?> </th> <th><?php esc_html_e('Date'); ?> </th> </tr> <?php $i = 0; $sizes = $tiny_image->get_image_sizes() + $size_exists; foreach ($sizes as $size_name => $size) { if (!is_object($size)) { $size = new Tiny_Image_Size(); } ?> <tr class="<?php echo 0 == $i % 2 ? 'even' : 'odd'; ?> "> <?php echo '<td>'; echo Tiny_Image::is_original($size_name) ? esc_html__('Original', 'tiny-compress-images') : esc_html__(ucfirst(rtrim($size_name, '_wr2x'))); echo ' '; if (!array_key_exists($size_name, $active_sizes) && !Tiny_Image::is_retina($size_name)) { echo '<em>' . esc_html__('(not in use)', 'tiny-compress-images') . '</em>'; } else { if ($size->missing() && (Tiny_Settings::wr2x_active() || !Tiny_Image::is_retina($size_name))) { echo '<em>' . esc_html__('(file removed)', 'tiny-compress-images') . '</em>';