mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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:
@@ -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?' ) );
|
||||
|
||||
Reference in New Issue
Block a user