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

git-svn-id: https://develop.svn.wordpress.org/trunk@10153 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-12-09 20:31:51 +00:00
parent 0278a79fe6
commit 62cf5fba99

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 ); ?>" /> <input type="text" name="post_title" id="title" tabindex="1" autocomplete="off" value="<?php echo attribute_escape( $post->post_title ); ?>" />
</div> </div>
<?php if ( current_user_can( 'upload_files' ) ) : ?>
<div id="media-buttons" class="hide-if-no-js"> <div id="media-buttons" class="hide-if-no-js">
<?php do_action( 'media_buttons' ); ?> <?php do_action( 'media_buttons' ); ?>
</div> </div>
<?php endif; ?>
<h4 id="content-label"><label for="content"><?php _e('Content') ?></label></h4> <h4 id="content-label"><label for="content"><?php _e('Content') ?></label></h4>
<div class="textarea-wrap"> <div class="textarea-wrap">