Ticket #13783: 13783.diff
| File 13783.diff, 2.0 KB (added by , 16 years ago) |
|---|
-
wp-admin/includes/template.php
3900 3900 * @param string $id Screen id, optional. 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) ) { 3906 3906 $current_screen = $hook_suffix; … … 3932 3932 $typenow = 'post'; 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 3937 3942 $current_screen = apply_filters('current_screen', $current_screen); -
wp-admin/edit-tags.php
296 296 </div> 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> 306 305 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> 312 311 -
wp-admin/admin.php
81 81 } 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 87 88 if ( isset($_GET['taxonomy']) ) 89 $taxnow = sanitize_key($_GET['taxonomy']); 90 else 91 $taxnow = ''; 92 88 93 require(ABSPATH . 'wp-admin/menu.php'); 89 94 90 95 if ( current_user_can( 'manage_options' ) )
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)