refactor: try to redirect exportpods to export

This commit is contained in:
Glen Whitney 2021-02-08 13:34:46 -08:00
parent e5b5ecaae6
commit e530e6dbc4
2 changed files with 9 additions and 5 deletions

View file

@ -162,9 +162,9 @@ class TablePress_ExportPods_View extends TablePress_View {
<select id="tables-export-pod-name" name="export[pod_name]">
<?php
foreach ( $data['pods'] as $pod) {
$pod_name = $pod['name];
$pod_name = $pod['name'];
$selected = selected( $pod_name, $data['pod_name'], false );
echo "<option{$selected} value=\"{$pod_name}\"?{$pod_name}</option>";
echo "<option{$selected} value=\"{$pod_name}\">{$pod_name}</option>";
}
?>
</select>