From a3a33327142cdcc66d9ef9121e11682ff5435ae5 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 11 Sep 2007 18:35:21 +0000 Subject: [PATCH] Add tags to export. see #4682 git-svn-id: https://develop.svn.wordpress.org/trunk@6076 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/export.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/wp-admin/export.php b/wp-admin/export.php index 86c8b2570f..39731751bf 100644 --- a/wp-admin/export.php +++ b/wp-admin/export.php @@ -65,6 +65,7 @@ if ( isset( $_GET['author'] ) && $_GET['author'] != 'all' ) { $post_ids = $wpdb->get_col("SELECT ID FROM $wpdb->posts $where ORDER BY post_date_gmt ASC"); $categories = (array) get_categories('get=all'); +$tags = (array) get_tags('get=all'); function wxr_missing_parents($categories) { if ( !is_array($categories) || empty($categories) ) @@ -126,6 +127,20 @@ function wxr_category_description($c) { echo '' . wxr_cdata($c->description) . ''; } +function wxr_tag_name($t) { + if ( empty($t->name) ) + return; + + echo '' . wxr_cdata($t->name) . ''; +} + +function wxr_tag_description($t) { + if ( empty($t->description) ) + return; + + echo '' . wxr_cdata($t->description) . ''; +} + print '\n"; ?> @@ -167,6 +182,9 @@ print '\n"; slug; ?>parent ? $cats[$c->parent]->name : ''; ?> + + + slug; ?>