Changeset 2472

Show
Ignore:
Timestamp:
03/22/05 17:49:19 (4 years ago)
Author:
ryan
Message:

Respect post password protection for enclosures. http://mosquito.wordpress.org/view.php?id=1040

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/feed-functions.php

    r2416 r2472  
    139139 
    140140function rss_enclosure() { 
    141     global $id; 
     141    global $id, $post; 
     142    if (!empty($post->post_password) && ($_COOKIE['wp-postpass_'.COOKIEHASH] != $post->post_password)) return; 
     143 
    142144    $custom_fields = get_post_custom(); 
    143145    if( is_array( $custom_fields ) ) {