mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 23:27:39 +02:00
Docs: Correct return type for get_post_custom()
.
Props chouby, audrasjb. Fixes #55249. See #54729. Built from https://develop.svn.wordpress.org/trunk@52795 git-svn-id: http://core.svn.wordpress.org/trunk@52384 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
446c2afdc3
commit
631f08096b
@ -2591,7 +2591,9 @@ 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 array Post meta for the given 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.
|
||||
*/
|
||||
function get_post_custom( $post_id = 0 ) {
|
||||
$post_id = absint( $post_id );
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.0-alpha-52794';
|
||||
$wp_version = '6.0-alpha-52795';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user