mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 03:34:33 +00:00
Correct return values for update_metadata() and related functions.
fixes #21864. git-svn-id: https://develop.svn.wordpress.org/trunk@27191 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -648,7 +648,7 @@ function get_comment_meta($comment_id, $key = '', $single = false) {
|
||||
* @param string $meta_key Metadata key.
|
||||
* @param mixed $meta_value Metadata value.
|
||||
* @param mixed $prev_value Optional. Previous value to check before removing.
|
||||
* @return bool True on success, false on failure.
|
||||
* @return int|bool Meta ID if the key didn't exist, true on successful update, false on failure.
|
||||
*/
|
||||
function update_comment_meta($comment_id, $meta_key, $meta_value, $prev_value = '') {
|
||||
return update_metadata('comment', $comment_id, $meta_key, $meta_value, $prev_value);
|
||||
|
||||
Reference in New Issue
Block a user