From cf552e9b1e75a6eadaaeb38a3f14d32c67b31eb4 Mon Sep 17 00:00:00 2001 From: westi Date: Thu, 13 Aug 2009 20:52:41 +0000 Subject: [PATCH] Fix two more notices in the APP implementation. This time in the root /service page. git-svn-id: http://svn.automattic.com/wordpress/trunk@11812 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-app.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-app.php b/wp-app.php index 69e50ab71..1298e2a9f 100644 --- a/wp-app.php +++ b/wp-app.php @@ -355,6 +355,7 @@ class AtomServer { $entries_url = esc_attr($this->get_entries_url()); $categories_url = esc_attr($this->get_categories_url()); $media_url = esc_attr($this->get_attachments_url()); + $accepted_media_types = ''; foreach ($this->media_content_types as $med) { $accepted_media_types = $accepted_media_types . "" . $med . ""; } @@ -877,7 +878,7 @@ EOD; * @return string */ function get_entries_url($page = null) { - if($GLOBALS['post_type'] == 'attachment') { + if ( isset($GLOBALS['post_type']) && ( $GLOBALS['post_type'] == 'attachment' ) ) { $path = $this->MEDIA_PATH; } else { $path = $this->ENTRIES_PATH;