Make WordPress Core

Ticket #23150: 23150.1.diff

File 23150.1.diff, 591 bytes (added by obenland, 11 years ago)
  • src/wp-includes/bookmark-template.php

     
    214214
    215215        $output = '';
    216216
     217        if ( ! is_array( $r['class'] ) ) {
     218                $r['class'] = explode( ' ', $r['class'] );
     219        }
     220        $r['class'] = array_map( 'sanitize_html_class', $r['class'] );
     221        $r['class'] = trim( join( ' ', $r['class'] ) );
     222
    217223        if ( $r['categorize'] ) {
    218224                $cats = get_terms( 'link_category', array(
    219225                        'name__like' => $r['category_name'],