Changeset 5976
- Timestamp:
- 08/29/2007 07:12:20 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r5918 r5976 383 383 384 384 return true; 385 } 386 387 388 function delete_post_meta_by_key($post_meta_key) { 389 global $wpdb, $post_meta_cache, $blog_id; 390 $post_meta_key = $wpdb->escape($post_meta_key); 391 if ( $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = '$post_meta_key'") ) { 392 unset($post_meta_cache[$blog_id]); // not worth doing the work to iterate through the cache 393 return true; 394 } 395 return false; 385 396 } 386 397
Note: See TracChangeset
for help on using the changeset viewer.