Changeset 29634 for trunk/src/wp-admin/update.php
- Timestamp:
- 08/27/2014 01:31:05 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/update.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/update.php
r28500 r29634 124 124 } elseif ( 'upload-plugin' == $action ) { 125 125 126 if ( ! current_user_can( 'install_plugins') )126 if ( ! current_user_can( 'upload_plugins' ) ) { 127 127 wp_die( __( 'You do not have sufficient permissions to install plugins on this site.' ) ); 128 } 128 129 129 130 check_admin_referer('plugin-upload'); … … 228 229 } elseif ( 'upload-theme' == $action ) { 229 230 230 if ( ! current_user_can( 'install_themes') )231 if ( ! current_user_can( 'upload_themes' ) ) { 231 232 wp_die( __( 'You do not have sufficient permissions to install themes on this site.' ) ); 233 } 232 234 233 235 check_admin_referer('theme-upload');
Note: See TracChangeset
for help on using the changeset viewer.