wp/wp-admin/media.php
changeset 7 cf61fcea0001
parent 5 5e2f62d02dcd
child 9 177826044cd9
--- a/wp/wp-admin/media.php	Tue Jun 09 11:14:17 2015 +0000
+++ b/wp/wp-admin/media.php	Mon Oct 14 17:39:30 2019 +0200
@@ -20,7 +20,7 @@
 	check_admin_referer('media-form');
 
 	if ( !current_user_can('edit_post', $attachment_id) )
-		wp_die ( __('You are not allowed to edit this attachment.') );
+		wp_die ( __('Sorry, you are not allowed to edit this attachment.') );
 
 	$errors = media_upload_form_handler();
 
@@ -54,7 +54,7 @@
 	$att_id = (int) $_GET['attachment_id'];
 
 	if ( !current_user_can('edit_post', $att_id) )
-		wp_die ( __('You are not allowed to edit this attachment.') );
+		wp_die ( __('Sorry, you are not allowed to edit this attachment.') );
 
 	$att = get_post($att_id);
 
@@ -80,8 +80,8 @@
 
 	get_current_screen()->set_help_sidebar(
 	'<p><strong>' . __('For more information:') . '</strong></p>' .
-	'<p>' . __('<a href="https://codex.wordpress.org/Media_Add_New_Screen#Edit_Media" target="_blank">Documentation on Edit Media</a>') . '</p>' .
-	'<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
+	'<p>' . __('<a href="https://codex.wordpress.org/Media_Add_New_Screen#Edit_Media">Documentation on Edit Media</a>') . '</p>' .
+	'<p>' . __('<a href="https://wordpress.org/support/">Support Forums</a>') . '</p>'
 	);
 
 	require( ABSPATH . 'wp-admin/admin-header.php' );
@@ -92,7 +92,7 @@
 	if ( isset($_GET['message']) ) {
 		switch ( $_GET['message'] ) {
 			case 'updated' :
-				$message = __('Media attachment updated.');
+				$message = __('Media file updated.');
 				$class = 'updated';
 				break;
 		}
@@ -103,13 +103,16 @@
 ?>
 
 <div class="wrap">
-<h2>
+<h1 class="wp-heading-inline"><?php
+echo esc_html( $title );
+?></h1>
+
 <?php
-echo esc_html( $title );
 if ( current_user_can( 'upload_files' ) ) { ?>
-	<a href="media-new.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a>
+	<a href="media-new.php" class="page-title-action"><?php echo esc_html_x('Add New', 'file'); ?></a>
 <?php } ?>
-</h2>
+
+<hr class="wp-header-end">
 
 <form method="post" class="media-upload-form" id="media-single-form">
 <p class="submit" style="padding-bottom: 0;">