Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm using Wordpress 3.4.1 with the Suffusion theme 4.3.0.

I've noticed that there are a large number of images with hexadecimal names, like 54f96e1d5f478186f66bde9d6aeda625.jpeg. I'm wondering how these images are being created, and what I can do to prevent their generation, as they don't seem to be used by any post.

share|improve this question
    
What do you see when you display one of those images ? –  mike23 Sep 4 '12 at 14:58
    
A regular image, which is likely a duplicate of another image. –  Tola Odejayi Sep 4 '12 at 15:07
    
Could be the theme or some plugin... Does a search for the string 54f96e1d5f478186f66bde9d6aeda625 in the database returns something? –  brasofilo Nov 5 '12 at 12:42
add comment

1 Answer

Testing the plugin provided in this Answer, I just saw that media_handle_sideload generates exactly this pattern, jpeg extension as well (instead of jpg).

Following its path through the core, it seems that only the filter wp_handle_upload could be used for dealing with that.

But a brief research shows an interesting use of wp_handle_upload_prefilter: rename files during upload using variables.

A way of finding which element is using media_handle_sideload is:
- drop all the plugins and theme folders/files into a good editor (NotePad++, TextMate, etc) and do a global search for this filter.

After finding where it's being called, a rename strategy can be thought of.

All this assuming the Sideload is responsible in OP's case

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.