Ticket #2478: 2478_20.diff

File 2478_20.diff, 604 bytes (added by Nazgul, 6 years ago)
  • wp-includes/template-functions-post.php

     
    261261        if ( $keys = get_post_custom_keys() ) { 
    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,', '); 
    266269                        echo "<li><span class='post-meta-key'>$key:</span> $value</li>\n";