Make WordPress Core


Ignore:
Timestamp:
11/13/2008 07:45:11 AM (17 years ago)
Author:
markjaquith
Message:

Do not show Media Upload buttons in Visual Editor if user lacks the capabilities to upload files. fixes #8110

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r9641 r9660  
    578578<div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea">
    579579
    580 <!--<div id="add-media-button"><a id="add-media-link" href="<?php echo clean_url( admin_url( 'media-upload.php?post_id=' . ( $post_ID ? $post_ID : $temp_ID ) . '&amp;type=image&amp;TB_iframe=true' ) ); ?>" class="thickbox button"><?php _e( 'Insert Media' ); ?></a></div>-->
    581 
    582580<?php the_editor($post->post_content); ?>
    583581
Note: See TracChangeset for help on using the changeset viewer.