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
This commit is contained in:
dd32 2010-10-23 12:17:33 +00:00
parent 5117ddfd49
commit fa9f9ed688
1 changed files with 2 additions and 5 deletions

View File

@ -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
?>
</body>
</opml>
</opml>