Changeset 25583 for trunk/src/wp-includes/meta.php
- Timestamp:
- 09/23/2013 08:31:01 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/meta.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/meta.php
r25525 r25583 152 152 do_action( 'update_postmeta', $meta_id, $object_id, $meta_key, $meta_value ); 153 153 154 $wpdb->update( $table, $data, $where ); 154 $result = $wpdb->update( $table, $data, $where ); 155 if ( ! $result ) 156 return false; 155 157 156 158 wp_cache_delete($object_id, $meta_type . '_meta'); … … 436 438 437 439 // Run the update query, all fields in $data are %s, $where is a %d. 438 $result = (bool) $wpdb->update( $table, $data, $where, '%s', '%d' ); 440 $result = $wpdb->update( $table, $data, $where, '%s', '%d' ); 441 if ( ! $result ) 442 return false; 439 443 440 444 // Clear the caches. … … 446 450 do_action( 'updated_postmeta', $meta_id, $object_id, $meta_key, $meta_value ); 447 451 448 return $result;452 return true; 449 453 } 450 454
Note: See TracChangeset
for help on using the changeset viewer.