Changeset 11315 for trunk/wp-includes/functions.php
- Timestamp:
- 05/13/2009 05:15:27 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r11290 r11315 1061 1061 * Check content for video and audio links to add as enclosures. 1062 1062 * 1063 * Will not add enclosures that have already been added. This is called as 1063 * Will not add enclosures that have already been added and will 1064 * remove enclosures that are no longer in the post. This is called as 1064 1065 * pingbacks and trackbacks. 1065 1066 * … … 1091 1092 debug_fwrite( $log, 'Post contents:' ); 1092 1093 debug_fwrite( $log, $content . "\n" ); 1094 1095 foreach ( $pung as $link_test ) { 1096 if ( !in_array( $link_test, $post_links_temp[0] ) ) { // link no longer in post 1097 $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->postmeta WHERE post_id = %d AND meta_key = 'enclosure' AND meta_value LIKE (%s)", $post_ID, $link_test . '%') ); 1098 } 1099 } 1093 1100 1094 1101 foreach ( (array) $post_links_temp[0] as $link_test ) {
Note: See TracChangeset
for help on using the changeset viewer.