Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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://svn.automattic.com/wordpress/trunk@15928 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
commit fa9f9ed6881bbfa954fd011807c84d09f6012f96 1 parent 5117ddf
dd32 authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 wp-links-opml.php
View
7 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 @@
endforeach; // $cats
?>
</body>
-</opml>
+</opml>
Please sign in to comment.
Something went wrong with that request. Please try again.