Changeset 34202 for trunk/src/wp-admin/edit-tag-form.php
- Timestamp:
- 09/15/2015 03:58:04 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/edit-tag-form.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-tag-form.php
r32974 r34202 49 49 do_action( 'edit_tag_form_pre', $tag ); 50 50 } 51 52 /** 53 * Use with caution, see http://codex.wordpress.org/Function_Reference/wp_reset_vars 54 */ 55 wp_reset_vars( array( 'wp_http_referer' ) ); 56 57 $wp_http_referer = remove_query_arg( array( 'action', 'message', 'tag_ID' ), $wp_http_referer ); 58 59 /** Also used by Edit Tags */ 60 require_once( ABSPATH . 'wp-admin/includes/edit-tag-messages.php' ); 61 51 62 /** 52 63 * Fires before the Edit Term form for all taxonomies. … … 64 75 <div class="wrap"> 65 76 <h1><?php echo $tax->labels->edit_item; ?></h1> 77 78 <?php if ( $message ) : ?> 79 <div id="message" class="updated"> 80 <p><strong><?php echo $message; ?></strong></p> 81 <?php if ( $wp_http_referer ) { ?> 82 <p><a href="<?php echo esc_url( $wp_http_referer ); ?>"><?php printf( __( '← Back to %s' ), $tax->labels->name ); ?></a></p> 83 <?php } else { ?> 84 <p><a href="<?php echo esc_url( wp_get_referer() ); ?>"><?php printf( __( '← Back to %s' ), $tax->labels->name ); ?></a></p> 85 <?php } ?> 86 </div> 87 <?php endif; ?> 88 66 89 <div id="ajax-response"></div> 90 67 91 <form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate" 68 92 <?php
Note: See TracChangeset
for help on using the changeset viewer.