Skip to content

Commit 0cb877d

Browse files
author
dd32
committed
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
1 parent b57573a commit 0cb877d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

wp-links-opml.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
* @package WordPress
1313
*/
1414

15-
if ( empty($wp) ) {
16-
require_once('./wp-load.php');
17-
wp();
18-
}
15+
require_once('./wp-load.php');
1916

2017
header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
2118
$link_cat = '';
@@ -59,4 +56,4 @@
5956
endforeach; // $cats
6057
?>
6158
</body>
62-
</opml>
59+
</opml>

0 commit comments

Comments
 (0)