Add 'Add New' buttons to edit links, edit media, and edit user screens. props sbressler, fixes #17499.

git-svn-id: https://develop.svn.wordpress.org/trunk@17975 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2011-05-19 19:52:11 +00:00
parent d9ce44d0eb
commit 4ae79da741
3 changed files with 19 additions and 3 deletions
+7 -1
View File
@@ -97,7 +97,13 @@ case 'edit' :
<div class="wrap">
<?php screen_icon(); ?>
<h2><?php _e( 'Edit Media' ); ?></h2>
<h2>
<?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>
<?php } ?>
</h2>
<form method="post" action="" class="media-upload-form" id="media-single-form">
<p class="submit" style="padding-bottom: 0;">