From d21e729e6d28c69c3cf2375bd78c3c8782e124d8 Mon Sep 17 00:00:00 2001 From: Seaton Jiang Date: Sat, 26 Jun 2021 10:29:28 +0800 Subject: [PATCH] feat: cancel retrieving file types from file names (#387) --- .../includes/class-options-sanitization.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/options-framework/includes/class-options-sanitization.php b/inc/options-framework/includes/class-options-sanitization.php index 03e5ec7..30cf80d 100644 --- a/inc/options-framework/includes/class-options-sanitization.php +++ b/inc/options-framework/includes/class-options-sanitization.php @@ -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' );