mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Tweaked test version of the_meta() a little
git-svn-id: http://svn.automattic.com/wordpress/trunk@948 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a678815689
commit
0f75194831
@ -473,11 +473,12 @@ function the_meta() {
|
||||
global $id, $post_meta_cache;
|
||||
|
||||
if ($keys = get_post_custom_keys()) {
|
||||
echo "<ul>\n";
|
||||
echo "<strong>Meta:</strong><ul>\n";
|
||||
foreach ($keys as $key) {
|
||||
$value = implode($post_meta_cache[$id][$key],',');
|
||||
$values = array_map('trim',$post_meta_cache[$id][$key]);
|
||||
$value = implode($values,', ');
|
||||
|
||||
echo "<li>$key: $value</li>\n";
|
||||
echo "<li><b>$key:</b> $value</li>\n";
|
||||
}
|
||||
echo "</ul>\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user