From 9a4221ee461fa8305e6f7fdf8c46d6f19764663b Mon Sep 17 00:00:00 2001 From: saxmatt Date: Tue, 30 Dec 2003 12:05:25 +0000 Subject: [PATCH] Initial Atom syndication and autodiscovery support. git-svn-id: http://svn.automattic.com/wordpress/trunk@666 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- index.php | 1 + wp-atom.php | 47 ++++++++++++++++++++++++++++++ wp-includes/template-functions.php | 3 ++ 3 files changed, 51 insertions(+) create mode 100644 wp-atom.php diff --git a/index.php b/index.php index 080e9552e..69446cc79 100644 --- a/index.php +++ b/index.php @@ -20,6 +20,7 @@ require_once('wp-blog-header.php'); + diff --git a/wp-atom.php b/wp-atom.php new file mode 100644 index 000000000..bbb12533f --- /dev/null +++ b/wp-atom.php @@ -0,0 +1,47 @@ + +'; ?> + + <?php bloginfo_rss('name') ?> + + + + Copyright + WordPress + tag:,:1984 + + + + + + + <?php the_title_rss() ?> + + ?p= + + + + + + + + + ]]> + + + \ No newline at end of file diff --git a/wp-includes/template-functions.php b/wp-includes/template-functions.php index 1bec9fe4e..5dfe42b31 100644 --- a/wp-includes/template-functions.php +++ b/wp-includes/template-functions.php @@ -55,6 +55,9 @@ function get_bloginfo($show='') { case "rss2_url": $output = $siteurl.'/wp-rss2.php'; break; + case "atom_url": + $output = $siteurl.'/wp-atom.php'; + break; case "comments_rss2_url": $output = $siteurl.'/wp-commentsrss2.php'; break;