//on some hosts the uploads directory is not automatically created
//on WP auto install so we create it
if (!is_dir(ABSPATH.'wp-content/uploads')) {
mkdir(ABSPATH.'wp-content/uploads');
}
I'm trying to troubleshoot an issue in which some people who install my WP theme get an error (no description) or a blank white screen. I'm thinking that perhaps the code above could be the culprit on certain setups, perhaps depending on support for mkdir?