Make WordPress Core


Ignore:
Timestamp:
04/06/2007 11:42:38 PM (18 years ago)
Author:
rob1n
Message:

Set the post ID when calling wp_get_attachment_url(). Props chess64. fixes #4104

File:
1 edited

Legend:

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

    r5049 r5199  
    346346    $_post = & get_post($id);
    347347
    348     if ( ('attachment' != $_post->post_type) || !$url = wp_get_attachment_url() )
     348    if ( ('attachment' != $_post->post_type) || !$url = wp_get_attachment_url($_post->ID) )
    349349        return __('Missing Attachment');
    350350
Note: See TracChangeset for help on using the changeset viewer.