From 062a030a20fc560a4bceac00348fd95d474effda Mon Sep 17 00:00:00 2001
From: Barry Ceelen <b@rryceelen.com>
Date: Mon, 9 Nov 2015 10:17:17 +0100
Subject: [PATCH] Update code comments
---
wp-includes/meta-functions.php | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/wp-includes/meta-functions.php b/wp-includes/meta-functions.php
index 29cf291..43a484c 100644
|
a
|
b
|
|
| 18 | 18 | * |
| 19 | 19 | * @global wpdb $wpdb WordPress database abstraction object. |
| 20 | 20 | * |
| 21 | | * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user) |
| | 21 | * @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user) |
| 22 | 22 | * @param int $object_id ID of the object metadata is for |
| 23 | 23 | * @param string $meta_key Metadata key |
| 24 | 24 | * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. |
| … |
… |
function add_metadata($meta_type, $object_id, $meta_key, $meta_value, $unique = |
| 133 | 133 | * |
| 134 | 134 | * @global wpdb $wpdb WordPress database abstraction object. |
| 135 | 135 | * |
| 136 | | * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user) |
| | 136 | * @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user) |
| 137 | 137 | * @param int $object_id ID of the object metadata is for |
| 138 | 138 | * @param string $meta_key Metadata key |
| 139 | 139 | * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. |
| … |
… |
function update_metadata($meta_type, $object_id, $meta_key, $meta_value, $prev_v |
| 171 | 171 | * Filter whether to update metadata of a specific type. |
| 172 | 172 | * |
| 173 | 173 | * The dynamic portion of the hook, `$meta_type`, refers to the meta |
| 174 | | * object type (comment, post, or user). Returning a non-null value |
| | 174 | * object type (comment, post, term, or user). Returning a non-null value |
| 175 | 175 | * will effectively short-circuit the function. |
| 176 | 176 | * |
| 177 | 177 | * @since 3.1.0 |
| … |
… |
function update_metadata($meta_type, $object_id, $meta_key, $meta_value, $prev_v |
| 295 | 295 | * |
| 296 | 296 | * @global wpdb $wpdb WordPress database abstraction object. |
| 297 | 297 | * |
| 298 | | * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user) |
| | 298 | * @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user) |
| 299 | 299 | * @param int $object_id ID of the object metadata is for |
| 300 | 300 | * @param string $meta_key Metadata key |
| 301 | 301 | * @param mixed $meta_value Optional. Metadata value. Must be serializable if non-scalar. If specified, only delete |
| … |
… |
function delete_metadata($meta_type, $object_id, $meta_key, $meta_value = '', $d |
| 447 | 447 | * |
| 448 | 448 | * @since 2.9.0 |
| 449 | 449 | * |
| 450 | | * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user) |
| | 450 | * @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user) |
| 451 | 451 | * @param int $object_id ID of the object metadata is for |
| 452 | 452 | * @param string $meta_key Optional. Metadata key. If not specified, retrieve all metadata for |
| 453 | 453 | * the specified object. |
| … |
… |
function get_metadata($meta_type, $object_id, $meta_key = '', $single = false) { |
| 518 | 518 | * |
| 519 | 519 | * @since 3.3.0 |
| 520 | 520 | * |
| 521 | | * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user) |
| | 521 | * @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user) |
| 522 | 522 | * @param int $object_id ID of the object metadata is for |
| 523 | 523 | * @param string $meta_key Metadata key. |
| 524 | 524 | * @return bool True of the key is set, false if not. |
| … |
… |
function metadata_exists( $meta_type, $object_id, $meta_key ) { |
| 558 | 558 | * |
| 559 | 559 | * @global wpdb $wpdb WordPress database abstraction object. |
| 560 | 560 | * |
| 561 | | * @param string $meta_type Type of object metadata is for (e.g., comment, post, meta, or user). |
| | 561 | * @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user). |
| 562 | 562 | * @param int $meta_id ID for a specific meta row |
| 563 | 563 | * @return object|false Meta object or false. |
| 564 | 564 | */ |
| … |
… |
function get_metadata_by_mid( $meta_type, $meta_id ) { |
| 599 | 599 | * |
| 600 | 600 | * @global wpdb $wpdb WordPress database abstraction object. |
| 601 | 601 | * |
| 602 | | * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user) |
| | 602 | * @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user) |
| 603 | 603 | * @param int $meta_id ID for a specific meta row |
| 604 | 604 | * @param string $meta_value Metadata value |
| 605 | 605 | * @param string $meta_key Optional, you can provide a meta key to update it |
| … |
… |
function delete_metadata_by_mid( $meta_type, $meta_id ) { |
| 779 | 779 | * |
| 780 | 780 | * @global wpdb $wpdb WordPress database abstraction object. |
| 781 | 781 | * |
| 782 | | * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user) |
| | 782 | * @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user) |
| 783 | 783 | * @param int|array $object_ids Array or comma delimited list of object IDs to update cache for |
| 784 | 784 | * @return array|false Metadata cache for the specified objects, or false on failure. |
| 785 | 785 | */ |