[wp-hackers] Set a unique directory for uploads

José Fontainhas jfontainhas at gmail.com
Fri Jan 16 16:35:48 GMT 2009


Tried it just now, and works like a charm (and comes in quite handy, 
too. Thanks Gaarai). Which php file is complaining that the headers have 
already been sent, exactly?

-Zé

> Mário Gamito wrote:
>> Hi Gaarai,
>>
>> Thank you for your answer.
>>
>> Gaarai wrote:
>>  
>>> add_filter( 'intermediate_image_sizes',
>>> 'remove_intermediate_image_sizes' );
>>> function remove_intermediate_image_sizes( $sizes ) {
>>>    return array();
>>> }
>>>
>>> This could simply be added to your functions.php file in the theme. I
>>> tested it this way, and it worked perfectly.
>>>     
>> Yes, it works. Although I get the "headres already sent" warning after
>> the crunching.
>>
>> But the worst part is that it breaks the tools page. I get a blank page.
>>
>> Any ideias ?
>>
>> Warm Regards,
>>   
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



More information about the wp-hackers mailing list