Permalink
Browse files

Only show help for upload_path and upload_url_path if those fields ar…

…e visible. fixes #21720.

git-svn-id: http://core.svn.wordpress.org/trunk@23134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent aac3ea4 commit 60be66457ace616df57f19480eeb89a6510f058b @nacin nacin committed Dec 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 wp-admin/options-media.php
@@ -17,7 +17,7 @@
$media_options_help = '<p>' . __('You can set maximum sizes for images inserted into your written content; you can also insert an image as Full Size.') . '</p>';
-if ( ! is_multisite() ) {
+if ( ! is_multisite() && ( get_option('upload_url_path') || ( get_option('upload_path') != 'wp-content/uploads' && get_option('upload_path') ) ) ) {
$media_options_help .= '<p>' . __('Uploading Files allows you to choose the folder and path for storing your uploaded files.') . '</p>';
}

0 comments on commit 60be664

Please sign in to comment.