mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
5117ddfd49
commit
fa9f9ed688
@ -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>
|
Loading…
Reference in New Issue
Block a user