Support » Plugins » Error in functions.php get_post_meta()

  • wundbread


    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]);

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Error in functions.php get_post_meta()’ is closed to new replies.