Skip to content

Commit 5b00378

Browse files
committed
Docs: Improvements and corrections to documentation relating to metadata.
See #63166 git-svn-id: https://develop.svn.wordpress.org/trunk@60264 602fd350-edb4-49c9-b593-d223f7449a82
1 parent fe0427c commit 5b00378

6 files changed

Lines changed: 135 additions & 85 deletions

File tree

src/wp-includes/comment.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,8 @@ function get_comment_count( $post_id = 0 ) {
446446
/**
447447
* Adds meta data field to a comment.
448448
*
449+
* For historical reasons both the meta key and the meta value are expected to be "slashed" (slashes escaped) on input.
450+
*
449451
* @since 2.9.0
450452
*
451453
* @link https://developer.wordpress.org/reference/functions/add_comment_meta/
@@ -474,6 +476,8 @@ function add_comment_meta( $comment_id, $meta_key, $meta_value, $unique = false
474476
* value, will keep from removing duplicate metadata with the same key. It also
475477
* allows removing all metadata matching key, if needed.
476478
*
479+
* For historical reasons both the meta key and the meta value are expected to be "slashed" (slashes escaped) on input.
480+
*
477481
* @since 2.9.0
478482
*
479483
* @link https://developer.wordpress.org/reference/functions/delete_comment_meta/
@@ -540,6 +544,8 @@ function wp_lazyload_comment_meta( array $comment_ids ) {
540544
*
541545
* If the meta field for the comment does not exist, it will be added.
542546
*
547+
* For historical reasons both the meta key and the meta value are expected to be "slashed" (slashes escaped) on input.
548+
*
543549
* @since 2.9.0
544550
*
545551
* @link https://developer.wordpress.org/reference/functions/update_comment_meta/

0 commit comments

Comments
 (0)