Make WordPress Core

Changeset 36969


Ignore:
Timestamp:
03/11/2016 08:51:13 AM (9 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.

Location:
trunk/src/wp-admin
Files:
2 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/**
  • trunk/src/wp-admin/term.php

    r36874 r36969  
    2020}
    2121
    22 $term_id = absint( $_REQUEST['tag_ID'] );
    23 $tag     = get_term( $term_id, '', OBJECT, 'edit' );
     22$tag_ID = absint( $_REQUEST['tag_ID'] );
     23$tag    = get_term( $tag_ID, '', OBJECT, 'edit' );
    2424
    2525if ( ! $tag instanceof WP_Term ) {
Note: See TracChangeset for help on using the changeset viewer.