Changeset 3985 for trunk/wp-admin/templates.php
- Timestamp:
- 07/05/2006 10:00:03 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/templates.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/templates.php
r3949 r3985 26 26 27 27 if ( ! current_user_can('edit_files') ) 28 die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>');28 wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>'); 29 29 30 30 $newcontent = stripslashes($_POST['newcontent']); … … 51 51 52 52 if ( ! current_user_can('edit_files') ) 53 die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>');53 wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>'); 54 54 55 55 if ( strstr( $file, 'wp-config.php' ) ) 56 die('<p>'.__('The config file cannot be edited or viewed through the web interface. Sorry!').'</p>');56 wp_die('<p>'.__('The config file cannot be edited or viewed through the web interface. Sorry!').'</p>'); 57 57 58 58 update_recently_edited($file);
Note:
See TracChangeset
for help on using the changeset viewer.