diff --git a/wp-admin/export.php b/wp-admin/export.php index dcaa8137b..0f4ffa372 100644 --- a/wp-admin/export.php +++ b/wp-admin/export.php @@ -28,13 +28,13 @@ 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' ) { - $start_date = sprintf( "%04d-%02d-%02d", substr( $mm_start, 0, 4 ), substr( $mm_start, 5, 2 ), 1 ); + $start_date = sprintf( "%04d-%02d-%02d", substr( $MM._start, 0, 4 ), substr( $mm_start, 5, 2 ), 1 ); } else { $start_date = '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 ) { ?>