X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/8f374b7233bc2815ccc387e448d208c5434eb961..38ac4bc40322ecdc4052db4263466573e01fa51f:/wp-admin/options-media.php diff --git a/wp-admin/options-media.php b/wp-admin/options-media.php index ee324010..e1a628f9 100644 --- a/wp-admin/options-media.php +++ b/wp-admin/options-media.php @@ -7,7 +7,7 @@ */ /** 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 site.' ) ); @@ -15,15 +15,9 @@ if ( ! current_user_can( 'manage_options' ) ) $title = __('Media Settings'); $parent_file = 'options-general.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.') . '

' . - '

' . __('The Embed option allows you embed a video, image, or other media content into your content automatically by typing the URL (of the web page where the file lives) on its own line when you create your content.'); +$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 ( ! empty( $content_width ) ) - $media_options_help .= ' ' . __( 'If you do not set the maximum embed size, it will be automatically sized to fit into your content area.' ); - -$media_options_help .= '

'; - -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 .= '

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

'; } @@ -37,26 +31,25 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

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

' . - '

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

' . - '

' . __('Support Forums') . '

' + '

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

' . + '

' . __('Support Forums') . '

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

-

-

+

+

- + - + - +
@@ -68,7 +61,7 @@ include('./admin-header.php');
@@ -78,7 +71,7 @@ include('./admin-header.php');
@@ -91,50 +84,34 @@ include('./admin-header.php');
-

- + +

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

'; -?> -
+ -

+

- + + - + - +

wp-content/uploads'); ?>