<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[52929] trunk/src: i18n: Define List item separator as a WP_Locale property.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/52929">52929</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/52929","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>audrasjb</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2022-03-13 20:01:05 +0000 (Sun, 13 Mar 2022)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>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 <a href="https://core.trac.wordpress.org/ticket/39733">#39733</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadminincludesclasswpmedialisttablephp">trunk/src/wp-admin/includes/class-wp-media-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswppostslisttablephp">trunk/src/wp-admin/includes/class-wp-posts-list-table.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyelevencontentfeaturedphp">trunk/src/wp-content/themes/twentyeleven/content-featured.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyelevencontentgalleryphp">trunk/src/wp-content/themes/twentyeleven/content-gallery.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyelevencontentimagephp">trunk/src/wp-content/themes/twentyeleven/content-image.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyelevencontentquotephp">trunk/src/wp-content/themes/twentyeleven/content-quote.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyelevencontentsinglephp">trunk/src/wp-content/themes/twentyeleven/content-single.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyelevencontentphp">trunk/src/wp-content/themes/twentyeleven/content.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyelevenfunctionsphp">trunk/src/wp-content/themes/twentyeleven/functions.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentynineteenfunctionsphp">trunk/src/wp-content/themes/twentynineteen/functions.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentynineteeninctemplatetagsphp">trunk/src/wp-content/themes/twentynineteen/inc/template-tags.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyseventeenfunctionsphp">trunk/src/wp-content/themes/twentyseventeen/functions.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentyseventeeninctemplatetagsphp">trunk/src/wp-content/themes/twentyseventeen/inc/template-tags.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentythirteenfunctionsphp">trunk/src/wp-content/themes/twentythirteen/functions.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwelvefunctionsphp">trunk/src/wp-content/themes/twentytwelve/functions.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentyonefunctionsphp">trunk/src/wp-content/themes/twentytwentyone/functions.php</a></li>
<li><a href="#trunksrcwpcontentthemestwentytwentyoneinctemplatetagsphp">trunk/src/wp-content/themes/twentytwentyone/inc/template-tags.php</a></li>
<li><a href="#trunksrcwpincludesclasswplocalephp">trunk/src/wp-includes/class-wp-locale.php</a></li>
<li><a href="#trunksrcwpincludesclasswpthemephp">trunk/src/wp-includes/class-wp-theme.php</a></li>
<li><a href="#trunksrcwpincludesfunctionsphp">trunk/src/wp-includes/functions.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadminincludesclasswpmedialisttablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-media-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-media-list-table.php 2022-03-13 09:48:08 UTC (rev 52928)
+++ trunk/src/wp-admin/includes/class-wp-media-list-table.php 2022-03-13 20:01:05 UTC (rev 52929)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -633,8 +633,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> esc_html( sanitize_term_field( 'name', $t->name, $t->term_id, $taxonomy, 'display' ) )
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- echo implode( __( ', ' ), $out );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ echo implode( wp_get_list_item_separator(), $out );
</ins><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="cx" style="display: block; padding: 0 10px"> echo '<span aria-hidden="true">—</span><span class="screen-reader-text">' . get_taxonomy( $taxonomy )->labels->no_terms . '</span>';
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswppostslisttablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-posts-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-posts-list-table.php 2022-03-13 09:48:08 UTC (rev 52928)
+++ trunk/src/wp-admin/includes/class-wp-posts-list-table.php 2022-03-13 20:01:05 UTC (rev 52929)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1294,8 +1294,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> $term_links = apply_filters( 'post_column_taxonomy_links', $term_links, $taxonomy, $terms );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- echo implode( __( ', ' ), $term_links );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ echo implode( wp_get_list_item_separator(), $term_links );
</ins><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><span class="cx" style="display: block; padding: 0 10px"> echo '<span aria-hidden="true">—</span><span class="screen-reader-text">' . $taxonomy_object->labels->no_terms . '</span>';
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyelevencontentfeaturedphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentyeleven/content-featured.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentyeleven/content-featured.php 2022-03-13 09:48:08 UTC (rev 52928)
+++ trunk/src/wp-content/themes/twentyeleven/content-featured.php 2022-03-13 20:01:05 UTC (rev 52929)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -32,8 +32,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <footer class="entry-meta">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $tags_list = get_the_tag_list( '', wp_get_list_item_separator() );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $tags_list && ! is_wp_error( $tags_list ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> /* translators: 1: Category list, 2: Tag list, 3: Post permalink, 4: Post title. */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -45,8 +44,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> printf(
</span><span class="cx" style="display: block; padding: 0 10px"> $utility_text,
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- get_the_category_list( __( ', ', 'twentyeleven' ) ),
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ get_the_category_list( wp_get_list_item_separator() ),
</ins><span class="cx" style="display: block; padding: 0 10px"> $tags_list,
</span><span class="cx" style="display: block; padding: 0 10px"> esc_url( get_permalink() ),
</span><span class="cx" style="display: block; padding: 0 10px"> the_title_attribute( 'echo=0' )
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyelevencontentgalleryphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentyeleven/content-gallery.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentyeleven/content-gallery.php 2022-03-13 09:48:08 UTC (rev 52928)
+++ trunk/src/wp-content/themes/twentyeleven/content-gallery.php 2022-03-13 20:01:05 UTC (rev 52929)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -72,8 +72,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php $show_sep = false; ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $categories_list = get_the_category_list( wp_get_list_item_separator() );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $categories_list ) :
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -87,8 +86,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php endif; // End if categories. ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $tags_list = get_the_tag_list( '', wp_get_list_item_separator() );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $tags_list && ! is_wp_error( $tags_list ) ) :
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $show_sep ) :
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyelevencontentimagephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentyeleven/content-image.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentyeleven/content-image.php 2022-03-13 09:48:08 UTC (rev 52928)
+++ trunk/src/wp-content/themes/twentyeleven/content-image.php 2022-03-13 20:01:05 UTC (rev 52929)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -55,8 +55,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> </div><!-- .entry-meta -->
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="entry-meta">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $categories_list = get_the_category_list( wp_get_list_item_separator() );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $categories_list ) :
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -69,8 +68,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php endif; // End if categories. ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $tags_list = get_the_tag_list( '', wp_get_list_item_separator() );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $tags_list && ! is_wp_error( $tags_list ) ) :
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyelevencontentquotephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentyeleven/content-quote.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentyeleven/content-quote.php 2022-03-13 09:48:08 UTC (rev 52928)
+++ trunk/src/wp-content/themes/twentyeleven/content-quote.php 2022-03-13 20:01:05 UTC (rev 52929)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -48,8 +48,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php $show_sep = false; ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $categories_list = get_the_category_list( wp_get_list_item_separator() );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $categories_list ) :
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -63,8 +62,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php endif; // End if categories. ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $tags_list = get_the_tag_list( '', wp_get_list_item_separator() );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $tags_list && ! is_wp_error( $tags_list ) ) :
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $show_sep ) :
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyelevencontentsinglephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentyeleven/content-single.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentyeleven/content-single.php 2022-03-13 09:48:08 UTC (rev 52928)
+++ trunk/src/wp-content/themes/twentyeleven/content-single.php 2022-03-13 20:01:05 UTC (rev 52929)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -33,11 +33,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <footer class="entry-meta">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $categories_list = get_the_category_list( wp_get_list_item_separator() );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $tags_list = get_the_tag_list( '', wp_get_list_item_separator() );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $tags_list && ! is_wp_error( $tags_list ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> /* translators: 1: Categories list, 2: Tag list, 3: Permalink, 4: Post title, 5: Author name, 6: Author URL. */
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyelevencontentphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentyeleven/content.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentyeleven/content.php 2022-03-13 09:48:08 UTC (rev 52928)
+++ trunk/src/wp-content/themes/twentyeleven/content.php 2022-03-13 20:01:05 UTC (rev 52929)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -55,8 +55,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php if ( is_object_in_taxonomy( get_post_type(), 'category' ) ) : // Hide category text when not supported. ?>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $categories_list = get_the_category_list( wp_get_list_item_separator() );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $categories_list ) :
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -72,8 +71,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> <?php if ( is_object_in_taxonomy( get_post_type(), 'post_tag' ) ) : // Hide tag text when not supported. ?>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $tags_list = get_the_tag_list( '', wp_get_list_item_separator() );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $tags_list && ! is_wp_error( $tags_list ) ) :
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $show_sep ) :
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyelevenfunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentyeleven/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentyeleven/functions.php 2022-03-13 09:48:08 UTC (rev 52928)
+++ trunk/src/wp-content/themes/twentyeleven/functions.php 2022-03-13 20:01:05 UTC (rev 52929)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -929,3 +929,17 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> add_action( 'wp_body_open', 'twentyeleven_skip_link', 5 );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+if ( ! function_exists( 'wp_get_list_item_separator' ) ) :
+ /**
+ * Retrieves the list item separator based on the locale.
+ *
+ * Added for backward compatibility to support pre-6.0.0 WordPress versions.
+ *
+ * @since 6.0.0
+ */
+ function wp_get_list_item_separator() {
+ /* translators: Used between list items, there is a space after the comma. */
+ return __( ', ', 'twentyeleven' );
+ }
+endif;
</ins></span></pre></div>
<a id="trunksrcwpcontentthemestwentynineteenfunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentynineteen/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentynineteen/functions.php 2022-03-13 09:48:08 UTC (rev 52928)
+++ trunk/src/wp-content/themes/twentynineteen/functions.php 2022-03-13 20:01:05 UTC (rev 52929)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -182,6 +182,20 @@
</span><span class="cx" style="display: block; padding: 0 10px"> endif;
</span><span class="cx" style="display: block; padding: 0 10px"> add_action( 'after_setup_theme', 'twentynineteen_setup' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+if ( ! function_exists( 'wp_get_list_item_separator' ) ) :
+ /**
+ * Retrieves the list item separator based on the locale.
+ *
+ * Added for backward compatibility to support pre-6.0.0 WordPress versions.
+ *
+ * @since 6.0.0
+ */
+ function wp_get_list_item_separator() {
+ /* translators: Used between list items, there is a space after the comma. */
+ return __( ', ', 'twentynineteen' );
+ }
+endif;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Register widget area.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentynineteeninctemplatetagsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentynineteen/inc/template-tags.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentynineteen/inc/template-tags.php 2022-03-13 09:48:08 UTC (rev 52928)
+++ trunk/src/wp-content/themes/twentynineteen/inc/template-tags.php 2022-03-13 20:01:05 UTC (rev 52929)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -82,8 +82,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> // Posted on.
</span><span class="cx" style="display: block; padding: 0 10px"> twentynineteen_posted_on();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $categories_list = get_the_category_list( __( ', ', 'twentynineteen' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $categories_list = get_the_category_list( wp_get_list_item_separator() );
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $categories_list ) {
</span><span class="cx" style="display: block; padding: 0 10px"> printf(
</span><span class="cx" style="display: block; padding: 0 10px"> /* translators: 1: SVG icon. 2: Posted in label, only visible to screen readers. 3: List of categories. */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -94,8 +93,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> ); // WPCS: XSS OK.
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $tags_list = get_the_tag_list( '', __( ', ', 'twentynineteen' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $tags_list = get_the_tag_list( '', wp_get_list_item_separator() );
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $tags_list && ! is_wp_error( $tags_list ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> printf(
</span><span class="cx" style="display: block; padding: 0 10px"> /* translators: 1: SVG icon. 2: Posted in label, only visible to screen readers. 3: List of tags. */
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyseventeenfunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentyseventeen/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentyseventeen/functions.php 2022-03-13 09:48:08 UTC (rev 52928)
+++ trunk/src/wp-content/themes/twentyseventeen/functions.php 2022-03-13 20:01:05 UTC (rev 52929)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -647,6 +647,20 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return $prefix . (string) ++$id_counter;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+if ( ! function_exists( 'wp_get_list_item_separator' ) ) :
+ /**
+ * Retrieves the list item separator based on the locale.
+ *
+ * Added for backward compatibility to support pre-6.0.0 WordPress versions.
+ *
+ * @since 6.0.0
+ */
+ function wp_get_list_item_separator() {
+ /* translators: Used between list items, there is a space after the comma. */
+ return __( ', ', 'twentyseventeen' );
+ }
+endif;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Implement the Custom Header feature.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentyseventeeninctemplatetagsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentyseventeen/inc/template-tags.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentyseventeen/inc/template-tags.php 2022-03-13 09:48:08 UTC (rev 52928)
+++ trunk/src/wp-content/themes/twentyseventeen/inc/template-tags.php 2022-03-13 20:01:05 UTC (rev 52929)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -62,8 +62,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function twentyseventeen_entry_footer() {
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $separate_meta = __( ', ', 'twentyseventeen' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $separate_meta = wp_get_list_item_separator();
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> // Get Categories for posts.
</span><span class="cx" style="display: block; padding: 0 10px"> $categories_list = get_the_category_list( $separate_meta );
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentythirteenfunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentythirteen/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentythirteen/functions.php 2022-03-13 09:48:08 UTC (rev 52928)
+++ trunk/src/wp-content/themes/twentythirteen/functions.php 2022-03-13 20:01:05 UTC (rev 52929)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -438,6 +438,20 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> add_action( 'widgets_init', 'twentythirteen_widgets_init' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+if ( ! function_exists( 'wp_get_list_item_separator' ) ) :
+ /**
+ * Retrieves the list item separator based on the locale.
+ *
+ * Added for backward compatibility to support pre-6.0.0 WordPress versions.
+ *
+ * @since 6.0.0
+ */
+ function wp_get_list_item_separator() {
+ /* translators: Used between list items, there is a space after the comma. */
+ return __( ', ', 'twentythirteen' );
+ }
+endif;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( ! function_exists( 'twentythirteen_paging_nav' ) ) :
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Display navigation to next/previous set of posts when applicable.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -517,14 +531,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> twentythirteen_entry_date();
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $categories_list = get_the_category_list( __( ', ', 'twentythirteen' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $categories_list = get_the_category_list( wp_get_list_item_separator() );
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $categories_list ) {
</span><span class="cx" style="display: block; padding: 0 10px"> echo '<span class="categories-links">' . $categories_list . '</span>';
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $tags_list = get_the_tag_list( '', __( ', ', 'twentythirteen' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $tags_list = get_the_tag_list( '', wp_get_list_item_separator() );
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $tags_list && ! is_wp_error( $tags_list ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> echo '<span class="tags-links">' . $tags_list . '</span>';
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwelvefunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentytwelve/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwelve/functions.php 2022-03-13 09:48:08 UTC (rev 52928)
+++ trunk/src/wp-content/themes/twentytwelve/functions.php 2022-03-13 20:01:05 UTC (rev 52929)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -384,6 +384,20 @@
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> add_action( 'widgets_init', 'twentytwelve_widgets_init' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+if ( ! function_exists( 'wp_get_list_item_separator' ) ) :
+ /**
+ * Retrieves the list item separator based on the locale.
+ *
+ * Added for backward compatibility to support pre-6.0.0 WordPress versions.
+ *
+ * @since 6.0.0
+ */
+ function wp_get_list_item_separator() {
+ /* translators: Used between list items, there is a space after the comma. */
+ return __( ', ', 'twentytwelve' );
+ }
+endif;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( ! function_exists( 'twentytwelve_content_nav' ) ) :
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Displays navigation to next/previous pages when applicable.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -502,11 +516,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * @since Twenty Twelve 1.0
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> function twentytwelve_entry_meta() {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $categories_list = get_the_category_list( __( ', ', 'twentytwelve' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $categories_list = get_the_category_list( wp_get_list_item_separator() );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $tags_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $tags_list = get_the_tag_list( '', wp_get_list_item_separator() );
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $date = sprintf(
</span><span class="cx" style="display: block; padding: 0 10px"> '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>',
</span></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentyonefunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentytwentyone/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwentyone/functions.php 2022-03-13 09:48:08 UTC (rev 52928)
+++ trunk/src/wp-content/themes/twentytwentyone/functions.php 2022-03-13 20:01:05 UTC (rev 52929)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -640,3 +640,17 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> add_action( 'wp_footer', 'twentytwentyone_add_ie_class' );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+if ( ! function_exists( 'wp_get_list_item_separator' ) ) :
+ /**
+ * Retrieves the list item separator based on the locale.
+ *
+ * Added for backward compatibility to support pre-6.0.0 WordPress versions.
+ *
+ * @since 6.0.0
+ */
+ function wp_get_list_item_separator() {
+ /* translators: Used between list items, there is a space after the comma. */
+ return __( ', ', 'twentytwentyone' );
+ }
+endif;
</ins></span></pre></div>
<a id="trunksrcwpcontentthemestwentytwentyoneinctemplatetagsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-content/themes/twentytwentyone/inc/template-tags.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-content/themes/twentytwentyone/inc/template-tags.php 2022-03-13 09:48:08 UTC (rev 52928)
+++ trunk/src/wp-content/themes/twentytwentyone/inc/template-tags.php 2022-03-13 20:01:05 UTC (rev 52929)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -100,8 +100,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> echo '<div class="post-taxonomies">';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $categories_list = get_the_category_list( __( ', ', 'twentytwentyone' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $categories_list = get_the_category_list( wp_get_list_item_separator() );
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $categories_list ) {
</span><span class="cx" style="display: block; padding: 0 10px"> printf(
</span><span class="cx" style="display: block; padding: 0 10px"> /* translators: %s: List of categories. */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -110,8 +109,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $tags_list = get_the_tag_list( '', __( ', ', 'twentytwentyone' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $tags_list = get_the_tag_list( '', wp_get_list_item_separator() );
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $tags_list ) {
</span><span class="cx" style="display: block; padding: 0 10px"> printf(
</span><span class="cx" style="display: block; padding: 0 10px"> /* translators: %s: List of tags. */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -144,8 +142,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> echo '<div class="post-taxonomies">';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $categories_list = get_the_category_list( __( ', ', 'twentytwentyone' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $categories_list = get_the_category_list( wp_get_list_item_separator() );
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $categories_list ) {
</span><span class="cx" style="display: block; padding: 0 10px"> printf(
</span><span class="cx" style="display: block; padding: 0 10px"> /* translators: %s: List of categories. */
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -154,8 +151,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $tags_list = get_the_tag_list( '', __( ', ', 'twentytwentyone' ) );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $tags_list = get_the_tag_list( '', wp_get_list_item_separator() );
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( $tags_list ) {
</span><span class="cx" style="display: block; padding: 0 10px"> printf(
</span><span class="cx" style="display: block; padding: 0 10px"> /* translators: %s: List of tags. */
</span></span></pre></div>
<a id="trunksrcwpincludesclasswplocalephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/class-wp-locale.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-locale.php 2022-03-13 09:48:08 UTC (rev 52928)
+++ trunk/src/wp-includes/class-wp-locale.php 2022-03-13 20:01:05 UTC (rev 52929)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -96,6 +96,14 @@
</span><span class="cx" style="display: block; padding: 0 10px"> public $number_format;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * The separator string used for localizing list item separator.
+ *
+ * @since 6.0.0
+ * @var string
+ */
+ public $list_item_separator;
+
+ /**
</ins><span class="cx" style="display: block; padding: 0 10px"> * Constructor which calls helper methods to set up object variables.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * @since 2.1.0
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -209,6 +217,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $this->number_format['decimal_point'] = ( 'number_format_decimal_point' === $decimal_point ) ? '.' : $decimal_point;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /* translators: used between list items, there is a space after the comma */
+ $this->list_item_separator = __( ', ' );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> // Set text direction.
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $GLOBALS['text_direction'] ) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $this->text_direction = $GLOBALS['text_direction'];
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -366,4 +377,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /* translators: Localized date and time format, see https://www.php.net/manual/datetime.format.php */
</span><span class="cx" style="display: block; padding: 0 10px"> __( 'F j, Y g:i a' );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ /**
+ * Retrieve the localized list item separator.
+ *
+ * @since 6.0.0
+ *
+ * @return string Localized list item separator.
+ */
+ public function get_list_item_separator() {
+ return $this->list_item_separator;
+ }
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcwpincludesclasswpthemephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/class-wp-theme.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/class-wp-theme.php 2022-03-13 09:48:08 UTC (rev 52928)
+++ trunk/src/wp-includes/class-wp-theme.php 2022-03-13 20:01:05 UTC (rev 52929)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -924,8 +924,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> case 'Tags':
</span><span class="cx" style="display: block; padding: 0 10px"> static $comma = null;
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! isset( $comma ) ) {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- /* translators: Used between list items, there is a space after the comma. */
- $comma = __( ', ' );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $comma = wp_get_list_item_separator();
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> $value = implode( $comma, $value );
</span><span class="cx" style="display: block; padding: 0 10px"> break;
</span></span></pre></div>
<a id="trunksrcwpincludesfunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/functions.php 2022-03-13 09:48:08 UTC (rev 52928)
+++ trunk/src/wp-includes/functions.php 2022-03-13 20:01:05 UTC (rev 52929)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -8371,3 +8371,17 @@
</span><span class="cx" style="display: block; padding: 0 10px"> function wp_fuzzy_number_match( $expected, $actual, $precision = 1 ) {
</span><span class="cx" style="display: block; padding: 0 10px"> return abs( (float) $expected - (float) $actual ) <= $precision;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+/**
+ * Retrieves the list item separator based on the locale.
+ *
+ * @since 6.0.0
+ *
+ * @global WP_Locale $wp_locale WordPress date and time locale object.
+ *
+ * @return string Locale specific list item separator.
+ */
+function wp_get_list_item_separator() {
+ global $wp_locale;
+ return $wp_locale->get_list_item_separator();
+}
</ins></span></pre>
</div>
</div>
</body>
</html>