Make WordPress Core

Changeset 15308


Ignore:
Timestamp:
06/23/2010 07:30:53 AM (13 years ago)
Author:
nacin
Message:

Avoid variable clash in export.php. see #14026 for 3.0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-admin/export.php

    r15135 r15308  
    2929        $taxonomy = array();
    3030        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';
    3434        $mm_start = isset($_GET['mm_start']) ? $_GET['mm_start'] : 'all';
    3535        $mm_end = isset($_GET['mm_end']) ? $_GET['mm_end'] : 'all';
     
    109109</tr>
    110110<?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 ) );
    112112    if ( $term_dropdown )
    113113        echo '<tr><th><label for="taxonomy-' . $tax_obj->name . '">' . $tax_obj->labels->name . '</label></th><td>' . $term_dropdown . '</td></tr>';
     
    117117<th><label for="post_type"><?php _e('Content Types'); ?></label></th>
    118118<td>
    119 <select name="post_type" id="post_type">
     119<select name="export_post_type" id="post_type">
    120120    <option value="all" selected="selected"><?php _e('All Content'); ?></option>
    121121    <?php foreach ( get_post_types( array( 'public' => true, 'can_export' => true ), 'objects' ) as $post_type_obj ) { ?>
     
    128128<th><label for="status"><?php _e('Statuses'); ?></label></th>
    129129<td>
    130 <select name="status" id="status">
     130<select name="export_post_status" id="status">
    131131    <option value="all" selected="selected"><?php _e('All Statuses'); ?></option>
    132132<?php foreach ( get_post_stati( array( 'internal' => false ), 'objects' ) as $post_status_obj ) { ?>
Note: See TracChangeset for help on using the changeset viewer.