Changeset 48214
- Timestamp:
- 06/29/2020 09:20:11 PM (4 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r48208 r48214 518 518 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. 519 519 * @param mixed $prev_value Optional. Previous value to check before updating. 520 * Default empty. 520 * If specified, only update existing metadata entries with 521 * this value. Otherwise, update all entries. Default empty. 521 522 * @return int|bool Meta ID if the key didn't exist, true on successful update, 522 * false on failure. 523 * false on failure or if the value passed to the function 524 * is the same as the one that is already in the database. 523 525 */ 524 526 function update_comment_meta( $comment_id, $meta_key, $meta_value, $prev_value = '' ) { -
trunk/src/wp-includes/meta.php
r48192 r48214 149 149 * @param string $meta_key Metadata key. 150 150 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. 151 * @param mixed $prev_value Optional. If specified, only update existing metadata entries 152 * with this value. Otherwise, update all entries. Default empty. 153 * @return int|bool The new meta field ID if a field with the given key didn't exist and was 154 * therefore added, true on successful update, false on failure. 151 * @param mixed $prev_value Optional. Previous value to check before updating. 152 * If specified, only update existing metadata entries with 153 * this value. Otherwise, update all entries. Default empty. 154 * @return int|bool The new meta field ID if a field with the given key didn't exist 155 * and was therefore added, true on successful update, 156 * false on failure or if the value passed to the function 157 * is the same as the one that is already in the database. 158 155 159 */ 156 160 function update_metadata( $meta_type, $object_id, $meta_key, $meta_value, $prev_value = '' ) { … … 196 200 * @param string $meta_key Metadata key. 197 201 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. 198 * @param mixed $prev_value Optional. If specified, only update existing metadata entries 199 * with this value. Otherwise, update all entries. 202 * @param mixed $prev_value Optional. Previous value to check before updating. 203 * If specified, only update existing metadata entries with 204 * this value. Otherwise, update all entries. 200 205 */ 201 206 $check = apply_filters( "update_{$meta_type}_metadata", null, $object_id, $meta_key, $meta_value, $prev_value ); -
trunk/src/wp-includes/ms-site.php
r48167 r48214 1108 1108 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. 1109 1109 * @param mixed $prev_value Optional. Previous value to check before updating. 1110 * Default empty. 1110 * If specified, only update existing metadata entries with 1111 * this value. Otherwise, update all entries. Default empty. 1111 1112 * @return int|bool Meta ID if the key didn't exist, true on successful update, 1112 * false on failure. 1113 * false on failure or if the value passed to the function 1114 * is the same as the one that is already in the database. 1113 1115 */ 1114 1116 function update_site_meta( $site_id, $meta_key, $meta_value, $prev_value = '' ) { -
trunk/src/wp-includes/post.php
r48212 r48214 2141 2141 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. 2142 2142 * @param mixed $prev_value Optional. Previous value to check before updating. 2143 * Default empty. 2143 * If specified, only update existing metadata entries with 2144 * this value. Otherwise, update all entries. Default empty. 2144 2145 * @return int|bool Meta ID if the key didn't exist, true on successful update, 2145 * false on failure. 2146 * false on failure or if the value passed to the function 2147 * is the same as the one that is already in the database. 2146 2148 */ 2147 2149 function update_post_meta( $post_id, $meta_key, $meta_value, $prev_value = '' ) { -
trunk/src/wp-includes/taxonomy.php
r48197 r48214 1275 1275 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. 1276 1276 * @param mixed $prev_value Optional. Previous value to check before updating. 1277 * Default empty. 1277 * If specified, only update existing metadata entries with 1278 * this value. Otherwise, update all entries. Default empty. 1278 1279 * @return int|bool|WP_Error Meta ID if the key didn't exist. true on successful update, 1279 * false on failure. WP_Error when term_id is ambiguous 1280 * between taxonomies. 1280 * false on failure or if the value passed to the function 1281 * is the same as the one that is already in the database. 1282 * WP_Error when term_id is ambiguous between taxonomies. 1281 1283 */ 1282 1284 function update_term_meta( $term_id, $meta_key, $meta_value, $prev_value = '' ) { -
trunk/src/wp-includes/user.php
r48185 r48214 854 854 * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. 855 855 * @param mixed $prev_value Optional. Previous value to check before updating. 856 * Default empty. 856 * If specified, only update existing metadata entries with 857 * this value. Otherwise, update all entries. Default empty. 857 858 * @return int|bool Meta ID if the key didn't exist, true on successful update, 858 * false on failure. 859 * false on failure or if the value passed to the function 860 * is the same as the one that is already in the database. 859 861 */ 860 862 function update_user_meta( $user_id, $meta_key, $meta_value, $prev_value = '' ) {
Note: See TracChangeset
for help on using the changeset viewer.