Changeset 37914 for trunk/src/wp-admin/plugins.php
- Timestamp:
- 06/29/2016 03:15:40 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/plugins.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/plugins.php
r37714 r37914 11 11 12 12 if ( ! current_user_can('activate_plugins') ) 13 wp_die( __( ' You do not have sufficient permissionsto manage plugins for this site.' ) );13 wp_die( __( 'Sorry, you are not allowed to manage plugins for this site.' ) ); 14 14 15 15 $wp_list_table = _get_list_table('WP_Plugins_List_Table'); … … 31 31 case 'activate': 32 32 if ( ! current_user_can('activate_plugins') ) 33 wp_die(__(' You do not have sufficient permissionsto activate plugins for this site.'));33 wp_die(__('Sorry, you are not allowed to activate plugins for this site.')); 34 34 35 35 if ( is_multisite() && ! is_network_admin() && is_network_only_plugin( $plugin ) ) { … … 70 70 case 'activate-selected': 71 71 if ( ! current_user_can('activate_plugins') ) 72 wp_die(__(' You do not have sufficient permissionsto activate plugins for this site.'));72 wp_die(__('Sorry, you are not allowed to activate plugins for this site.')); 73 73 74 74 check_admin_referer('bulk-plugins'); … … 148 148 case 'error_scrape': 149 149 if ( ! current_user_can('activate_plugins') ) 150 wp_die(__(' You do not have sufficient permissionsto activate plugins for this site.'));150 wp_die(__('Sorry, you are not allowed to activate plugins for this site.')); 151 151 152 152 check_admin_referer('plugin-activation-error_' . $plugin); … … 169 169 case 'deactivate': 170 170 if ( ! current_user_can('activate_plugins') ) 171 wp_die(__(' You do not have sufficient permissionsto deactivate plugins for this site.'));171 wp_die(__('Sorry, you are not allowed to deactivate plugins for this site.')); 172 172 173 173 check_admin_referer('deactivate-plugin_' . $plugin); … … 194 194 case 'deactivate-selected': 195 195 if ( ! current_user_can('activate_plugins') ) 196 wp_die(__(' You do not have sufficient permissionsto deactivate plugins for this site.'));196 wp_die(__('Sorry, you are not allowed to deactivate plugins for this site.')); 197 197 198 198 check_admin_referer('bulk-plugins'); … … 229 229 case 'delete-selected': 230 230 if ( ! current_user_can('delete_plugins') ) { 231 wp_die(__(' You do not have sufficient permissionsto delete plugins for this site.'));231 wp_die(__('Sorry, you are not allowed to delete plugins for this site.')); 232 232 } 233 233
Note: See TracChangeset
for help on using the changeset viewer.