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; ?>