summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/wp-includes/capabilities.php6
-rw-r--r--src/wp-includes/meta.php16
-rw-r--r--src/wp-includes/post.php4
-rw-r--r--src/wp-includes/rest-api/fields/class-wp-rest-comment-meta-fields.php2
-rw-r--r--src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php2
-rw-r--r--src/wp-includes/rest-api/fields/class-wp-rest-post-meta-fields.php2
-rw-r--r--src/wp-includes/rest-api/fields/class-wp-rest-term-meta-fields.php2
-rw-r--r--src/wp-includes/rest-api/fields/class-wp-rest-user-meta-fields.php2
-rw-r--r--src/wp-includes/taxonomy.php4
9 files changed, 20 insertions, 20 deletions
diff --git a/src/wp-includes/capabilities.php b/src/wp-includes/capabilities.php
index 592995a120..375648e768 100644
--- a/src/wp-includes/capabilities.php
+++ b/src/wp-includes/capabilities.php
@@ -304,7 +304,7 @@ function map_meta_cap( $cap, $user_id ) {
* and `$object_subtype`, refer to the metadata object type (comment, post, term or user),
* the meta key value, and the object subtype respectively.
*
- * @since 5.0.0
+ * @since 4.9.8
*
* @param bool $allowed Whether the user can add the object meta. Default false.
* @param string $meta_key The meta key.
@@ -350,7 +350,7 @@ function map_meta_cap( $cap, $user_id ) {
*
* @since 4.6.0 As `auth_post_{$post_type}_meta_{$meta_key}`.
* @since 4.7.0
- * @deprecated 5.0.0 Use `auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}`
+ * @deprecated 4.9.8 Use `auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}`
*
* @param bool $allowed Whether the user can add the object meta. Default false.
* @param string $meta_key The meta key.
@@ -359,7 +359,7 @@ function map_meta_cap( $cap, $user_id ) {
* @param string $cap Capability name.
* @param string[] $caps Array of the user's capabilities.
*/
- $allowed = apply_filters_deprecated( "auth_{$object_type}_{$object_subtype}_meta_{$meta_key}", array( $allowed, $meta_key, $object_id, $user_id, $cap, $caps ), '5.0.0', "auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}" );
+ $allowed = apply_filters_deprecated( "auth_{$object_type}_{$object_subtype}_meta_{$meta_key}", array( $allowed, $meta_key, $object_id, $user_id, $cap, $caps ), '4.9.8', "auth_{$object_type}_meta_{$meta_key}_for_{$object_subtype}" );
}
if ( ! $allowed ) {
diff --git a/src/wp-includes/meta.php b/src/wp-includes/meta.php
index 163dcc90a1..30b82bbabf 100644
--- a/src/wp-includes/meta.php
+++ b/src/wp-includes/meta.php
@@ -974,7 +974,7 @@ function is_protected_meta( $meta_key, $meta_type = null ) {
* Sanitize meta value.
*
* @since 3.1.3
- * @since 5.0.0 The `$object_subtype` parameter was added.
+ * @since 4.9.8 The `$object_subtype` parameter was added.
*
* @param string $meta_key Meta key.
* @param mixed $meta_value Meta value to sanitize.
@@ -992,7 +992,7 @@ function sanitize_meta( $meta_key, $meta_value, $object_type, $object_subtype =
* and `$object_subtype`, refer to the metadata object type (comment, post, term or user),
* the meta key value, and the object subtype respectively.
*
- * @since 5.0.0
+ * @since 4.9.8
*
* @param mixed $meta_value Meta value to sanitize.
* @param string $meta_key Meta key.
@@ -1032,7 +1032,7 @@ function sanitize_meta( $meta_key, $meta_value, $object_type, $object_subtype =
* @since 4.6.0 {@link https://core.trac.wordpress.org/ticket/35658 Modified
* to support an array of data to attach to registered meta keys}. Previous arguments for
* `$sanitize_callback` and `$auth_callback` have been folded into this array.
- * @since 5.0.0 The `$object_subtype` argument was added to the arguments array.
+ * @since 4.9.8 The `$object_subtype` argument was added to the arguments array.
*
* @param string $object_type Type of object this meta is registered to.
* @param string $meta_key Meta key to register.
@@ -1148,7 +1148,7 @@ function register_meta( $object_type, $meta_key, $args, $deprecated = null ) {
* Checks if a meta key is registered.
*
* @since 4.6.0
- * @since 5.0.0 The `$object_subtype` parameter was added.
+ * @since 4.9.8 The `$object_subtype` parameter was added.
*
* @param string $object_type The type of object.
* @param string $meta_key The meta key.
@@ -1167,7 +1167,7 @@ function registered_meta_key_exists( $object_type, $meta_key, $object_subtype =
* Unregisters a meta key from the list of registered keys.
*
* @since 4.6.0
- * @since 5.0.0 The `$object_subtype` parameter was added.
+ * @since 4.9.8 The `$object_subtype` parameter was added.
*
* @param string $object_type The type of object.
* @param string $meta_key The meta key.
@@ -1216,7 +1216,7 @@ function unregister_meta_key( $object_type, $meta_key, $object_subtype = '' ) {
* Retrieves a list of registered meta keys for an object type.
*
* @since 4.6.0
- * @since 5.0.0 The `$object_subtype` parameter was added.
+ * @since 4.9.8 The `$object_subtype` parameter was added.
*
* @param string $object_type The type of object. Post, comment, user, term.
* @param string $object_subtype Optional. The subtype of the object type.
@@ -1300,7 +1300,7 @@ function _wp_register_meta_args_whitelist( $args, $default_args ) {
/**
* Returns the object subtype for a given object ID of a specific type.
*
- * @since 5.0.0
+ * @since 4.9.8
*
* @param string $object_type Type of object to request metadata for. (e.g. comment, post, term, user)
* @param int $object_id ID of the object to retrieve its subtype.
@@ -1353,7 +1353,7 @@ function get_object_subtype( $object_type, $object_id ) {
* The dynamic portion of the hook, `$object_type`, refers to the object
* type (post, comment, term, or user).
*
- * @since 5.0.0
+ * @since 4.9.8
*
* @param string $object_subtype Empty string to override.
* @param int $object_id ID of the object to get the subtype for.
diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
index ddc4fdc1d1..d5deabcb42 100644
--- a/src/wp-includes/post.php
+++ b/src/wp-includes/post.php
@@ -1992,7 +1992,7 @@ function delete_post_meta_by_key( $post_meta_key ) {
/**
* Registers a meta key for posts.
*
- * @since 5.0.0
+ * @since 4.9.8
*
* @param string $post_type Post type to register a meta key for. Pass an empty string
* to register the meta key across all existing post types.
@@ -2010,7 +2010,7 @@ function register_post_meta( $post_type, $meta_key, array $args ) {
/**
* Unregisters a meta key for posts.
*
- * @since 5.0.0
+ * @since 4.9.8
*
* @param string $post_type Post type the meta key is currently registered for. Pass
* an empty string if the meta key is registered across all
diff --git a/src/wp-includes/rest-api/fields/class-wp-rest-comment-meta-fields.php b/src/wp-includes/rest-api/fields/class-wp-rest-comment-meta-fields.php
index d006e02464..c3a810f33c 100644
--- a/src/wp-includes/rest-api/fields/class-wp-rest-comment-meta-fields.php
+++ b/src/wp-includes/rest-api/fields/class-wp-rest-comment-meta-fields.php
@@ -30,7 +30,7 @@ class WP_REST_Comment_Meta_Fields extends WP_REST_Meta_Fields {
/**
* Retrieves the object meta subtype.
*
- * @since 5.0.0
+ * @since 4.9.8
*
* @return string 'comment' There are no subtypes.
*/
diff --git a/src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php b/src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php
index b85bbe9e9f..e2fb0e1632 100644
--- a/src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php
+++ b/src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php
@@ -27,7 +27,7 @@ abstract class WP_REST_Meta_Fields {
/**
* Retrieves the object meta subtype.
*
- * @since 5.0.0
+ * @since 4.9.8
*
* @return string Subtype for the meta type, or empty string if no specific subtype.
*/
diff --git a/src/wp-includes/rest-api/fields/class-wp-rest-post-meta-fields.php b/src/wp-includes/rest-api/fields/class-wp-rest-post-meta-fields.php
index d1c3ad6ad9..cddc50dcd4 100644
--- a/src/wp-includes/rest-api/fields/class-wp-rest-post-meta-fields.php
+++ b/src/wp-includes/rest-api/fields/class-wp-rest-post-meta-fields.php
@@ -49,7 +49,7 @@ class WP_REST_Post_Meta_Fields extends WP_REST_Meta_Fields {
/**
* Retrieves the object meta subtype.
*
- * @since 5.0.0
+ * @since 4.9.8
*
* @return string Subtype for the meta type, or empty string if no specific subtype.
*/
diff --git a/src/wp-includes/rest-api/fields/class-wp-rest-term-meta-fields.php b/src/wp-includes/rest-api/fields/class-wp-rest-term-meta-fields.php
index be9f67bf49..237a4c01e0 100644
--- a/src/wp-includes/rest-api/fields/class-wp-rest-term-meta-fields.php
+++ b/src/wp-includes/rest-api/fields/class-wp-rest-term-meta-fields.php
@@ -49,7 +49,7 @@ class WP_REST_Term_Meta_Fields extends WP_REST_Meta_Fields {
/**
* Retrieves the object meta subtype.
*
- * @since 5.0.0
+ * @since 4.9.8
*
* @return string Subtype for the meta type, or empty string if no specific subtype.
*/
diff --git a/src/wp-includes/rest-api/fields/class-wp-rest-user-meta-fields.php b/src/wp-includes/rest-api/fields/class-wp-rest-user-meta-fields.php
index 5af3c76a9c..d35cb2ba59 100644
--- a/src/wp-includes/rest-api/fields/class-wp-rest-user-meta-fields.php
+++ b/src/wp-includes/rest-api/fields/class-wp-rest-user-meta-fields.php
@@ -30,7 +30,7 @@ class WP_REST_User_Meta_Fields extends WP_REST_Meta_Fields {
/**
* Retrieves the object meta subtype.
*
- * @since 5.0.0
+ * @since 4.9.8
*
* @return string 'user' There are no subtypes.
*/
diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
index 3f9b960538..1806ad0fdb 100644
--- a/src/wp-includes/taxonomy.php
+++ b/src/wp-includes/taxonomy.php
@@ -1325,7 +1325,7 @@ function has_term_meta( $term_id ) {
/**
* Registers a meta key for terms.
*
- * @since 5.0.0
+ * @since 4.9.8
*
* @param string $taxonomy Taxonomy to register a meta key for. Pass an empty string
* to register the meta key across all existing taxonomies.
@@ -1343,7 +1343,7 @@ function register_term_meta( $taxonomy, $meta_key, array $args ) {
/**
* Unregisters a meta key for terms.
*
- * @since 5.0.0
+ * @since 4.9.8
*
* @param string $taxonomy Taxonomy the meta key is currently registered for. Pass
* an empty string if the meta key is registered across all