Changeset 13861
- Timestamp:
- 03/28/2010 04:19:44 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r13772 r13861 656 656 * 657 657 * @param string $key Meta data key name. 658 * @return string|array Array of values or single value, if only one element exists.658 * @return bool|string|array Array of values or single value, if only one element exists. False will be returned if key does not exist. 659 659 */ 660 660 function post_custom( $key = '' ) { 661 661 $custom = get_post_custom(); 662 662 663 if ( 1 == count($custom[$key]) ) 663 if ( !isset( $custom[$key] ) ) 664 return false; 665 elseif ( 1 == count($custom[$key]) ) 664 666 return $custom[$key][0]; 665 667 else
Note: See TracChangeset
for help on using the changeset viewer.