WordPress.org

Make WordPress Core

Changeset 4368


Ignore:
Timestamp:
10/10/06 05:29:08 (8 years ago)
Author:
markjaquith
Message:

the_meta() should ignore keys that start with an underscore. Props Nazgul. fixes #2478

File:
1 edited

Legend:

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

    r4270 r4368  
    262262        echo "<ul class='post-meta'>\n"; 
    263263        foreach ( $keys as $key ) { 
     264            $keyt = trim($key); 
     265            if ( '_' == $keyt{0} ) 
     266                continue; 
    264267            $values = array_map('trim', get_post_custom_values($key)); 
    265268            $value = implode($values,', '); 
Note: See TracChangeset for help on using the changeset viewer.