mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Do not show Media Upload buttons in Visual Editor if user lacks the capabilities to upload files. fixes #8110
git-svn-id: https://develop.svn.wordpress.org/trunk@9660 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -577,8 +577,6 @@ endif; ?>
|
||||
|
||||
<div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea">
|
||||
|
||||
<!--<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 ) . '&type=image&TB_iframe=true' ) ); ?>" class="thickbox button"><?php _e( 'Insert Media' ); ?></a></div>-->
|
||||
|
||||
<?php the_editor($post->post_content); ?>
|
||||
|
||||
<div id="post-status-info">
|
||||
|
||||
Reference in New Issue
Block a user