X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/699231ae09f7057a4d0000cdf32e50a3df6a04ca..a6444c710cf37d7732aea76e752e43322b5036ca:/wp-admin/export.php diff --git a/wp-admin/export.php b/wp-admin/export.php index dcaa8137..01f3bf98 100644 --- a/wp-admin/export.php +++ b/wp-admin/export.php @@ -28,9 +28,9 @@ if ( isset( $_GET['download'] ) ) { $author = isset($_GET['author']) ? $_GET['author'] : 'all'; $taxonomy = array(); foreach ( get_taxonomies( array( 'show_ui' => true ) ) as $tax ) - $taxonomy[ $tax ] = ! empty( $_GET['taxonomy'][ $tax ] ) ? $_GET['taxonomy'][ $tax ] : 'all'; - $post_type = isset($_GET['post_type']) ? stripslashes_deep($_GET['post_type']) : 'all'; - $status = isset($_GET['status']) ? stripslashes_deep($_GET['status']) : 'all'; + $taxonomy[ $tax ] = ! empty( $_GET['export_taxonomy'][ $tax ] ) ? $_GET['export_taxonomy'][ $tax ] : 'all'; + $post_type = isset($_GET['export_post_type']) ? stripslashes_deep($_GET['export_post_type']) : 'all'; + $status = isset($_GET['export_post_status']) ? stripslashes_deep($_GET['export_post_status']) : 'all'; $mm_start = isset($_GET['mm_start']) ? $_GET['mm_start'] : 'all'; $mm_end = isset($_GET['mm_end']) ? $_GET['mm_end'] : 'all'; if( $mm_start != 'all' ) { @@ -108,7 +108,7 @@ foreach ( (array) $authors as $author ) { true ), 'objects' ) as $tax_obj ) { - $term_dropdown = wp_dropdown_categories( array( 'taxonomy' => $tax_obj->name, 'hide_if_empty' => true, 'show_option_all' => __( 'All Terms' ), 'name' => 'taxonomy[' . $tax_obj->name . ']', 'id' => 'taxonomy-' . $tax_obj->name, 'class' => '', 'echo' => false ) ); + $term_dropdown = wp_dropdown_categories( array( 'taxonomy' => $tax_obj->name, 'hide_if_empty' => true, 'show_option_all' => __( 'All Terms' ), 'name' => 'export_taxonomy[' . $tax_obj->name . ']', 'id' => 'taxonomy-' . $tax_obj->name, 'class' => '', 'echo' => false ) ); if ( $term_dropdown ) echo '' . $term_dropdown . ''; } @@ -116,7 +116,7 @@ foreach ( (array) $authors as $author ) { - true, 'can_export' => true ), 'objects' ) as $post_type_obj ) { ?> @@ -127,7 +127,7 @@ foreach ( (array) $authors as $author ) { - false ), 'objects' ) as $post_status_obj ) { ?>