Permalink
Browse files

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://core.svn.wordpress.org/trunk@15928 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent b57573a commit 0cb877db083d72364af6f9c0e4d179714306f18e dd32 committed Oct 23, 2010
Showing with 2 additions and 5 deletions.
  1. +2 −5 wp-links-opml.php
View
@@ -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 @@
endforeach; // $cats
?>
</body>
-</opml>
+</opml>

0 comments on commit 0cb877d

Please sign in to comment.