WordPress.org

Make WordPress Core

Ticket #47421: 47421-2.diff

File 47421-2.diff, 644 bytes (added by archduck, 6 months ago)

Send all the urls through the fragslasher

  • wp-includes/functions.php

     
    742742        $post_links = apply_filters( 'enclosure_links', $post_links, $post_ID );
    743743
    744744        foreach ( (array) $post_links as $url ) {
     745
     746            $url = strip_fragment_from_url( $url );
     747               
    745748                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 ) . '%' ) ) ) {
    746749
    747750                        $headers = wp_get_http_headers( $url );