mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 08:33:35 +01: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:
parent
0278a79fe6
commit
62cf5fba99
@ -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…
x
Reference in New Issue
Block a user