Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/wp-includes/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -2828,9 +2828,8 @@ function unregister_post_meta( $post_type, $meta_key ) {
* @since 1.2.0
*
* @param int $post_id Optional. Post ID. Default is the ID of the global `$post`.
* @return mixed An array of values.
* False for an invalid `$post_id` (non-numeric, zero, or negative value).
* An empty string if a valid but non-existing post ID is passed.
* @return array<string, mixed>|false Array of post meta values keyed by meta key, or false on failure.
* Returns an empty array if the post has no custom fields.
*/
function get_post_custom( $post_id = 0 ) {
$post_id = absint( $post_id );
Expand Down
Loading