Make WordPress Core

Ticket #1040: rss_enclosure_password.patch

File rss_enclosure_password.patch, 545 bytes (added by anonymousbugger, 19 years ago)
  • wp-includes/feed-functions.php

     
    138138}
    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 ) ) {
    144146                while( list( $key, $val ) = each( $custom_fields ) ) {