mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-31 13:37:51 +01:00
Respect post password protection for enclosures. http://mosquito.wordpress.org/view.php?id=1040
git-svn-id: http://svn.automattic.com/wordpress/trunk@2472 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6851c1e0ab
commit
1828746711
@ -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 ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user