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:
parent
1c1bd4576b
commit
556965cfed
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue