Typo fixes. Props Znuff. fixes #3859
git-svn-id: http://svn.automattic.com/wordpress/trunk@4933 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b8f48aca58
commit
9b8e0722d4
|
@ -173,11 +173,11 @@ function rss_enclosure() {
|
|||
if ( !empty($post->post_password) && ($_COOKIE['wp-postpass_'.COOKIEHASH] != $post->post_password) )
|
||||
return;
|
||||
|
||||
foreach (get_post_custom() as $k => $v) {
|
||||
foreach (get_post_custom() as $key => $val) {
|
||||
if ($key == 'enclosure') {
|
||||
foreach ((array)$val as $enc) {
|
||||
$enclosure = split("\n", $enc);
|
||||
echo apply_filters('rss_enclosure', '<enclosure url="' . trim(htmlspecialchars($enclosure[0])) . '" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n";
|
||||
echo apply_filters('rss_enclosure', '<enclosure url="' . trim(htmlspecialchars($enclosure[0])) . '" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -188,11 +188,11 @@ function atom_enclosure() {
|
|||
if ( !empty($post->post_password) && ($_COOKIE['wp-postpass_'.COOKIEHASH] != $post->post_password) )
|
||||
return;
|
||||
|
||||
foreach (get_post_custom() as $k => $v) {
|
||||
foreach (get_post_custom() as $key => $val) {
|
||||
if ($key == 'enclosure') {
|
||||
foreach ((array)$val as $enc) {
|
||||
$enclosure = split("\n", $enc);
|
||||
echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n";
|
||||
echo apply_filters('atom_enclosure', '<link href="' . trim(htmlspecialchars($enclosure[0])) . '" rel="enclosure" length="' . trim($enclosure[1]) . '" type="' . trim($enclosure[2]) . '" />' . "\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue