Make WordPress Core


Ignore:
Timestamp:
05/19/2014 01:58:28 AM (10 years ago)
Author:
wonderboymusic
Message:

hackificator doesn't like mixed quote styles in some generated HTML. The switch from single to double allows these files to be parsed.

See #27881.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r28407 r28497  
    22962296else
    22972297    $class = '';
    2298 $type_links[] = "<li><a href='" . esc_url(add_query_arg(array('post_mime_type'=>'all', 'paged'=>false, 'm'=>false))) . "'$class>".__('All Types')."</a>";
     2298$type_links[] = '<li><a href="' . esc_url(add_query_arg(array('post_mime_type'=>'all', 'paged'=>false, 'm'=>false))) . '"' . $class . '>' . __('All Types') . '</a>';
    22992299foreach ( $post_mime_types as $mime_type => $label ) {
    23002300    $class = '';
     
    23062306        $class = ' class="current"';
    23072307
    2308     $type_links[] = "<li><a href='" . esc_url(add_query_arg(array('post_mime_type'=>$mime_type, 'paged'=>false))) . "'$class>" . sprintf( translate_nooped_plural( $label[2], $num_posts[$mime_type] ), "<span id='$mime_type-counter'>" . number_format_i18n( $num_posts[$mime_type] ) . '</span>') . '</a>';
     2308    $type_links[] = '<li><a href="' . esc_url(add_query_arg(array('post_mime_type'=>$mime_type, 'paged'=>false))) . '"' . $class . '>' . sprintf( translate_nooped_plural( $label[2], $num_posts[$mime_type] ), '<span id="' . $mime_type . '-counter">' . number_format_i18n( $num_posts[$mime_type] ) . '</span>') . '</a>';
    23092309}
    23102310/**
Note: See TracChangeset for help on using the changeset viewer.