Show media buttons for quick press only if user can upload_files. see #8547

git-svn-id: http://svn.automattic.com/wordpress/trunk@10153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-12-09 20:31:51 +00:00
parent 1c1bd4576b
commit 556965cfed
1 changed files with 2 additions and 0 deletions

View File

@ -321,9 +321,11 @@ function wp_dashboard_quick_press() {
<input type="text" name="post_title" id="title" tabindex="1" autocomplete="off" value="<?php echo attribute_escape( $post->post_title ); ?>" />
</div>
<?php if ( current_user_can( 'upload_files' ) ) : ?>
<div id="media-buttons" class="hide-if-no-js">
<?php do_action( 'media_buttons' ); ?>
</div>
<?php endif; ?>
<h4 id="content-label"><label for="content"><?php _e('Content') ?></label></h4>
<div class="textarea-wrap">