WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/26/2004 10:22:54 PM (17 years ago)
Author:
emc3
Message:

Tweaked test version of the_meta() a little

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-post.php

    r946 r948  
    474474   
    475475    if ($keys = get_post_custom_keys()) {
    476         echo "<ul>\n";
     476        echo "<strong>Meta:</strong><ul>\n";
    477477        foreach ($keys as $key) {
    478             $value = implode($post_meta_cache[$id][$key],',');
     478            $values = array_map('trim',$post_meta_cache[$id][$key]);
     479            $value = implode($values,', ');
    479480           
    480             echo "<li>$key: $value</li>\n";
     481            echo "<li><b>$key:</b> $value</li>\n";
    481482        }
    482483        echo "</ul>\n";
Note: See TracChangeset for help on using the changeset viewer.