Index: src/wp-includes/post-template.php
===================================================================
--- src/wp-includes/post-template.php (revision 41562)
+++ src/wp-includes/post-template.php (working copy)
@@ -1018,12 +1018,20 @@
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 @@
* @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";
}