Changeset 37914 for trunk/src/wp-admin/update.php
- Timestamp:
- 06/29/2016 03:15:40 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/update.php
r34598 r37914 22 22 if ( 'update-selected' == $action ) { 23 23 if ( ! current_user_can( 'update_plugins' ) ) 24 wp_die( __( ' You do not have sufficient permissionsto update plugins for this site.' ) );24 wp_die( __( 'Sorry, you are not allowed to update plugins for this site.' ) ); 25 25 26 26 check_admin_referer( 'bulk-update-plugins' ); … … 48 48 } elseif ( 'upgrade-plugin' == $action ) { 49 49 if ( ! current_user_can('update_plugins') ) 50 wp_die(__(' You do not have sufficient permissionsto update plugins for this site.'));50 wp_die(__('Sorry, you are not allowed to update plugins for this site.')); 51 51 52 52 check_admin_referer('upgrade-plugin_' . $plugin); … … 69 69 } elseif ('activate-plugin' == $action ) { 70 70 if ( ! current_user_can('update_plugins') ) 71 wp_die(__(' You do not have sufficient permissionsto update plugins for this site.'));71 wp_die(__('Sorry, you are not allowed to update plugins for this site.')); 72 72 73 73 check_admin_referer('activate-plugin_' . $plugin); … … 94 94 95 95 if ( ! current_user_can('install_plugins') ) 96 wp_die( __( ' You do not have sufficient permissionsto install plugins on this site.' ) );96 wp_die( __( 'Sorry, you are not allowed to install plugins on this site.' ) ); 97 97 98 98 include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' ); //for plugins_api.. … … 142 142 143 143 if ( ! current_user_can( 'upload_plugins' ) ) { 144 wp_die( __( ' You do not have sufficient permissionsto install plugins on this site.' ) );144 wp_die( __( 'Sorry, you are not allowed to install plugins on this site.' ) ); 145 145 } 146 146 … … 170 170 171 171 if ( ! current_user_can('update_themes') ) 172 wp_die(__(' You do not have sufficient permissionsto update themes for this site.'));172 wp_die(__('Sorry, you are not allowed to update themes for this site.')); 173 173 174 174 check_admin_referer('upgrade-theme_' . $theme); … … 191 191 } elseif ( 'update-selected-themes' == $action ) { 192 192 if ( ! current_user_can( 'update_themes' ) ) 193 wp_die( __( ' You do not have sufficient permissionsto update themes for this site.' ) );193 wp_die( __( 'Sorry, you are not allowed to update themes for this site.' ) ); 194 194 195 195 check_admin_referer( 'bulk-update-themes' ); … … 217 217 218 218 if ( ! current_user_can('install_themes') ) 219 wp_die( __( ' You do not have sufficient permissionsto install themes on this site.' ) );219 wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) ); 220 220 221 221 include_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' ); //for themes_api.. … … 247 247 248 248 if ( ! current_user_can( 'upload_themes' ) ) { 249 wp_die( __( ' You do not have sufficient permissionsto install themes on this site.' ) );249 wp_die( __( 'Sorry, you are not allowed to install themes on this site.' ) ); 250 250 } 251 251
Note: See TracChangeset
for help on using the changeset viewer.