diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php
index 8c8ad0eeff..49a8977a1f 100644
a
|
b
|
function delete_comment_meta( $comment_id, $meta_key, $meta_value = '' ) { |
496 | 496 | * This parameter has no effect if $key is not specified. |
497 | 497 | * Default false. |
498 | 498 | * @return mixed An array if $single is false. The value of meta data field |
499 | | * if $single is true. False for an invalid $comment_id. |
| 499 | * if $single is true. False for an invalid $comment_id (non-numeric, |
| 500 | * zero, or negative value). An empty string if a valid but non-existing |
| 501 | * post ID is passed. |
500 | 502 | */ |
501 | 503 | function get_comment_meta( $comment_id, $key = '', $single = false ) { |
502 | 504 | return get_metadata( 'comment', $comment_id, $key, $single ); |
diff --git a/src/wp-includes/meta.php b/src/wp-includes/meta.php
index 8bdb9d3ae5..12e0f13289 100644
a
|
b
|
function delete_metadata( $meta_type, $object_id, $meta_key, $meta_value = '', $ |
500 | 500 | * @param bool $single Optional. If true, return only the first value of the specified meta_key. |
501 | 501 | * This parameter has no effect if meta_key is not specified. Default false. |
502 | 502 | * @return mixed Single metadata value, or array of values. |
503 | | * False if there's a problem with the parameters passed to the function. |
| 503 | * False if there's a problem with the parameters passed to the function (non-numeric, zero, |
| 504 | * or negative value). |
| 505 | * An empty string if a valid but non-existing post ID is passed. |
504 | 506 | */ |
505 | 507 | function get_metadata( $meta_type, $object_id, $meta_key = '', $single = false ) { |
506 | 508 | $value = get_metadata_raw( $meta_type, $object_id, $meta_key, $single ); |
… |
… |
function get_metadata( $meta_type, $object_id, $meta_key = '', $single = false ) |
524 | 526 | * @param bool $single Optional. If true, return only the first value of the specified meta_key. |
525 | 527 | * This parameter has no effect if meta_key is not specified. Default false. |
526 | 528 | * @return mixed Single metadata value, or array of values. Null if the value does not exist. |
527 | | * False if there's a problem with the parameters passed to the function. |
| 529 | * False if there's a problem with the parameters passed to the function (non-numeric, zero, |
| 530 | * or negative value). |
| 531 | * An empty string if a valid but non-existing post ID is passed. |
528 | 532 | */ |
529 | 533 | function get_metadata_raw( $meta_type, $object_id, $meta_key = '', $single = false ) { |
530 | 534 | if ( ! $meta_type || ! is_numeric( $object_id ) ) { |
diff --git a/src/wp-includes/ms-site.php b/src/wp-includes/ms-site.php
index 61542c1755..4f603976c0 100644
a
|
b
|
function delete_site_meta( $site_id, $meta_key, $meta_value = '' ) { |
1087 | 1087 | * This parameter has no effect if $key is not specified. |
1088 | 1088 | * Default false. |
1089 | 1089 | * @return mixed An array if $single is false. The value of meta data field |
1090 | | * if $single is true. False for an invalid $site_id. |
| 1090 | * if $single is true. False for an invalid $site_id (non-numeric, |
| 1091 | * zero, or negative value). An empty string if a valid but non-existing |
| 1092 | * post ID is passed. |
1091 | 1093 | */ |
1092 | 1094 | function get_site_meta( $site_id, $key = '', $single = false ) { |
1093 | 1095 | return get_metadata( 'blog', $site_id, $key, $single ); |
diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
index 526d8f7f36..e8abde02fd 100644
a
|
b
|
function delete_post_meta( $post_id, $meta_key, $meta_value = '' ) { |
2220 | 2220 | * This parameter has no effect if $key is not specified. |
2221 | 2221 | * Default false. |
2222 | 2222 | * @return mixed An array if $single is false. The value of the meta field |
2223 | | * if $single is true. False for an invalid $post_id. |
| 2223 | * if $single is true. False for an invalid $post_id (non-numeric, |
| 2224 | * zero, or negative value). An empty string if a valid but non-existing |
| 2225 | * post ID is passed. |
2224 | 2226 | */ |
2225 | 2227 | function get_post_meta( $post_id, $key = '', $single = false ) { |
2226 | 2228 | return get_metadata( 'post', $post_id, $key, $single ); |
diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
index b250e0feef..505a37d40e 100644
a
|
b
|
function delete_term_meta( $term_id, $meta_key, $meta_value = '' ) { |
1308 | 1308 | * This parameter has no effect if $key is not specified. |
1309 | 1309 | * Default false. |
1310 | 1310 | * @return mixed An array if $single is false. The value of the meta field |
1311 | | * if $single is true. False for an invalid $term_id. |
| 1311 | * if $single is true. False for an invalid $term_id (non-numeric, |
| 1312 | * zero, or negative value). An empty string if a valid but non-existing |
| 1313 | * post ID is passed. |
1312 | 1314 | */ |
1313 | 1315 | function get_term_meta( $term_id, $key = '', $single = false ) { |
1314 | 1316 | return get_metadata( 'term', $term_id, $key, $single ); |
diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
index 5c6db55afb..e54d3361ac 100644
a
|
b
|
function delete_user_meta( $user_id, $meta_key, $meta_value = '' ) { |
1011 | 1011 | * This parameter has no effect if $key is not specified. |
1012 | 1012 | * Default false. |
1013 | 1013 | * @return mixed An array if $single is false. The value of meta data field |
1014 | | * if $single is true. False for an invalid $user_id. |
| 1014 | * if $single is true. False for an invalid $user_id (non-numeric, |
| 1015 | * zero, or negative value). An empty string if a valid but non-existing |
| 1016 | * post ID is passed. |
1015 | 1017 | */ |
1016 | 1018 | function get_user_meta( $user_id, $key = '', $single = false ) { |
1017 | 1019 | return get_metadata( 'user', $user_id, $key, $single ); |