Make WordPress Core


Ignore:
Timestamp:
02/18/2014 09:35:07 PM (10 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/post.php

    r27138 r27191  
    17901790 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar.
    17911791 * @param mixed $prev_value Optional. Previous value to check before removing.
    1792  * @return bool True on success, false on failure.
     1792 * @return int|bool Meta ID if the key didn't exist, true on successful update, false on failure.
    17931793 */
    17941794function update_post_meta($post_id, $meta_key, $meta_value, $prev_value = '') {
Note: See TracChangeset for help on using the changeset viewer.