Changeset 24490 for trunk/wp-includes/comment.php
- Timestamp:
- 06/21/2013 12:45:11 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r24480 r24490 540 540 * @param mixed $meta_value Metadata value. 541 541 * @param bool $unique Optional, default is false. Whether the same key should not be added. 542 * @return bool False for failure. True for success.542 * @return int|bool Meta ID on success, false on failure. 543 543 */ 544 544 function add_comment_meta($comment_id, $meta_key, $meta_value, $unique = false) { … … 560 560 * @param string $meta_key Metadata name. 561 561 * @param mixed $meta_value Optional. Metadata value. 562 * @return bool False for failure. True for success.562 * @return bool True on success, false on failure. 563 563 */ 564 564 function delete_comment_meta($comment_id, $meta_key, $meta_value = '') { … … 599 599 * @param mixed $meta_value Metadata value. 600 600 * @param mixed $prev_value Optional. Previous value to check before removing. 601 * @return bool False on failure, true if success.601 * @return bool True on success, false on failure. 602 602 */ 603 603 function update_comment_meta($comment_id, $meta_key, $meta_value, $prev_value = '') { … … 995 995 * @param int $comment_id Comment ID 996 996 * @param bool $force_delete Whether to bypass trash and force deletion. Default is false. 997 * @return bool False if delete comment query failure, true on success.997 * @return bool True on success, false on failure. 998 998 */ 999 999 function wp_delete_comment($comment_id, $force_delete = false) { … … 1045 1045 * 1046 1046 * @param int $comment_id Comment ID. 1047 * @return mixed False on failure1047 * @return bool True on success, false on failure. 1048 1048 */ 1049 1049 function wp_trash_comment($comment_id) { … … 1074 1074 * 1075 1075 * @param int $comment_id Comment ID. 1076 * @return mixed False on failure1076 * @return bool True on success, false on failure. 1077 1077 */ 1078 1078 function wp_untrash_comment($comment_id) { … … 1104 1104 * 1105 1105 * @param int $comment_id Comment ID. 1106 * @return mixed False on failure1106 * @return bool True on success, false on failure. 1107 1107 */ 1108 1108 function wp_spam_comment($comment_id) { … … 1129 1129 * 1130 1130 * @param int $comment_id Comment ID. 1131 * @return mixed False on failure1131 * @return bool True on success, false on failure. 1132 1132 */ 1133 1133 function wp_unspam_comment($comment_id) { … … 1424 1424 * @param string $comment_status New comment status, either 'hold', 'approve', 'spam', or 'trash'. 1425 1425 * @param bool $wp_error Whether to return a WP_Error object if there is a failure. Default is false. 1426 * @return bool False on failure or deletion and true on success.1426 * @return bool|WP_Error True on success, false or WP_Error on failure. 1427 1427 */ 1428 1428 function wp_set_comment_status($comment_id, $comment_status, $wp_error = false) { … … 1602 1602 * 1603 1603 * @param int $post_id Post ID 1604 * @return bool False on '0' $post_id or if post with ID does not exist. True on success.1604 * @return bool True on success, false on '0' $post_id or if post with ID does not exist. 1605 1605 */ 1606 1606 function wp_update_comment_count_now($post_id) {
Note: See TracChangeset
for help on using the changeset viewer.