Changeset 52929 for trunk/src/wp-content/themes/twentytwelve/functions.php
- Timestamp:
- 03/13/2022 08:01:05 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwelve/functions.php
r51967 r52929 384 384 } 385 385 add_action( 'widgets_init', 'twentytwelve_widgets_init' ); 386 387 if ( ! function_exists( 'wp_get_list_item_separator' ) ) : 388 /** 389 * Retrieves the list item separator based on the locale. 390 * 391 * Added for backward compatibility to support pre-6.0.0 WordPress versions. 392 * 393 * @since 6.0.0 394 */ 395 function wp_get_list_item_separator() { 396 /* translators: Used between list items, there is a space after the comma. */ 397 return __( ', ', 'twentytwelve' ); 398 } 399 endif; 386 400 387 401 if ( ! function_exists( 'twentytwelve_content_nav' ) ) : … … 503 517 */ 504 518 function twentytwelve_entry_meta() { 505 /* translators: Used between list items, there is a space after the comma. */ 506 $categories_list = get_the_category_list( __( ', ', 'twentytwelve' ) ); 507 508 /* translators: Used between list items, there is a space after the comma. */ 509 $tags_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) ); 519 $categories_list = get_the_category_list( wp_get_list_item_separator() ); 520 521 $tags_list = get_the_tag_list( '', wp_get_list_item_separator() ); 510 522 511 523 $date = sprintf(
Note: See TracChangeset
for help on using the changeset viewer.