Make WordPress Core


Ignore:
Timestamp:
02/18/2014 09:35:07 PM (11 years ago)
Author:
SergeyBiryukov
Message:

Correct return values for update_metadata() and related functions.

fixes #21864.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment.php

    r27115 r27191  
    649649 * @param mixed $meta_value Metadata value.
    650650 * @param mixed $prev_value Optional. Previous value to check before removing.
    651  * @return bool True on success, false on failure.
     651 * @return int|bool Meta ID if the key didn't exist, true on successful update, false on failure.
    652652 */
    653653function update_comment_meta($comment_id, $meta_key, $meta_value, $prev_value = '') {
Note: See TracChangeset for help on using the changeset viewer.