From b12df4027f1dd4ae639a28a86086e4e41b4b918a Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 12 Feb 2009 19:39:35 +0000 Subject: [PATCH] Warn if upload dir not writable when importing. Props filosofo. fixes #8048 git-svn-id: https://develop.svn.wordpress.org/trunk@10561 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 6 ++++++ 1 file changed, 6 insertions(+) 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 ) {