X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/1c09677af04c9e37714e09b73eb9dbc5b2e3eb13..ac7339a398e6df50f722bc9616291ce5447d8e5e:/wp-admin/options-media.php?ds=sidebyside diff --git a/wp-admin/options-media.php b/wp-admin/options-media.php index abe72bc5..e1a628f9 100644 --- a/wp-admin/options-media.php +++ b/wp-admin/options-media.php @@ -7,97 +7,130 @@ */ /** WordPress Administration Bootstrap */ -require_once('admin.php'); +require_once( dirname( __FILE__ ) . '/admin.php' ); -if ( ! current_user_can('manage_options') ) - wp_die(__('You do not have sufficient permissions to manage options for this blog.')); +if ( ! current_user_can( 'manage_options' ) ) + wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); $title = __('Media Settings'); $parent_file = 'options-general.php'; -include('admin-header.php'); +$media_options_help = '

' . __('You can set maximum sizes for images inserted into your written content; you can also insert an image as Full Size.') . '

'; + +if ( ! is_multisite() && ( get_option('upload_url_path') || ( get_option('upload_path') != 'wp-content/uploads' && get_option('upload_path') ) ) ) { + $media_options_help .= '

' . __('Uploading Files allows you to choose the folder and path for storing your uploaded files.') . '

'; +} + +$media_options_help .= '

' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '

'; + +get_current_screen()->add_help_tab( array( + 'id' => 'overview', + 'title' => __('Overview'), + 'content' => $media_options_help, +) ); + +get_current_screen()->set_help_sidebar( + '

' . __('For more information:') . '

' . + '

' . __('Documentation on Media Settings') . '

' . + '

' . __('Support Forums') . '

' +); + +include( ABSPATH . 'wp-admin/admin-header.php' ); ?>
-

-

-

+

+

- + - + - +
- + -
+
/>
- + - +
- + - +
-

- + +

+ +
+ - - -
- -
+ +

+ + + + + - - - + + + + + + - +
+

wp-content/uploads'); ?>

+
- - - - -' . __("If the width value is left blank, embeds will default to the max width of your theme."); ?> +
+

+ +
+ -

- -

+
- +