Changeset 6854

Show
Ignore:
Timestamp:
02/14/08 21:57:19 (9 months ago)
Author:
ryan
Message:

Filter cat and tag names. Props jhodgdon. fixes #5861

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/edit-post-rows.php

    r6796 r6854  
    7575            $out = array(); 
    7676            foreach ( $categories as $c ) 
    77                 $out[] = "<a href='edit.php?category_name=$c->slug'> " . wp_specialchars( $c->name) . "</a>"; 
     77                $out[] = "<a href='edit.php?category_name=$c->slug'> " . wp_specialchars(sanitize_term_field('name', $c->name, $c->term_id, 'category', 'display')) . "</a>"; 
    7878            echo join( ', ', $out ); 
    7979        } else { 
     
    9191            $out = array(); 
    9292            foreach ( $tags as $c ) 
    93                 $out[] = "<a href='edit.php?tag=$c->slug'> " . wp_specialchars( $c->name) . "</a>"; 
     93                $out[] = "<a href='edit.php?tag=$c->slug'> " . wp_specialchars(sanitize_term_field('name', $c->name, $c->term_id, 'post_tag', 'display')) . "</a>"; 
    9494            echo join( ', ', $out ); 
    9595        } else {