WordPress.org

Make WordPress Core

Changeset 49552


Ignore:
Timestamp:
11/09/2020 08:26:18 PM (11 months ago)
Author:
helen
Message:

Feeds: Don't treat media URLs with fragments as unique for enclosures.

Props archduck, dshanske.
Fixes #47421.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r49474 r49552  
    900900
    901901    foreach ( (array) $post_links as $url ) {
     902        $url = strip_fragment_from_url( $url );
     903
    902904        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 ) . '%' ) ) ) {
    903905
Note: See TracChangeset for help on using the changeset viewer.