Make WordPress Core

Changeset 2472


Ignore:
Timestamp:
03/22/2005 05:49:19 PM (20 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 ) ) {
Note: See TracChangeset for help on using the changeset viewer.