mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
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) )
|
if ( !empty($post->post_password) && ($_COOKIE['wp-postpass_'.COOKIEHASH] != $post->post_password) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
foreach (get_post_custom() as $k => $v) {
|
foreach (get_post_custom() as $key => $val) {
|
||||||
if ($key == 'enclosure') {
|
if ($key == 'enclosure') {
|
||||||
foreach ((array)$val as $enc) {
|
foreach ((array)$val as $enc) {
|
||||||
$enclosure = split("\n", $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) )
|
if ( !empty($post->post_password) && ($_COOKIE['wp-postpass_'.COOKIEHASH] != $post->post_password) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
foreach (get_post_custom() as $k => $v) {
|
foreach (get_post_custom() as $key => $val) {
|
||||||
if ($key == 'enclosure') {
|
if ($key == 'enclosure') {
|
||||||
foreach ((array)$val as $enc) {
|
foreach ((array)$val as $enc) {
|
||||||
$enclosure = split("\n", $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
Block a user