Better thumbnail exclude regex
-
Hi,
The current exclude thumbnail is a bit to naive. For instance, using the Retina plugin generates thumbnail in the format “image-200×[email protected]”.
The regex does not match the “@2”, and therefor includes them.
Here is the updated regex, which matches @2 also.
class-job.php @ Line 1645
preg_match( "/\-[0-9]{2,4}x[0-9]{2,4}.+\.(jpg|png|gif)$/i", $file )
- The topic ‘Better thumbnail exclude regex’ is closed to new replies.