diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 5542c03ad5..6b1421e261 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -2703,6 +2703,11 @@ function wp_max_upload_size() { function wp_import_upload_form( $action ) { $bytes = apply_filters( 'import_upload_size_limit', wp_max_upload_size() ); $size = wp_convert_bytes_to_hr( $bytes ); + $upload_dir = wp_upload_dir(); + if ( ! empty( $upload_dir['error'] ) ) : + ?>

+

@@ -2717,6 +2722,7 @@ function wp_import_upload_form( $action ) {