WordPress.org

Make WordPress Core

Ticket #19593: 19593.patch

File 19593.patch, 4.0 KB (added by SergeyBiryukov, 2 years ago)
  • wp-admin/includes/class-wp-plugin-install-list-table.php

     
    219219                        <td class="vers column-version"<?php echo $style['version']; ?>><?php echo $version; ?></td> 
    220220                        <td class="vers column-rating"<?php echo $style['rating']; ?>> 
    221221                                <div class="star-holder" title="<?php printf( _n( '(based on %s rating)', '(based on %s ratings)', $plugin['num_ratings'] ), number_format_i18n( $plugin['num_ratings'] ) ) ?>"> 
    222                                         <div class="star star-rating" style="width: <?php echo esc_attr( $plugin['rating'] ) ?>px"></div> 
     222                                        <div class="star star-rating" style="width: <?php echo esc_attr( str_replace( ',', '.', $plugin['rating'] ) ); ?>px"></div> 
    223223                                        <?php 
    224224                                                $color = get_user_option('admin_color'); 
    225225                                                if ( empty($color) || 'fresh' == $color ) 
  • wp-admin/includes/plugin-install.php

     
    328328                <?php if ( ! empty($api->rating) ) : ?> 
    329329                <h2><?php _e('Average Rating') ?></h2> 
    330330                <div class="star-holder" title="<?php printf(_n('(based on %s rating)', '(based on %s ratings)', $api->num_ratings), number_format_i18n($api->num_ratings)); ?>"> 
    331                         <div class="star star-rating" style="width: <?php echo esc_attr($api->rating) ?>px"></div> 
     331                        <div class="star star-rating" style="width: <?php echo esc_attr( str_replace( ',', '.', $api->rating ) ); ?>px"></div> 
    332332                        <div class="star star5"><img src="<?php echo admin_url('images/star.png?v=20110615'); ?>" alt="<?php esc_attr_e('5 stars') ?>" /></div> 
    333333                        <div class="star star4"><img src="<?php echo admin_url('images/star.png?v=20110615'); ?>" alt="<?php esc_attr_e('4 stars') ?>" /></div> 
    334334                        <div class="star star3"><img src="<?php echo admin_url('images/star.png?v=20110615'); ?>" alt="<?php esc_attr_e('3 stars') ?>" /></div> 
  • wp-admin/includes/theme-install.php

     
    171171<p><strong><?php _e('Downloaded:') ?></strong> <?php printf(_n('%s time', '%s times', $theme->downloaded), number_format_i18n($theme->downloaded)) ?></p> 
    172172<?php endif; ?> 
    173173<div class="star-holder" title="<?php printf(_n('(based on %s rating)', '(based on %s ratings)', $theme->num_ratings), number_format_i18n($theme->num_ratings)) ?>"> 
    174         <div class="star star-rating" style="width: <?php echo esc_attr($theme->rating) ?>px"></div> 
     174        <div class="star star-rating" style="width: <?php echo esc_attr( str_replace( ',', '.', $theme->rating ) ); ?>px"></div> 
    175175        <div class="star star5"><img src="<?php echo admin_url('images/star.png?v=20110615'); ?>" alt="<?php esc_attr_e('5 stars') ?>" /></div> 
    176176        <div class="star star4"><img src="<?php echo admin_url('images/star.png?v=20110615'); ?>" alt="<?php esc_attr_e('4 stars') ?>" /></div> 
    177177        <div class="star star3"><img src="<?php echo admin_url('images/star.png?v=20110615'); ?>" alt="<?php esc_attr_e('3 stars') ?>" /></div> 
  • wp-includes/category-template.php

     
    682682                $tag_id = isset($tags[ $key ]->id) ? $tags[ $key ]->id : $key; 
    683683                $tag_name = $tags[ $key ]->name; 
    684684                $a[] = "<a href='$tag_link' class='tag-link-$tag_id' title='" . esc_attr( call_user_func( $topic_count_text_callback, $real_count ) ) . "' style='font-size: " . 
    685                         ( $smallest + ( ( $count - $min_count ) * $font_step ) ) 
     685                        str_replace( ',', '.', ( $smallest + ( ( $count - $min_count ) * $font_step ) ) ) 
    686686                        . "$unit;'>$tag_name</a>"; 
    687687        } 
    688688