Taxonomy: After [36874], rename $term_id to $tag_ID in wp-admin/edit-tag-form.php.

This ensures that no variables changed in the process of introducing `wp-admin/term.php`, improving overall backward compatibility.

Props Chouby for initial patch.
Fixes #34988.

git-svn-id: https://develop.svn.wordpress.org/trunk@36969 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Pascal Birchler
2016-03-11 08:51:13 +00:00
parent e20f75533e
commit 91d4bbd041
2 changed files with 5 additions and 5 deletions

View File

@@ -19,8 +19,8 @@ if ( empty( $_REQUEST['tag_ID'] ) ) {
exit;
}
$term_id = absint( $_REQUEST['tag_ID'] );
$tag = get_term( $term_id, '', OBJECT, 'edit' );
$tag_ID = absint( $_REQUEST['tag_ID'] );
$tag = get_term( $tag_ID, '', OBJECT, 'edit' );
if ( ! $tag instanceof WP_Term ) {
wp_die( __( 'You attempted to edit an item that doesn’t exist. Perhaps it was deleted?' ) );