Make WordPress Core


Ignore:
Timestamp:
06/23/2015 06:19:43 PM (11 years ago)
Author:
wonderboymusic
Message:

The query-attachments AJAX action immediately errors out if the user doesn't have the upload_files cap. As such, the Customizer shouldn't show buttons that launch the media modal when the user doesn't have the proper permissions to query attachments.

See #32654.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/custom-background.php

    r32734 r32913  
    260260<?php endif; ?>
    261261
     262<?php if ( current_user_can( 'upload_files' ) ): ?>
    262263<tr>
    263264<th scope="row"><?php _e('Select Image'); ?></th>
     
    279280</td>
    280281</tr>
     282<?php endif; ?>
    281283</tbody>
    282284</table>
Note: See TracChangeset for help on using the changeset viewer.