• Hi,

    The current exclude thumbnail is a bit to naive. For instance, using the Retina plugin generates thumbnail in the format “image-200×200@2.jpg”.

    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 )

    https://wordpress.org/plugins/backwpup/

The topic ‘Better thumbnail exclude regex’ is closed to new replies.