mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
i18n: Define List item separator as a WP_Locale property.
The list item separator is a locale property, and it doesn't make much sense to translate it separately in multiple projects. This changeset implements the following modifications: - Define list item separator as a new WP_Locale property - Add `wp_get_list_item_separator()` as a wrapper for `WP_Locale::get_list_item_separator` - Replace `$wp_locale->get_list_item_separator()` calls with `wp_get_list_item_separator()` - Added a compatibility layer for bundled themes Props SergeyBiryukov, swissspidy, rsiddharth, johnbillion, audrasjb. Fixes #39733. git-svn-id: https://develop.svn.wordpress.org/trunk@52929 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1294,8 +1294,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
*/
|
||||
$term_links = apply_filters( 'post_column_taxonomy_links', $term_links, $taxonomy, $terms );
|
||||
|
||||
/* translators: Used between list items, there is a space after the comma. */
|
||||
echo implode( __( ', ' ), $term_links );
|
||||
echo implode( wp_get_list_item_separator(), $term_links );
|
||||
} else {
|
||||
echo '<span aria-hidden="true">—</span><span class="screen-reader-text">' . $taxonomy_object->labels->no_terms . '</span>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user