Make WordPress Core

Ticket #18718: 18718.patch

File 18718.patch, 602 bytes (added by johnbillion, 13 years ago)
  • wp-admin/edit-tags.php

     
    113113case 'edit':
    114114        $title = $tax->labels->edit_item;
    115115
    116         require_once ( 'admin-header.php' );
    117116        $tag_ID = (int) $_REQUEST['tag_ID'];
    118117
    119118        $tag = get_term( $tag_ID, $taxonomy, OBJECT, 'edit' );
     119        if ( !$tag )
     120                wp_die( __( 'You attempted to edit an item that doesn’t exist. Perhaps it was deleted?' ) );
     121        require_once ( 'admin-header.php' );
    120122        include( './edit-tag-form.php' );
    121123
    122124break;