WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/11/2016 08:51:13 AM (6 years ago)
Author:
swissspidy
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-tag-form.php

    r36577 r36969  
    5050wp_reset_vars( array( 'wp_http_referer' ) );
    5151
    52 $wp_http_referer = remove_query_arg( array( 'action', 'message', 'term_id' ), $wp_http_referer );
     52$wp_http_referer = remove_query_arg( array( 'action', 'message', 'tag_ID' ), $wp_http_referer );
    5353
    5454/** Also used by Edit Tags */
     
    9797?>>
    9898<input type="hidden" name="action" value="editedtag"/>
    99 <input type="hidden" name="tag_ID" value="<?php echo esc_attr( $term_id ) ?>"/>
     99<input type="hidden" name="tag_ID" value="<?php echo esc_attr( $tag_ID ) ?>"/>
    100100<input type="hidden" name="taxonomy" value="<?php echo esc_attr( $taxonomy ) ?>"/>
    101101<?php
    102102wp_original_referer_field( true, 'previous' );
    103 wp_nonce_field( 'update-tag_' . $term_id );
     103wp_nonce_field( 'update-tag_' . $tag_ID );
    104104
    105105/**
Note: See TracChangeset for help on using the changeset viewer.