From 83041cdf9b15d387b41d87836c9fc5f751ad546d Mon Sep 17 00:00:00 2001 From: Glen Whitney Date: Mon, 8 Feb 2021 13:54:50 -0800 Subject: [PATCH] fix: try to redirect to admin-post.php --- tablepress-pods.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tablepress-pods.php b/tablepress-pods.php index 74828fc..d4d2e19 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.11 +Version: 0.2.12 Author: Glen Whitney Author URI: http://studioinfinity.org/ */ @@ -201,9 +201,10 @@ function playground_handle_exportpods () { $export = wp_unslash( $_POST['export'] ); } - TablePress::redirect( array( 'action' => 'export', 'export' => $export ), true ); + $real_export = TablePress::url( array( 'action' => 'export', 'export' = > $export ), true, 'admin-post.php' ); + wp_redirect( $real_export ); } -/* +__halt_compiler(); $exporter = TablePress::load_class( 'TablePress_Export', 'class-export.php', 'classes' ); if ( empty( $export['tables'] ) ) {