WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/06/2008 08:31:54 PM (13 years ago)
Author:
markjaquith
Message:

Cast to array when using foreach(). Props santosj (and thanks for your perseverance!). fixes #2784

File:
1 edited

Legend:

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

    r8547 r8572  
    256256    if ( $keys = get_post_custom_keys() ) {
    257257        echo "<ul class='post-meta'>\n";
    258         foreach ( $keys as $key ) {
     258        foreach ( (array) $keys as $key ) {
    259259            $keyt = trim($key);
    260260            if ( '_' == $keyt{0} )
Note: See TracChangeset for help on using the changeset viewer.