Ticket #14061: 14061.diff
File 14061.diff, 2.3 KB (added by , 14 years ago) |
---|
-
wp-admin/admin-ajax.php
552 552 break; 553 553 case 'add-tag' : // From Manage->Tags 554 554 check_ajax_referer( 'add-tag' ); 555 555 $post_type = !empty($_POST['post_type']) ? $_POST['post_type'] : 'post'; 556 556 $taxonomy = !empty($_POST['taxonomy']) ? $_POST['taxonomy'] : 'post_tag'; 557 557 $tax = get_taxonomy($taxonomy); 558 558 -
wp-admin/includes/template.php
1389 1389 if ( !empty( $categories ) ) { 1390 1390 $out = array(); 1391 1391 foreach ( $categories as $c ) 1392 $out[] = "<a href='edit.php? category_name=$c->slug'> " . esc_html(sanitize_term_field('name', $c->name, $c->term_id, 'category', 'display')) . '</a>';1392 $out[] = "<a href='edit.php?post_type={$post->post_type}&category_name={$c->slug}'> " . esc_html(sanitize_term_field('name', $c->name, $c->term_id, 'category', 'display')) . '</a>'; 1393 1393 echo join( ', ', $out ); 1394 1394 } else { 1395 1395 _e('Uncategorized'); … … 1405 1405 if ( !empty( $tags ) ) { 1406 1406 $out = array(); 1407 1407 foreach ( $tags as $c ) 1408 $out[] = "<a href='edit.php? tag=$c->slug'> " . esc_html(sanitize_term_field('name', $c->name, $c->term_id, 'post_tag', 'display')) . '</a>';1408 $out[] = "<a href='edit.php?post_type={$post->post_type}&tag={$c->slug}'> " . esc_html(sanitize_term_field('name', $c->name, $c->term_id, 'post_tag', 'display')) . '</a>'; 1409 1409 echo join( ', ', $out ); 1410 1410 } else { 1411 1411 _e('No Tags'); -
wp-admin/edit-tags.php
382 382 <input type="hidden" name="action" value="add-tag" /> 383 383 <input type="hidden" name="screen" value="<?php echo esc_attr($current_screen->id); ?>" /> 384 384 <input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy); ?>" /> 385 <input type="hidden" name="post_type" value="<?php echo esc_attr($post_type); ?>" /> 385 386 <?php wp_nonce_field('add-tag'); ?> 386 387 387 388 <div class="form-field form-required">