CoreFiles by mySites.guru
wp-locations.php37 lines, 1,083 bytes, from wordpress-1.2.2.zip
Raw History Compare with 1.2.1
md5
3d970fdf5534eadf5d0a2d28cd3f98d8
sha1
dd58293377697a0e334f5e625884ea04ba173480
sha256
8d2c6bfbb6cae1186dfa008e1f2197ab6465b2b49ea061f28356d520ab4527e9
<?php $blog = 1; // enter your blog's ID
header('Content-type: text/xml');
include('wp-blog-header.php');
?><?php echo "<?xml version=\"1.0\"?".">\n"; ?>
<travels>
<?php
$start = count($posts)-1;
for ($i = $start; $i >= 0; $i--) {
    $post = $posts[$i];
    start_wp();
    if ((get_Lon() != null) && (get_Lon > -360) && (get_Lon() < 360 )) {
?>
    <location arrival="<?php the_date_xml() ?>">
        <name><?php the_title_rss() ?></name>
        <latitude><?php print_Lat() ?></latitude>
        <longitude><?php print_Lon() ?></longitude>
<?php
        if (get_settings('rss_use_excerpt')) {
?>
        <note><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length'), get_settings('rss_encoded_html')) ?>
        </note>
<?php
        } else { // use content
?>
        <note><?php the_excerpt_rss('', 0, '', get_settings('rss_excerpt_length'), get_settings('rss_encoded_html')) ?></note>
<?php
        } // end else use content
?>
        <url><?php permalink_single_rss() ?></url>
    </location>
<?php
    } // end if lon valid
?>
<?php
} // end loop
?>
</travels>

The same content is in 6 releases, WordPress 1.2-delta to 1.2.2. See them all, or every version of this file.