mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user