Make WordPress Core

Ticket #23150: 23150.diff

File 23150.diff, 688 bytes (added by ryan, 12 years ago)
  • wp-includes/bookmark-template.php

     
    214214
    215215        $output = '';
    216216
     217        if ( ! is_array( $class ) )
     218                $class = explode( ' ', $class );
     219        $class = array_map( 'sanitize_html_class', $class );
     220        $class = trim( join( ' ', $class ) );
     221
    217222        if ( $categorize ) {
    218223                $cats = get_terms( 'link_category', array( 'name__like' => $category_name, 'include' => $category, 'exclude' => $exclude_category, 'orderby' => $category_orderby, 'order' => $category_order, 'hierarchical' => 0 ) );
    219224                if ( empty( $cats ) )