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

    r3946 r3985  
    3232        // Don't delete the default cats.
    3333    if ( $cat_ID == get_option('default_category') )
    34                 die(sprintf(__("Can't delete the <strong>%s</strong> category: this is the default one"), $cat_name));
     34                wp_die(sprintf(__("Can't delete the <strong>%s</strong> category: this is the default one"), $cat_name));
    3535
    3636    if ( $cat_ID == get_option('default_link_category') )
    37                 die(sprintf(__("Can't delete the <strong>%s</strong> category: this is the default one for bookmarks"), $cat_name));
     37                wp_die(sprintf(__("Can't delete the <strong>%s</strong> category: this is the default one for bookmarks"), $cat_name));
    3838
    3939        wp_delete_category($cat_ID);
Note: See TracChangeset for help on using the changeset viewer.