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 ) {
|
||||
$output = '';
|
||||
$filetype = wp_check_filetype( $input );
|
||||
if ( $filetype["ext"] ) {
|
||||
// $filetype = wp_check_filetype( $input );
|
||||
// if ( $filetype["ext"] ) {
|
||||
$output = esc_url( $input );
|
||||
}
|
||||
// }
|
||||
return $output;
|
||||
}
|
||||
add_filter( 'of_sanitize_upload', 'of_sanitize_upload' );
|
||||
|
|
Loading…
Reference in New Issue