diff --git wp-includes/post.php wp-includes/post.php
index 562d4ef..085747a 100644
|
|
|
function delete_post_meta($post_id, $meta_key, $meta_value = '') { |
| 1467 | 1467 | * @return mixed Will be an array if $single is false. Will be value of meta data field if $single |
| 1468 | 1468 | * is true. |
| 1469 | 1469 | */ |
| 1470 | | function get_post_meta($post_id, $key, $single = false) { |
| | 1470 | function get_post_meta($post_id, $key = '', $single = false) { |
| 1471 | 1471 | return get_metadata('post', $post_id, $key, $single); |
| 1472 | 1472 | } |
| 1473 | 1473 | |
| … |
… |
function get_post_custom( $post_id = 0 ) { |
| 1527 | 1527 | if ( ! $post_id ) |
| 1528 | 1528 | $post_id = get_the_ID(); |
| 1529 | 1529 | |
| 1530 | | return get_post_meta( $post_id, '' ); |
| | 1530 | return get_post_meta( $post_id ); |
| 1531 | 1531 | } |
| 1532 | 1532 | |
| 1533 | 1533 | /** |