Make WordPress Core

Changeset 2420


Ignore:
Timestamp:
03/08/2005 04:28:57 PM (20 years ago)
Author:
ryan
Message:

Add missing globals to post_custom(). http://mosquito.wordpress.org/view.php?id=1058 Props: kellan

File:
1 edited

Legend:

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

    r2402 r2420  
    235235
    236236function post_custom( $key = '' ) {
     237    global $id, $post_meta_cache;
     238   
    237239    if ( 1 == count($post_meta_cache[$id][$key]) ) return $post_meta_cache[$id][$key][0];
    238240    else return $post_meta_cache[$id][$key];
Note: See TracChangeset for help on using the changeset viewer.