diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php
index 7d7786abcb..b80ac4d4e4 100644
--- a/src/wp-includes/post-template.php
+++ b/src/wp-includes/post-template.php
@@ -1018,11 +1018,19 @@ function the_meta() {
if ( $keys = get_post_custom_keys() ) {
echo "
\n";
foreach ( (array) $keys as $key ) {
- $keyt = trim($key);
- if ( is_protected_meta( $keyt, 'post' ) )
+ $keyt = trim( $key );
+ if ( is_protected_meta( $keyt, 'post' ) ) {
continue;
- $values = array_map('trim', get_post_custom_values($key));
- $value = implode($values,', ');
+ }
+
+ $values = array_map( 'trim', get_post_custom_values( $key ) );
+ $value = implode( $values, ', ' );
+
+ $html = sprintf( "- %s %s
\n",
+ /* translators: %s: Post custom field name */
+ sprintf( _x( '%s:', 'Post custom field name' ), $key ),
+ $value
+ );
/**
* Filters the HTML output of the li element in the post custom fields list.
@@ -1033,7 +1041,7 @@ function the_meta() {
* @param string $key Meta key.
* @param string $value Meta value.
*/
- echo apply_filters( 'the_meta_key', "- $key: $value
\n", $key, $value );
+ echo apply_filters( 'the_meta_key', $html, $key, $value );
}
echo "
\n";
}