Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (9 sloc) 0.37 kb
<?php
function scoper_get_upload_info() {
$func = create_function( '$a', 'return false;' );
add_filter( 'option_uploads_use_yearmonth_folders', $func, 99 ); // prevent determination and creation of date-based upload subfolders
$upload_info = wp_upload_dir();
remove_filter( 'option_uploads_use_yearmonth_folders', $func, 99 );
return $upload_info;
}
?>
Jump to Line
Something went wrong with that request. Please try again.