WordPress.org

Make WordPress Core

Changeset 10153


Ignore:
Timestamp:
12/09/2008 08:31:51 PM (12 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r10150 r10153  
    322322        </div>
    323323
     324        <?php if ( current_user_can( 'upload_files' ) ) : ?>
    324325        <div id="media-buttons" class="hide-if-no-js">
    325326            <?php do_action( 'media_buttons' ); ?>
    326327        </div>
     328        <?php endif; ?>
    327329
    328330        <h4 id="content-label"><label for="content"><?php _e('Content') ?></label></h4>
Note: See TracChangeset for help on using the changeset viewer.