Error in functions.php get_post_meta() (2 posts)

  1. wundbread
    Posted 10 years ago #

    I tried loging in to trac to write a ticket, but my login isn't working.

    When I called get_post_meta in my plugin it kept only returning a single string instead of an array when I could see that there was more than one postmeta row in the DB with the same key. I looked at the function and found a problem when fetching from the postmeta cache.

    line 475 which reads:
    return maybe_unserialize( $post_meta_cache[$post_id][$key][0] );

    ought to read:
    return maybe_unserialize( $post_meta_cache[$post_id][$key]);

  2. skeltoac
    Posted 10 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic