X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/61343b82c4f0da4c68e4c6373daafff4a81efdd1..febc815b2c9d85be5717da9e8d164bd2daa97e31:/wp-admin/options-media.php diff --git a/wp-admin/options-media.php b/wp-admin/options-media.php index 8ba2371f..2f7e0abb 100644 --- a/wp-admin/options-media.php +++ b/wp-admin/options-media.php @@ -7,10 +7,10 @@ */ /** 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.' ) ); + wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); $title = __('Media Settings'); $parent_file = 'options-general.php'; @@ -31,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' ); ?>
- -

+

-

-

+

+

- + - + - +
@@ -62,7 +61,7 @@ include('./admin-header.php');
@@ -72,7 +71,7 @@ include('./admin-header.php');
@@ -85,28 +84,35 @@ include('./admin-header.php');
- -

+ +

-

+

- + - +
-

wp-content/uploads'); ?>

+

wp-content/uploads' ); +?>

@@ -134,4 +140,4 @@ if ( get_option('upload_url_path') || ( get_option('upload_path') != 'wp-content - +