WordPress.org

Make WordPress Core

Changeset 8148


Ignore:
Timestamp:
06/20/08 19:57:16 (7 years ago)
Author:
hansengel
Message:

'Add Media' button for Manage Media

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/crazyhorse/wp-admin/upload.php

    r7883 r8148  
    11<?php 
    22require_once('admin.php'); 
     3add_thickbox(); 
     4wp_enqueue_script('media-upload'); 
    35 
    46if (!current_user_can('upload_files')) 
     
    125127?> 
    126128 
     129<p id="big-add-button"> 
     130    <a href="media-upload.php?TB_iframe=true" class="button thickbox"><?php _e( 'Add Media' ); ?></a> 
     131</p> 
     132 
    127133<p id="post-search"> 
    128134    <label class="hidden" for="post-search-input"><?php _e( 'Search Media' ); ?>:</label> 
Note: See TracChangeset for help on using the changeset viewer.