Docs: Further type corrections and improvements for various docblocks.

See #53399


git-svn-id: https://develop.svn.wordpress.org/trunk@51302 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2021-07-01 22:01:44 +00:00
parent 4aed272097
commit 077504e755
5 changed files with 25 additions and 12 deletions

View File

@@ -978,7 +978,7 @@ function delete_meta( $mid ) {
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @return mixed
* @return string[] Array of meta key names.
*/
function get_meta_keys() {
global $wpdb;
@@ -1013,8 +1013,19 @@ function get_post_meta_by_id( $mid ) {
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param int $postid
* @return mixed
* @param int $postid A post ID.
* @return array {
* Array of meta data arrays for the given post ID.
*
* @type array ...$0 {
* Associative array of meta data.
*
* @type string $meta_key Meta key.
* @type mixed $meta_value Meta value.
* @type string $meta_id Meta ID as a numeric string.
* @type string $post_id Post ID as a numeric string.
* }
* }
*/
function has_meta( $postid ) {
global $wpdb;