wp/wp-admin/term.php
changeset 19 3d72ae0968f4
parent 16 a86126ab1dd4
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
    26 
    26 
    27 $tag_ID = absint( $_REQUEST['tag_ID'] );
    27 $tag_ID = absint( $_REQUEST['tag_ID'] );
    28 $tag    = get_term( $tag_ID, $taxnow, OBJECT, 'edit' );
    28 $tag    = get_term( $tag_ID, $taxnow, OBJECT, 'edit' );
    29 
    29 
    30 if ( ! $tag instanceof WP_Term ) {
    30 if ( ! $tag instanceof WP_Term ) {
    31 	wp_die( __( 'You attempted to edit an item that doesn’t exist. Perhaps it was deleted?' ) );
    31 	wp_die( __( 'You attempted to edit an item that does not exist. Perhaps it was deleted?' ) );
    32 }
    32 }
    33 
    33 
    34 $tax      = get_taxonomy( $tag->taxonomy );
    34 $tax      = get_taxonomy( $tag->taxonomy );
    35 $taxonomy = $tax->name;
    35 $taxonomy = $tax->name;
    36 $title    = $tax->labels->edit_item;
    36 $title    = $tax->labels->edit_item;