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

    r3950 r3985  
    2424
    2525        if ( !current_user_can('edit_plugins') )
    26                 die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>');
     26                wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>');
    2727
    2828        $newcontent = stripslashes($_POST['newcontent']);
    … …  
    4444        require_once('admin-header.php');
    4545        if ( !current_user_can('edit_plugins') )
    46                 die('<p>'.__('You do not have sufficient permissions to edit plugins for this blog.').'</p>');
     46                wp_die('<p>'.__('You do not have sufficient permissions to edit plugins for this blog.').'</p>');
    4747
    4848        update_recently_edited("wp-content/plugins/$file");
Note: See TracChangeset for help on using the changeset viewer.