Changeset 14313 for trunk/wp-admin/update.php
- Timestamp:
- 04/30/2010 01:54:32 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/update.php
r14139 r14313 19 19 if ( 'update-selected' == $action ) { 20 20 if ( ! current_user_can( 'update_plugins' ) ) 21 wp_die( __( 'You do not have sufficient permissions to update plugins for this blog.' ) );21 wp_die( __( 'You do not have sufficient permissions to update plugins for this site.' ) ); 22 22 23 23 check_admin_referer( 'bulk-update-plugins' ); … … 46 46 } elseif ( 'upgrade-plugin' == $action ) { 47 47 if ( ! current_user_can('update_plugins') ) 48 wp_die(__('You do not have sufficient permissions to update plugins for this blog.'));48 wp_die(__('You do not have sufficient permissions to update plugins for this site.')); 49 49 50 50 check_admin_referer('upgrade-plugin_' . $plugin); … … 65 65 } elseif ('activate-plugin' == $action ) { 66 66 if ( ! current_user_can('update_plugins') ) 67 wp_die(__('You do not have sufficient permissions to update plugins for this blog.'));67 wp_die(__('You do not have sufficient permissions to update plugins for this site.')); 68 68 69 69 check_admin_referer('activate-plugin_' . $plugin); … … 93 93 94 94 if ( ! current_user_can('install_plugins') ) 95 wp_die(__('You do not have sufficient permissions to install plugins for this blog.'));95 wp_die(__('You do not have sufficient permissions to install plugins for this site.')); 96 96 97 97 include_once ABSPATH . 'wp-admin/includes/plugin-install.php'; //for plugins_api.. … … 121 121 122 122 if ( ! current_user_can('install_plugins') ) 123 wp_die(__('You do not have sufficient permissions to install plugins for this blog.'));123 wp_die(__('You do not have sufficient permissions to install plugins for this site.')); 124 124 125 125 check_admin_referer('plugin-upload'); … … 145 145 146 146 if ( ! current_user_can('update_themes') ) 147 wp_die(__('You do not have sufficient permissions to update themes for this blog.'));147 wp_die(__('You do not have sufficient permissions to update themes for this site.')); 148 148 149 149 check_admin_referer('upgrade-theme_' . $theme); … … 165 165 } elseif ( 'update-selected-themes' == $action ) { 166 166 if ( ! current_user_can( 'update_themes' ) ) 167 wp_die( __( 'You do not have sufficient permissions to update themes for this blog.' ) );167 wp_die( __( 'You do not have sufficient permissions to update themes for this site.' ) ); 168 168 169 169 check_admin_referer( 'bulk-update-themes' ); … … 192 192 193 193 if ( ! current_user_can('install_themes') ) 194 wp_die(__('You do not have sufficient permissions to install themes for this blog.'));194 wp_die(__('You do not have sufficient permissions to install themes for this site.')); 195 195 196 196 include_once ABSPATH . 'wp-admin/includes/theme-install.php'; //for themes_api.. … … 222 222 223 223 if ( ! current_user_can('install_themes') ) 224 wp_die(__('You do not have sufficient permissions to install themes for this blog.'));224 wp_die(__('You do not have sufficient permissions to install themes for this site.')); 225 225 226 226 check_admin_referer('theme-upload');
Note: See TracChangeset
for help on using the changeset viewer.