~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-admin/term.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:50:12 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: barry.price@canonical.com-20160817045012-qfui81zhqnqv2ba9
Merge WP4.6 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
}
21
21
 
22
22
$tag_ID = absint( $_REQUEST['tag_ID'] );
23
 
$tag    = get_term( $tag_ID, '', OBJECT, 'edit' );
 
23
$tag    = get_term( $tag_ID, $taxnow, OBJECT, 'edit' );
24
24
 
25
25
if ( ! $tag instanceof WP_Term ) {
26
26
        wp_die( __( 'You attempted to edit an item that doesn’t exist. Perhaps it was deleted?' ) );
35
35
) {
36
36
        wp_die(
37
37
                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
38
 
                '<p>' . __( 'You are not allowed to manage this item.' ) . '</p>',
 
38
                '<p>' . __( 'Sorry, you are not allowed to manage this item.' ) . '</p>',
39
39
                403
40
40
        );
41
41
}