WordPress.org

Make WordPress Core

Changeset 11239


Ignore:
Timestamp:
05/08/2009 01:47:26 PM (10 years ago)
Author:
azaozz
Message:

Strip tags from category description when used as title, props demetris, fixes #9753

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r11204 r11239  
    13321332            $link .= 'title="' . sprintf(__( 'View all posts filed under %s' ), $cat_name) . '"';
    13331333        else
    1334             $link .= 'title="' . esc_attr( apply_filters( 'category_description', $category->description, $category )) . '"';
     1334            $link .= 'title="' . esc_attr( strip_tags( apply_filters( 'category_description', $category->description, $category ) ) ) . '"';
    13351335        $link .= '>';
    13361336        $link .= $cat_name . '</a>';
Note: See TracChangeset for help on using the changeset viewer.