scripts.mit.edu
/
autoinstalls
/
wordpress.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Wordpress 4.6
[autoinstalls/wordpress.git]
/
wp-admin
/
media.php
diff --git
a/wp-admin/media.php
b/wp-admin/media.php
index 62b2401be4d505df3a1479783e6b646d8c7ed4a1..88fa51ed483d332d644490a1a8f37ca7143da667 100644
(file)
--- a/
wp-admin/media.php
+++ b/
wp-admin/media.php
@@
-20,7
+20,7
@@
case 'editattachment' :
check_admin_referer('media-form');
if ( !current_user_can('edit_post', $attachment_id) )
check_admin_referer('media-form');
if ( !current_user_can('edit_post', $attachment_id) )
- wp_die ( __('
Y
ou are not allowed to edit this attachment.') );
+ wp_die ( __('
Sorry, y
ou are not allowed to edit this attachment.') );
$errors = media_upload_form_handler();
$errors = media_upload_form_handler();
@@
-54,7
+54,7
@@
case 'edit' :
$att_id = (int) $_GET['attachment_id'];
if ( !current_user_can('edit_post', $att_id) )
$att_id = (int) $_GET['attachment_id'];
if ( !current_user_can('edit_post', $att_id) )
- wp_die ( __('
Y
ou are not allowed to edit this attachment.') );
+ wp_die ( __('
Sorry, y
ou are not allowed to edit this attachment.') );
$att = get_post($att_id);
$att = get_post($att_id);
@@
-92,7
+92,7
@@
case 'edit' :
if ( isset($_GET['message']) ) {
switch ( $_GET['message'] ) {
case 'updated' :
if ( isset($_GET['message']) ) {
switch ( $_GET['message'] ) {
case 'updated' :
- $message = __('Media
attachment
updated.');
+ $message = __('Media
file
updated.');
$class = 'updated';
break;
}
$class = 'updated';
break;
}
@@
-103,13
+103,13
@@
case 'edit' :
?>
<div class="wrap">
?>
<div class="wrap">
-<h
2
>
+<h
1
>
<?php
echo esc_html( $title );
if ( current_user_can( 'upload_files' ) ) { ?>
<?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 } ?>
<?php } ?>
-</h
2
>
+</h
1
>
<form method="post" class="media-upload-form" id="media-single-form">
<p class="submit" style="padding-bottom: 0;">
<form method="post" class="media-upload-form" id="media-single-form">
<p class="submit" style="padding-bottom: 0;">