321 | | return call_user_func( $upload_error_handler, $file, __( 'Sorry, this file type is not permitted for security reasons.' ) ); |
| 321 | /** |
| 322 | * Filter the error type when a disallowed file type upload has been attempted. |
| 323 | * |
| 324 | * @since 4.4.0 |
| 325 | * |
| 326 | * @param string $var Default error message: "Sorry, this file type is not permitted for security reasons." |
| 327 | */ |
| 328 | return call_user_func( $upload_error_handler, $file, apply_filters( 'upload_filetype_error', __( 'Sorry, this file type is not permitted for security reasons.' ) ) ); |