Changeset 3985 for trunk/wp-admin/theme-editor.php
- Timestamp:
- 07/05/2006 10:00:03 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/theme-editor.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/theme-editor.php
r3949 r3985 17 17 18 18 if ( ! isset($themes[$theme]) ) 19 die(__('The requested theme does not exist.'));19 wp_die(__('The requested theme does not exist.')); 20 20 21 21 $allowed_files = array_merge($themes[$theme]['Stylesheet Files'], $themes[$theme]['Template Files']); … … 37 37 38 38 if ( !current_user_can('edit_themes') ) 39 die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>');39 wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>'); 40 40 41 41 $newcontent = stripslashes($_POST['newcontent']); … … 58 58 require_once('admin-header.php'); 59 59 if ( !current_user_can('edit_themes') ) 60 die('<p>'.__('You do not have sufficient permissions to edit themes for this blog.').'</p>');60 wp_die('<p>'.__('You do not have sufficient permissions to edit themes for this blog.').'</p>'); 61 61 62 62 update_recently_edited($file);
Note:
See TracChangeset
for help on using the changeset viewer.