From 4da5577136db6ef88cf8f01c349a1417091e59b4 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 10 Aug 2020 15:50:04 +0000 Subject: [PATCH] Docs: Update documentation for `get_{$meta_type}_metadata` filter for consistency with `default_{$meta_type}_metadata`. Follow-up to [48777]. See #50891. Built from https://develop.svn.wordpress.org/trunk@48778 git-svn-id: http://core.svn.wordpress.org/trunk@48540 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/meta.php | 14 +++++++++++--- wp-includes/version.php | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/wp-includes/meta.php b/wp-includes/meta.php index 303fb29679..96ce28dee9 100644 --- a/wp-includes/meta.php +++ b/wp-includes/meta.php @@ -543,6 +543,13 @@ function get_metadata_raw( $meta_type, $object_id, $meta_key = '', $single = fal * (post, comment, term, user, or any other type with an associated meta table). * Returning a non-null value will effectively short-circuit the function. * + * Possible filter names include: + * + * - `get_post_metadata` + * - `get_comment_metadata` + * - `get_term_metadata` + * - `get_user_metadata` + * * @since 3.1.0 * @since 5.5.0 Added the `$meta_type` parameter. * @@ -613,11 +620,12 @@ function get_metadata_default( $meta_type, $object_id, $meta_key, $single = fals } /** - * Filter the default metadata value for a specified meta key and object. + * Filters the default metadata value for a specified meta key and object. * * The dynamic portion of the hook, `$meta_type`, refers to the meta object type - * (post, comment, term, user, blog, or any other type with an associated meta - * table). Possible filter names include: + * (post, comment, term, user, or any other type with an associated meta table). + * + * Possible filter names include: * * - `default_post_metadata` * - `default_comment_metadata` diff --git a/wp-includes/version.php b/wp-includes/version.php index ad87342b42..d86df04c03 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-48777'; +$wp_version = '5.6-alpha-48778'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.