Changeset 59657 for trunk/src/wp-includes/comment.php
- Timestamp:
- 01/17/2025 12:10:08 AM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r59556 r59657 433 433 * @param int $comment_id Comment ID. 434 434 * @param string $meta_key Metadata name. 435 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. 435 * @param mixed $meta_value Metadata value. Arrays and objects are stored as serialized data and 436 * will be returned as the same type when retrieved. Other data types will 437 * be stored as strings in the database: 438 * - false is stored and retrieved as an empty string ('') 439 * - true is stored and retrieved as '1' 440 * - numbers (both integer and float) are stored and retrieved as strings 441 * Must be serializable if non-scalar. 436 442 * @param bool $unique Optional. Whether the same key should not be added. 437 443 * Default false. … … 482 488 * An empty array if a valid but non-existing comment ID is passed and `$single` is false. 483 489 * An empty string if a valid but non-existing comment ID is passed and `$single` is true. 490 * Note: Non-serialized values are returned as strings: 491 * - false values are returned as empty strings ('') 492 * - true values are returned as '1' 493 * - numbers are returned as strings 494 * Arrays and objects retain their original type. 484 495 */ 485 496 function get_comment_meta( $comment_id, $key = '', $single = false ) {
Note: See TracChangeset
for help on using the changeset viewer.