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/theme-editor.php

    r3949 r3985  
    1717
    1818if ( ! isset($themes[$theme]) )
    19         die(__('The requested theme does not exist.'));
     19        wp_die(__('The requested theme does not exist.'));
    2020
    2121$allowed_files = array_merge($themes[$theme]['Stylesheet Files'], $themes[$theme]['Template Files']);
    … …  
    3737
    3838        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>');
    4040
    4141        $newcontent = stripslashes($_POST['newcontent']);
    … …  
    5858        require_once('admin-header.php');
    5959        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>');
    6161
    6262        update_recently_edited($file);
Note: See TracChangeset for help on using the changeset viewer.