Changeset 11761
- Timestamp:
- 08/01/2009 09:12:17 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-discussion.php
r11591 r11761 9 9 /** WordPress Administration Bootstrap */ 10 10 require_once('admin.php'); 11 12 if ( ! current_user_can('manage_options') ) 13 wp_die(__('You do not have sufficient permissions to manage options for this blog.')); 11 14 12 15 $title = __('Discussion Settings'); -
trunk/wp-admin/options-general.php
r11597 r11761 9 9 /** WordPress Administration Bootstrap */ 10 10 require_once('./admin.php'); 11 12 if ( ! current_user_can('manage_options') ) 13 wp_die(__('You do not have sufficient permissions to manage options for this blog.')); 11 14 12 15 $title = __('General Settings'); -
trunk/wp-admin/options-media.php
r11380 r11761 9 9 /** WordPress Administration Bootstrap */ 10 10 require_once('admin.php'); 11 12 if ( ! current_user_can('manage_options') ) 13 wp_die(__('You do not have sufficient permissions to manage options for this blog.')); 11 14 12 15 $title = __('Media Settings'); -
trunk/wp-admin/options-misc.php
r11380 r11761 9 9 /** WordPress Administration Bootstrap */ 10 10 require_once('admin.php'); 11 12 if ( ! current_user_can('manage_options') ) 13 wp_die(__('You do not have sufficient permissions to manage options for this blog.')); 11 14 12 15 $title = __('Miscellaneous Settings'); -
trunk/wp-admin/options-permalink.php
r11450 r11761 9 9 /** WordPress Administration Bootstrap */ 10 10 require_once('admin.php'); 11 12 if ( ! current_user_can('manage_options') ) 13 wp_die(__('You do not have sufficient permissions to manage options for this blog.')); 11 14 12 15 $title = __('Permalink Settings'); -
trunk/wp-admin/options-privacy.php
r11380 r11761 9 9 /** Load WordPress Administration Bootstrap */ 10 10 require_once('./admin.php'); 11 12 if ( ! current_user_can('manage_options') ) 13 wp_die(__('You do not have sufficient permissions to manage options for this blog.')); 11 14 12 15 $title = __('Privacy Settings'); -
trunk/wp-admin/options-reading.php
r11380 r11761 9 9 /** WordPress Administration Bootstrap */ 10 10 require_once('admin.php'); 11 12 if ( ! current_user_can('manage_options') ) 13 wp_die(__('You do not have sufficient permissions to manage options for this blog.')); 11 14 12 15 $title = __('Reading Settings'); -
trunk/wp-admin/options-writing.php
r11380 r11761 9 9 /** WordPress Administration Bootstrap */ 10 10 require_once('admin.php'); 11 12 if ( ! current_user_can('manage_options') ) 13 wp_die(__('You do not have sufficient permissions to manage options for this blog.')); 11 14 12 15 $title = __('Writing Settings'); -
trunk/wp-admin/plugins.php
r11554 r11761 9 9 /** WordPress Administration Bootstrap */ 10 10 require_once('admin.php'); 11 12 if ( ! current_user_can('activate_plugins') ) 13 wp_die(__('You do not have sufficient permissions to manage plugins for this blog.')); 11 14 12 15 if ( isset($_POST['clear-recent-list']) ) … … 38 41 switch ( $action ) { 39 42 case 'activate': 43 if ( ! current_user_can('activate_plugins') ) 44 wp_die(__('You do not have sufficient permissions to activate plugins for this blog.')); 45 40 46 check_admin_referer('activate-plugin_' . $plugin); 41 47 … … 54 60 break; 55 61 case 'activate-selected': 62 if ( ! current_user_can('activate_plugins') ) 63 wp_die(__('You do not have sufficient permissions to activate plugins for this blog.')); 64 56 65 check_admin_referer('bulk-manage-plugins'); 57 66 … … 76 85 break; 77 86 case 'error_scrape': 87 if ( ! current_user_can('activate_plugins') ) 88 wp_die(__('You do not have sufficient permissions to activate plugins for this blog.')); 89 78 90 check_admin_referer('plugin-activation-error_' . $plugin); 79 91 … … 89 101 break; 90 102 case 'deactivate': 103 if ( ! current_user_can('activate_plugins') ) 104 wp_die(__('You do not have sufficient permissions to deactivate plugins for this blog.')); 105 91 106 check_admin_referer('deactivate-plugin_' . $plugin); 92 107 deactivate_plugins($plugin); … … 96 111 break; 97 112 case 'deactivate-selected': 113 if ( ! current_user_can('activate_plugins') ) 114 wp_die(__('You do not have sufficient permissions to deactivate plugins for this blog.')); 115 98 116 check_admin_referer('bulk-manage-plugins'); 99 117 -
trunk/wp-admin/themes.php
r11554 r11761 9 9 /** WordPress Administration Bootstrap */ 10 10 require_once('admin.php'); 11 12 if ( !current_user_can('switch_themes') ) 13 wp_die( __( 'Cheatin’ uh?' ) ); 11 14 12 15 if ( isset($_GET['action']) ) { -
trunk/wp-includes/vars.php
r11379 r11761 18 18 preg_match('#/wp-admin/?(.*?)$#i', $PHP_SELF, $self_matches); 19 19 $pagenow = $self_matches[1]; 20 $pagenow = trim($pagenow, '/'); 20 21 $pagenow = preg_replace('#\?.*?$#', '', $pagenow); 21 22 if ( '' === $pagenow || 'index' === $pagenow || 'index.php' === $pagenow ) {
Note: See TracChangeset
for help on using the changeset viewer.