Changeset 15308
- Timestamp:
- 06/23/2010 07:30:53 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/wp-admin/export.php
r15135 r15308 29 29 $taxonomy = array(); 30 30 foreach ( get_taxonomies( array( 'show_ui' => true ) ) as $tax ) 31 $taxonomy[ $tax ] = ! empty( $_GET[' taxonomy'][ $tax ] ) ? $_GET['taxonomy'][ $tax ] : 'all';32 $post_type = isset($_GET[' post_type']) ? stripslashes_deep($_GET['post_type']) : 'all';33 $status = isset($_GET[' status']) ? stripslashes_deep($_GET['status']) : 'all';31 $taxonomy[ $tax ] = ! empty( $_GET['export_taxonomy'][ $tax ] ) ? $_GET['export_taxonomy'][ $tax ] : 'all'; 32 $post_type = isset($_GET['export_post_type']) ? stripslashes_deep($_GET['export_post_type']) : 'all'; 33 $status = isset($_GET['export_post_status']) ? stripslashes_deep($_GET['export_post_status']) : 'all'; 34 34 $mm_start = isset($_GET['mm_start']) ? $_GET['mm_start'] : 'all'; 35 35 $mm_end = isset($_GET['mm_end']) ? $_GET['mm_end'] : 'all'; … … 109 109 </tr> 110 110 <?php foreach ( get_taxonomies( array( 'show_ui' => true ), 'objects' ) as $tax_obj ) { 111 $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 ) );111 $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 ) ); 112 112 if ( $term_dropdown ) 113 113 echo '<tr><th><label for="taxonomy-' . $tax_obj->name . '">' . $tax_obj->labels->name . '</label></th><td>' . $term_dropdown . '</td></tr>'; … … 117 117 <th><label for="post_type"><?php _e('Content Types'); ?></label></th> 118 118 <td> 119 <select name=" post_type" id="post_type">119 <select name="export_post_type" id="post_type"> 120 120 <option value="all" selected="selected"><?php _e('All Content'); ?></option> 121 121 <?php foreach ( get_post_types( array( 'public' => true, 'can_export' => true ), 'objects' ) as $post_type_obj ) { ?> … … 128 128 <th><label for="status"><?php _e('Statuses'); ?></label></th> 129 129 <td> 130 <select name=" status" id="status">130 <select name="export_post_status" id="status"> 131 131 <option value="all" selected="selected"><?php _e('All Statuses'); ?></option> 132 132 <?php foreach ( get_post_stati( array( 'internal' => false ), 'objects' ) as $post_status_obj ) { ?>
Note: See TracChangeset
for help on using the changeset viewer.