diff -r c7c34916027a -r 177826044cd9 wp/wp-admin/options-media.php --- a/wp/wp-admin/options-media.php Mon Oct 14 18:06:33 2019 +0200 +++ b/wp/wp-admin/options-media.php Mon Oct 14 18:28:13 2019 +0200 @@ -9,30 +9,33 @@ /** WordPress Administration Bootstrap */ require_once( dirname( __FILE__ ) . '/admin.php' ); -if ( ! current_user_can( 'manage_options' ) ) +if ( ! current_user_can( 'manage_options' ) ) { wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); +} -$title = __('Media Settings'); +$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.') . '

'; +$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.') . '

'; +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.') . '

'; +$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()->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') . '

' + '

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

' . + '

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

' . + '

' . __( 'Support' ) . '

' ); include( ABSPATH . 'wp-admin/admin-header.php' ); @@ -43,14 +46,14 @@

- + -

+

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

- - +if ( isset( $GLOBALS['wp_settings']['media']['embeds'] ) ) : + ?> +

+
+ - -

- - + +

+
+ - - + - - + @@ -129,17 +135,17 @@ - + - +