From e5b5ecaae646a900ead3011c73dbb2182b519e59 Mon Sep 17 00:00:00 2001 From: Glen Whitney Date: Mon, 8 Feb 2021 13:11:47 -0800 Subject: [PATCH] fix: extract name from the pods object --- tablepress-pods.php | 4 ++-- view-exportpods.php | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tablepress-pods.php b/tablepress-pods.php index 6b3e5ca..b15bb6d 100644 --- a/tablepress-pods.php +++ b/tablepress-pods.php @@ -3,7 +3,7 @@ Plugin Name: TablePress Extension: Pods tables Plugin URI: https://code.studioinfinity.org/glen/tablepress-pods Description: Custom Extension for TablePress to incorporate Pods information in tables -Version: 0.2.9 +Version: 0.2.10 Author: Glen Whitney Author URI: http://studioinfinity.org/ */ @@ -103,7 +103,7 @@ function playground_exportpods_data( $data, $act ) { $data['export_format'] = ( ! empty( $_GET['export_format'] ) ) ? $_GET['export_format'] : false; $data['csv_delimiters'] = $exporter->csv_delimiters; $data['csv_delimiter'] = ( ! empty( $_GET['csv_delimiter'] ) ) ? $_GET['csv_delimiter'] : _x( ',', 'Default CSV delimiter in the translated language (";", ",", or "tab")', 'tablepress' ); - $data['pod_names'] = pods_api()->load_pods(); + $data['pods'] = pods_api()->load_pods(); $data['pod_name'] = ( ! empty( $_GET['pod_name'] ) ) ? $_GET['pod_name'] : false; return $data; } diff --git a/view-exportpods.php b/view-exportpods.php index bd23164..5765d2e 100644 --- a/view-exportpods.php +++ b/view-exportpods.php @@ -161,9 +161,10 @@ class TablePress_ExportPods_View extends TablePress_View {