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/link.php

    r3946 r3985  
    1919                // check the current user's level first.
    2020                if (!current_user_can('manage_links'))
    21                         die(__("Cheatin' uh ?"));
     21                        wp_die(__("Cheatin' uh ?"));
    2222
    2323                //for each link id (in $linkcheck[]) change category to selected value
    … …  
    4343                // check the current user's level first.
    4444                if (!current_user_can('manage_links'))
    45                         die(__("Cheatin' uh ?"));
     45                        wp_die(__("Cheatin' uh ?"));
    4646
    4747                //for each link id (in $linkcheck[]) change category to selected value
    … …  
    8080
    8181                if (!current_user_can('manage_links'))
    82                         die(__("Cheatin' uh ?"));
     82                        wp_die(__("Cheatin' uh ?"));
    8383
    8484                wp_delete_link($link_id);
    … …  
    9696                include_once ('admin-header.php');
    9797                if (!current_user_can('manage_links'))
    98                         die(__('You do not have sufficient permissions to edit the bookmarks for this blog.'));
     98                        wp_die(__('You do not have sufficient permissions to edit the bookmarks for this blog.'));
    9999
    100100                $link_id = (int) $_GET['link_id'];
    101101
    102102                if (!$link = get_link_to_edit($link_id))
    103                         die(__('Link not found.'));
     103                        wp_die(__('Link not found.'));
    104104
    105105                include ('edit-link-form.php');
Note: See TracChangeset for help on using the changeset viewer.