Changeset 15175
- Timestamp:
- 06/08/2010 03:34:42 PM (13 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin.php
r14970 r15175 82 82 83 83 if ( isset($_GET['post_type']) ) 84 $typenow = sanitize_ user($_GET['post_type'], true);84 $typenow = sanitize_key($_GET['post_type']); 85 85 else 86 86 $typenow = ''; 87 88 if ( isset($_GET['taxonomy']) ) 89 $taxnow = sanitize_key($_GET['taxonomy']); 90 else 91 $taxnow = ''; 87 92 88 93 require(ABSPATH . 'wp-admin/menu.php'); -
trunk/wp-admin/edit-tags.php
r15141 r15175 297 297 298 298 <div class="clear"></div> 299 <?php $table_type = ('category' == $taxonomy ? 'categories' : 'edit-tags'); ?>300 299 <table class="widefat tag fixed" cellspacing="0"> 301 300 <thead> 302 301 <tr> 303 <?php print_column_headers($ table_type); ?>302 <?php print_column_headers($current_screen); ?> 304 303 </tr> 305 304 </thead> … … 307 306 <tfoot> 308 307 <tr> 309 <?php print_column_headers($ table_type, false); ?>308 <?php print_column_headers($current_screen, false); ?> 310 309 </tr> 311 310 </tfoot> -
trunk/wp-admin/includes/template.php
r15148 r15175 397 397 */ 398 398 function _tag_row( $tag, $level, $taxonomy = 'post_tag' ) { 399 global $post_type ;399 global $post_type, $current_screen; 400 400 static $row_class = ''; 401 401 $row_class = ($row_class == '' ? ' class="alternate"' : ''); … … 423 423 424 424 425 $columns = get_column_headers( 'edit-tags');426 $hidden = get_hidden_columns( 'edit-tags');425 $columns = get_column_headers($current_screen); 426 $hidden = get_hidden_columns($current_screen); 427 427 $default_term = get_option('default_' . $taxonomy); 428 428 foreach ( $columns as $column_name => $column_display_name ) { … … 3901 3901 */ 3902 3902 function set_current_screen( $id = '' ) { 3903 global $current_screen, $hook_suffix, $typenow ;3903 global $current_screen, $hook_suffix, $typenow, $taxnow; 3904 3904 3905 3905 if ( empty($id) ) { … … 3933 3933 $current_screen->id = $typenow; 3934 3934 $current_screen->post_type = $typenow; 3935 } elseif ( 'edit-tags' == $current_screen->id ) { 3936 if ( empty($taxnow) ) 3937 $taxnow = 'post_tag'; 3938 $current_screen->id = 'edit-' . $taxnow; 3939 $current_screen->taxonomy = $taxnow; 3935 3940 } 3936 3941
Note: See TracChangeset
for help on using the changeset viewer.