Changeset 59657
- Timestamp:
- 01/17/2025 12:10:08 AM (4 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 6 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 ) { -
trunk/src/wp-includes/meta.php
r59023 r59657 24 24 * @param int $object_id ID of the object metadata is for. 25 25 * @param string $meta_key Metadata key. 26 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. 26 * @param mixed $meta_value Metadata value. Arrays and objects are stored as serialized data and 27 * will be returned as the same type when retrieved. Other data types will 28 * be stored as strings in the database: 29 * - false is stored and retrieved as an empty string ('') 30 * - true is stored and retrieved as '1' 31 * - numbers (both integer and float) are stored and retrieved as strings 32 * Must be serializable if non-scalar. 27 33 * @param bool $unique Optional. Whether the specified metadata key should be unique for the object. 28 34 * If true, and the object already has a value for the specified metadata key, … … 571 577 * An empty array if a valid but non-existing object ID is passed and `$single` is false. 572 578 * An empty string if a valid but non-existing object ID is passed and `$single` is true. 579 * Note: Non-serialized values are returned as strings: 580 * - false values are returned as empty strings ('') 581 * - true values are returned as '1' 582 * - numbers (both integer and float) are returned as strings 583 * Arrays and objects retain their original type. 573 584 */ 574 585 function get_metadata( $meta_type, $object_id, $meta_key = '', $single = false ) { -
trunk/src/wp-includes/ms-site.php
r59009 r59657 1027 1027 * @param int $site_id Site ID. 1028 1028 * @param string $meta_key Metadata name. 1029 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. 1029 * @param mixed $meta_value Metadata value. Arrays and objects are stored as serialized data and 1030 * will be returned as the same type when retrieved. Other data types will 1031 * be stored as strings in the database: 1032 * - false is stored and retrieved as an empty string ('') 1033 * - true is stored and retrieved as '1' 1034 * - numbers (both integer and float) are stored and retrieved as strings 1035 * Must be serializable if non-scalar. 1030 1036 * @param bool $unique Optional. Whether the same key should not be added. 1031 1037 * Default false. … … 1072 1078 * An empty array if a valid but non-existing site ID is passed and `$single` is false. 1073 1079 * An empty string if a valid but non-existing site ID is passed and `$single` is true. 1080 * Note: Non-serialized values are returned as strings: 1081 * - false values are returned as empty strings ('') 1082 * - true values are returned as '1' 1083 * - numbers (both integer and float) are returned as strings 1084 * Arrays and objects retain their original type. 1074 1085 */ 1075 1086 function get_site_meta( $site_id, $key = '', $single = false ) { -
trunk/src/wp-includes/post.php
r59602 r59657 2559 2559 * @param int $post_id Post ID. 2560 2560 * @param string $meta_key Metadata name. 2561 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. 2561 * @param mixed $meta_value Metadata value. Arrays and objects are stored as serialized data and 2562 * will be returned as the same type when retrieved. Other data types will 2563 * be stored as strings in the database: 2564 * - false is stored and retrieved as an empty string ('') 2565 * - true is stored and retrieved as '1' 2566 * - numbers (both integer and float) are stored and retrieved as strings 2567 * Must be serializable if non-scalar. 2562 2568 * @param bool $unique Optional. Whether the same key should not be added. 2563 2569 * Default false. … … 2616 2622 * An empty array if a valid but non-existing post ID is passed and `$single` is false. 2617 2623 * An empty string if a valid but non-existing post ID is passed and `$single` is true. 2624 * Note: Non-serialized values are returned as strings: 2625 * - false values are returned as empty strings ('') 2626 * - true values are returned as '1' 2627 * - numbers (both integer and float) are returned as strings 2628 * Arrays and objects retain their original type. 2618 2629 */ 2619 2630 function get_post_meta( $post_id, $key = '', $single = false ) { -
trunk/src/wp-includes/taxonomy.php
r58962 r59657 1387 1387 * @param int $term_id Term ID. 1388 1388 * @param string $meta_key Metadata name. 1389 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. 1389 * @param mixed $meta_value Metadata value. Arrays and objects are stored as serialized data and 1390 * will be returned as the same type when retrieved. Other data types will 1391 * be stored as strings in the database: 1392 * - false is stored and retrieved as an empty string ('') 1393 * - true is stored and retrieved as '1' 1394 * - numbers (both integer and float) are stored and retrieved as strings 1395 * Must be serializable if non-scalar. 1390 1396 * @param bool $unique Optional. Whether the same key should not be added. 1391 1397 * Default false. … … 1433 1439 * An empty array if a valid but non-existing term ID is passed and `$single` is false. 1434 1440 * An empty string if a valid but non-existing term ID is passed and `$single` is true. 1441 * Note: Non-serialized values are returned as strings: 1442 * - false values are returned as empty strings ('') 1443 * - true values are returned as '1' 1444 * - numbers are returned as strings 1445 * Arrays and objects retain their original type. 1435 1446 */ 1436 1447 function get_term_meta( $term_id, $key = '', $single = false ) { -
trunk/src/wp-includes/user.php
r59633 r59657 1152 1152 * @param int $user_id User ID. 1153 1153 * @param string $meta_key Metadata name. 1154 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. 1154 * @param mixed $meta_value Metadata value. Arrays and objects are stored as serialized data and 1155 * will be returned as the same type when retrieved. Other data types will 1156 * be stored as strings in the database: 1157 * - false is stored and retrieved as an empty string ('') 1158 * - true is stored and retrieved as '1' 1159 * - numbers (both integer and float) are stored and retrieved as strings 1160 * Must be serializable if non-scalar. 1155 1161 * @param bool $unique Optional. Whether the same key should not be added. 1156 1162 * Default false. … … 1201 1207 * An empty array if a valid but non-existing user ID is passed and `$single` is false. 1202 1208 * An empty string if a valid but non-existing user ID is passed and `$single` is true. 1209 * Note: Non-serialized values are returned as strings: 1210 * - false values are returned as empty strings ('') 1211 * - true values are returned as '1' 1212 * - numbers (both integer and float) are returned as strings 1213 * Arrays and objects retain their original type. 1203 1214 */ 1204 1215 function get_user_meta( $user_id, $key = '', $single = false ) {
Note: See TracChangeset
for help on using the changeset viewer.