diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index ea3cfa46f1..68f7ed10dc 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -1789,7 +1789,7 @@ function wp_upload_dir() { @ chmod( $pathym, 0774 ); } - $uploads = array('path' => $pathym, 'url' => get_bloginfo('home') . "/$dir/$y/$m", 'error' => false); + $uploads = array('path' => $pathym, 'url' => get_option('siteurl') . "/$dir/$y/$m", 'error' => false); return apply_filters('upload_dir', $uploads); } diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 545b350555..4571ea533d 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -172,12 +172,9 @@ if ('publish' != $post_status || 0 == $post_ID) { -