Ticket #11306: 11306-WP_CODE_EDITOR-constant.diff
| File 11306-WP_CODE_EDITOR-constant.diff, 1.1 KB (added by , 16 years ago) |
|---|
-
wp-admin/plugin-editor.php
9 9 /** WordPress Administration Bootstrap */ 10 10 require_once('admin.php'); 11 11 12 if ( !current_user_can('edit_plugins') )12 if ( !current_user_can('edit_plugins') || ( defined('WP_CODE_EDITOR') && !WP_CODE_EDITOR ) ) 13 13 wp_die('<p>'.__('You do not have sufficient permissions to edit plugins for this blog.').'</p>'); 14 14 15 15 $title = __("Edit Plugins"); -
wp-admin/theme-editor.php
9 9 /** WordPress Administration Bootstrap */ 10 10 require_once('admin.php'); 11 11 12 if ( !current_user_can('edit_themes') )12 if ( !current_user_can('edit_themes') || ( defined('WP_CODE_EDITOR') && !WP_CODE_EDITOR ) ) 13 13 wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>'); 14 14 15 15 $title = __("Edit Themes");