From fa9f9ed6881bbfa954fd011807c84d09f6012f96 Mon Sep 17 00:00:00 2001 From: dd32 Date: Sat, 23 Oct 2010 12:17:33 +0000 Subject: [PATCH] Do not Query for posts on OPML exports, Fixes OPML export script 404'ing due to no pages matching 'wp-links-opml.php'. Fixes #15195 git-svn-id: http://svn.automattic.com/wordpress/trunk@15928 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-links-opml.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/wp-links-opml.php b/wp-links-opml.php index e8aed950bb..e30869bdc8 100644 --- a/wp-links-opml.php +++ b/wp-links-opml.php @@ -12,10 +12,7 @@ * @package WordPress */ -if ( empty($wp) ) { - require_once('./wp-load.php'); - wp(); -} +require_once('./wp-load.php'); header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true); $link_cat = ''; @@ -59,4 +56,4 @@ foreach ( (array)$cats as $cat ) : endforeach; // $cats ?> - + \ No newline at end of file