Ticket #47421: 47421-2.diff
File 47421-2.diff, 644 bytes (added by , 5 years ago) |
---|
-
wp-includes/functions.php
742 742 $post_links = apply_filters( 'enclosure_links', $post_links, $post_ID ); 743 743 744 744 foreach ( (array) $post_links as $url ) { 745 746 $url = strip_fragment_from_url( $url ); 747 745 748 if ( $url != '' && ! $wpdb->get_var( $wpdb->prepare( "SELECT post_id FROM $wpdb->postmeta WHERE post_id = %d AND meta_key = 'enclosure' AND meta_value LIKE %s", $post_ID, $wpdb->esc_like( $url ) . '%' ) ) ) { 746 749 747 750 $headers = wp_get_http_headers( $url );