Docs: Correct @return type for get_post_field().
Follow-up to [6379], [21559], [24490]. Props marian1, rollybueno. Fixes #63802. Built from https://develop.svn.wordpress.org/trunk@60621 git-svn-id: http://core.svn.wordpress.org/trunk@59957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1180,7 +1180,7 @@ function get_post_ancestors( $post ) {
|
||||
* @param int|WP_Post $post Optional. Post ID or post object. Defaults to global $post.
|
||||
* @param string $context Optional. How to filter the field. Accepts 'raw', 'edit', 'db',
|
||||
* or 'display'. Default 'display'.
|
||||
* @return string The value of the post field on success, empty string on failure.
|
||||
* @return int|string|int[] The value of the post field on success, empty string on failure.
|
||||
*/
|
||||
function get_post_field( $field, $post = null, $context = 'display' ) {
|
||||
$post = get_post( $post );
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.9-alpha-60620';
|
||||
$wp_version = '6.9-alpha-60621';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user