Make WordPress Core


Ignore:
Timestamp:
06/27/2010 01:05:53 AM (14 years ago)
Author:
nacin
Message:

Make Categories/Tags columns on edit.php properly aware of post types. Also ensure AJAX add-tag on edit-tags.php is given the post type. fixes #14061 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r15315 r15336  
    13901390                $out = array();
    13911391                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}&amp;category_name={$c->slug}'> " . esc_html(sanitize_term_field('name', $c->name, $c->term_id, 'category', 'display')) . '</a>';
    13931393                    echo join( ', ', $out );
    13941394            } else {
     
    14061406                $out = array();
    14071407                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}&amp;tag={$c->slug}'> " . esc_html(sanitize_term_field('name', $c->name, $c->term_id, 'post_tag', 'display')) . '</a>';
    14091409                echo join( ', ', $out );
    14101410            } else {
Note: See TracChangeset for help on using the changeset viewer.