Make WordPress Core


Ignore:
Timestamp:
05/19/2011 07:52:11 PM (14 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/media.php

    r17748 r17975  
    9898<div class="wrap">
    9999<?php screen_icon(); ?>
    100 <h2><?php _e( 'Edit Media' ); ?></h2>
     100<h2>
     101<?php
     102echo esc_html( $title );
     103if ( current_user_can( 'upload_files' ) ) { ?>
     104    <a href="media-new.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a>
     105<?php } ?>
     106</h2>
    101107
    102108<form method="post" action="" class="media-upload-form" id="media-single-form">
Note: See TracChangeset for help on using the changeset viewer.