Changeset 5001 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-meta.php
- Timestamp:
- 02/24/2017 06:30:31 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-meta.php
r4223 r5001 60 60 <?php } ?> 61 61 <?php if ( $tags = get_the_term_list( $post->ID, 'plugin_tags', '<div class="tags">', '', '</div>' ) ) : ?> 62 <li><?php printf( _n( 'Tag: %s', 'Tags: %s', count( get_the_terms( $post, 'plugin_tags' ) ), 'wporg-plugins' ), $tags ); ?></li> 62 <li><?php 63 $terms = get_the_terms( $post, 'plugin_tags' ); 64 if ( 1 == count( $terms ) ) { 65 printf( __( 'Tag: %s', 'wporg-plugins' ), $tags ); 66 } else { 67 printf( __( 'Tags: %s', 'wporg-plugins' ), $tags ); 68 } 69 ?></li> 63 70 <?php endif; ?> 64 71 </ul>
Note: See TracChangeset
for help on using the changeset viewer.