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

git-svn-id: https://develop.svn.wordpress.org/trunk@2472 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-03-22 17:49:19 +00:00
parent dfd9ce1390
commit e3728e7b6a
1 changed files with 3 additions and 1 deletions

View File

@ -138,7 +138,9 @@ function the_category_rss($type = 'rss') {
}
function rss_enclosure() {
global $id;
global $id, $post;
if (!empty($post->post_password) && ($_COOKIE['wp-postpass_'.COOKIEHASH] != $post->post_password)) return;
$custom_fields = get_post_custom();
if( is_array( $custom_fields ) ) {
while( list( $key, $val ) = each( $custom_fields ) ) {