Make WordPress Core


Ignore:
Timestamp:
07/05/2006 10:00:03 PM (20 years ago)
Author:
ryan
Message:

Use wp_die(). Props filosofo. fixes #2914

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/templates.php

    r3949 r3985  
    2626
    2727        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>');
    2929
    3030        $newcontent = stripslashes($_POST['newcontent']);
    … …  
    5151
    5252        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>');
    5454
    5555        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>');
    5757
    5858        update_recently_edited($file);
Note: See TracChangeset for help on using the changeset viewer.