Make WordPress Core

Changeset 28360


Ignore:
Timestamp:
05/11/2014 12:04:38 AM (10 years ago)
Author:
wonderboymusic
Message:

In WP_Terms_List_Table::single_row(), call sanitize_term() on the passed term ($tag).

Props oso96_2000, c3mdigital, scribu.
It takes a village.
Fixes #16864.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-terms-list-table.php

    r27089 r28360  
    243243
    244244    function single_row( $tag, $level = 0 ) {
     245        global $taxonomy;
     246        $tag = sanitize_term( $tag, $taxonomy );
     247
    245248        static $row_class = '';
    246249        $row_class = ( $row_class == '' ? ' class="alternate"' : '' );
Note: See TracChangeset for help on using the changeset viewer.