WordPress.org

Make WordPress Core

Changeset 16768


Ignore:
Timestamp:
12/07/2010 06:16:21 PM (7 years ago)
Author:
ryan
Message:

Apply wp_get_attachment_url to empty urls. Props filosofo. fixes #15494

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r16705 r16768  
    38323832        $url = get_the_guid( $post->ID );
    38333833
    3834     if ( 'attachment' != $post->post_type || empty($url) )
     3834    $url = apply_filters( 'wp_get_attachment_url', $url, $post->ID );
     3835
     3836    if ( 'attachment' != $post->post_type || empty( $url ) )
    38353837        return false;
    3836 
    3837     return apply_filters( 'wp_get_attachment_url', $url, $post->ID );
     3838   
     3839    return $url;
    38383840}
    38393841
Note: See TracChangeset for help on using the changeset viewer.