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
|
* @package WordPress
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( empty($wp) ) {
|
require_once('./wp-load.php');
|
||||||
require_once('./wp-load.php');
|
|
||||||
wp();
|
|
||||||
}
|
|
||||||
|
|
||||||
header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
|
header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
|
||||||
$link_cat = '';
|
$link_cat = '';
|
||||||
|
@ -59,4 +56,4 @@ foreach ( (array)$cats as $cat ) :
|
||||||
endforeach; // $cats
|
endforeach; // $cats
|
||||||
?>
|
?>
|
||||||
</body>
|
</body>
|
||||||
</opml>
|
</opml>
|
Loading…
Reference in New Issue