diff --git a/src/wp-includes/feed.php b/src/wp-includes/feed.php
index 8a6d256068..468360365c 100644
a
|
b
|
function html_type_rss() { |
465 | 465 | * the user has the password for the post. If not then it will return before |
466 | 466 | * displaying. |
467 | 467 | * |
468 | | * Also uses the function get_post_custom() to get the post's 'enclosure' |
| 468 | * Also uses the function get_post_meta(get_the_ID()) to get the post's 'enclosure' |
469 | 469 | * metadata field and parses the value to display the enclosure(s). The |
470 | 470 | * enclosure(s) consist of enclosure HTML tag(s) with a URI and other |
471 | 471 | * attributes. |
… |
… |
function rss_enclosure() { |
477 | 477 | return; |
478 | 478 | } |
479 | 479 | |
480 | | foreach ( (array) get_post_custom() as $key => $val ) { |
| 480 | foreach ( (array) get_post_meta(get_the_ID()) as $key => $val ) { |
481 | 481 | if ( 'enclosure' === $key ) { |
482 | 482 | foreach ( (array) $val as $enc ) { |
483 | 483 | $enclosure = explode( "\n", $enc ); |
… |
… |
function rss_enclosure() { |
510 | 510 | * the user has the password for the post. If not then it will return before |
511 | 511 | * displaying. |
512 | 512 | * |
513 | | * Also uses the function get_post_custom() to get the post's 'enclosure' |
| 513 | * Also uses the function get_post_meta(get_the_ID()) to get the post's 'enclosure' |
514 | 514 | * metadata field and parses the value to display the enclosure(s). The |
515 | 515 | * enclosure(s) consist of link HTML tag(s) with a URI and other attributes. |
516 | 516 | * |
… |
… |
function atom_enclosure() { |
521 | 521 | return; |
522 | 522 | } |
523 | 523 | |
524 | | foreach ( (array) get_post_custom() as $key => $val ) { |
| 524 | foreach ( (array) get_post_meta(get_the_ID()) as $key => $val ) { |
525 | 525 | if ( 'enclosure' === $key ) { |
526 | 526 | foreach ( (array) $val as $enc ) { |
527 | 527 | $enclosure = explode( "\n", $enc ); |
diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php
index 4f3bfbef0c..bba230247a 100644
a
|
b
|
function _wp_link_page( $i ) { |
1097 | 1097 | * False if the key does not exist. |
1098 | 1098 | */ |
1099 | 1099 | function post_custom( $key = '' ) { |
1100 | | $custom = get_post_custom(); |
| 1100 | $custom = get_post_meta(get_the_ID()); |
1101 | 1101 | |
1102 | 1102 | if ( ! isset( $custom[ $key ] ) ) { |
1103 | 1103 | return false; |
diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
index eb90e762f5..704465ef6e 100644
a
|
b
|
function get_post_custom_values( $key = '', $post_id = 0 ) { |
2756 | 2756 | return null; |
2757 | 2757 | } |
2758 | 2758 | |
2759 | | $custom = get_post_custom( $post_id ); |
| 2759 | $custom = get_post_meta( absint($post_id )); |
2760 | 2760 | |
2761 | 2761 | return isset( $custom[ $key ] ) ? $custom[ $key ] : null; |
2762 | 2762 | } |
… |
… |
function add_ping( $post, $uri ) { |
5840 | 5840 | * @return string[] Array of enclosures for the given post. |
5841 | 5841 | */ |
5842 | 5842 | function get_enclosed( $post_id ) { |
5843 | | $custom_fields = get_post_custom( $post_id ); |
| 5843 | $custom_fields = get_post_meta( absint($post_id) ); |
5844 | 5844 | $pung = array(); |
5845 | 5845 | if ( ! is_array( $custom_fields ) ) { |
5846 | 5846 | return $pung; |