WordPress.org

Make WordPress Core

Ticket #19890: functions.diff

File functions.diff, 546 bytes (added by niallkennedy, 2 years ago)

apply_filters on post links

  • wp-includes/functions.php

     
    517517                } 
    518518        } 
    519519 
     520        $post_links = apply_filters( 'enclosure_links', $post_links ); 
     521 
    520522        foreach ( (array) $post_links as $url ) { 
    521523                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, like_escape( $url ) . '%' ) ) ) { 
    522524