mirror of https://github.com/vtrois/kratos
feat: cancel retrieving file types from file names (#387)
parent
caf69a6413
commit
d21e729e6d
|
@ -81,10 +81,10 @@ add_filter( 'of_sanitize_checkbox', 'of_sanitize_checkbox' );
|
||||||
*/
|
*/
|
||||||
function of_sanitize_upload( $input ) {
|
function of_sanitize_upload( $input ) {
|
||||||
$output = '';
|
$output = '';
|
||||||
$filetype = wp_check_filetype( $input );
|
// $filetype = wp_check_filetype( $input );
|
||||||
if ( $filetype["ext"] ) {
|
// if ( $filetype["ext"] ) {
|
||||||
$output = esc_url( $input );
|
$output = esc_url( $input );
|
||||||
}
|
// }
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
add_filter( 'of_sanitize_upload', 'of_sanitize_upload' );
|
add_filter( 'of_sanitize_upload', 'of_sanitize_upload' );
|
||||||
|
|
Loading…
Reference in New Issue