| @@ -33,8 +33,16 @@ | ||
| 33 | 33 | 'unoptimized' => _x( 'Unoptimized', 'Media Files', 'imagify' ), |
| 34 | 34 | 'errors' => _x( 'Errors', 'Media Files', 'imagify' ), |
| 35 | 35 | ]; |
| 36 | 36 | |
| 37 | + /** | |
| 38 | + * Nothing can be missing a next-gen version when no next-gen format is being generated, | |
| 39 | + * so the filter would only ever return an empty list. Offer it when it can do something. | |
| 40 | + */ | |
| 41 | + if ( ! empty( imagify_nextgen_images_formats() ) ) { | |
| 42 | + $options['missing-nextgen'] = _x( 'Missing Next-Gen', 'Media Files', 'imagify' ); | |
| 43 | + } | |
| 44 | + | |
| 37 | 45 | echo '<label class="screen-reader-text" for="filter-by-optimization-status">' . esc_html__( 'Filter by status', 'imagify' ) . '</label>'; |
| 38 | 46 | echo '<select id="filter-by-optimization-status" name="imagify-status">'; |
| 39 | 47 | echo '<option value="0" selected="selected">' . esc_html__( 'All Media Files', 'imagify' ) . '</option>'; |
| 40 | 48 | |