Make WordPress Core

Changeset 17072


Ignore:
Timestamp:
12/20/2010 09:34:58 AM (14 years ago)
Author:
nacin
Message:

Handle 'This gallery contains X photos' properly in Twenty Ten. fixes #15858.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/loop.php

    r16782 r17072  
    8383                            <a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a>
    8484                        </div><!-- .gallery-thumb -->
    85                         <p><em><?php printf( __( 'This gallery contains <a %1$s>%2$s photos</a>.', 'twentyten' ),
     85                        <p><em><?php printf( _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyten' ),
    8686                                'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"',
    87                                 $total_images
     87                                number_format_i18n( $total_images )
    8888                            ); ?></em></p>
    8989                <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.