Make WordPress Core

Changeset 6854


Ignore:
Timestamp:
02/14/2008 09:57:19 PM (19 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 {
Note: See TracChangeset for help on using the changeset viewer.