]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/term.php
Wordpress 4.6
[autoinstalls/wordpress.git] / wp-admin / term.php
index d5417321f6baa2759f9b7ac49c131a8541040bcc..dc3f1d5fef3f9c2b16aa77e4fba7d50258ddd45e 100644 (file)
@@ -20,7 +20,7 @@ if ( empty( $_REQUEST['tag_ID'] ) ) {
 }
 
 $tag_ID = absint( $_REQUEST['tag_ID'] );
 }
 
 $tag_ID = absint( $_REQUEST['tag_ID'] );
-$tag    = get_term( $tag_ID, '', OBJECT, 'edit' );
+$tag    = get_term( $tag_ID, $taxnow, OBJECT, 'edit' );
 
 if ( ! $tag instanceof WP_Term ) {
        wp_die( __( 'You attempted to edit an item that doesn’t exist. Perhaps it was deleted?' ) );
 
 if ( ! $tag instanceof WP_Term ) {
        wp_die( __( 'You attempted to edit an item that doesn’t exist. Perhaps it was deleted?' ) );
@@ -35,7 +35,7 @@ if ( ! in_array( $taxonomy, get_taxonomies( array( 'show_ui' => true ) ) ) ||
 ) {
        wp_die(
                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
 ) {
        wp_die(
                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
-               '<p>' . __( 'You are not allowed to manage this item.' ) . '</p>',
+               '<p>' . __( 'Sorry, you are not allowed to manage this item.' ) . '</p>',
                403
        );
 }
                403
        );
 }