Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions gravity-forms/gw-cache-buster.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
class GW_Cache_Buster {

private $args = array();
private $_args = array();

public function __construct( $args = array() ) {

Expand Down Expand Up @@ -143,14 +143,20 @@ public function shortcode( $markup, $attributes, $content ) {
$ajax_url = remove_query_arg( $exclude_params, add_query_arg( $_GET, admin_url( 'admin-ajax.php' ) ) );

// Still needed for the AJAX submission.
$ajax_url = add_query_arg(
array(
'action' => 'gfcb_get_form',
'form_id' => $form_id,
),
$ajax_url
$ajax_params = array(
'action' => 'gfcb_get_form',
'form_id' => $form_id,
);

// Ensure AJAX parameters for GPNF are also correctly populated.
if ( class_exists( 'GPNF_Session' ) ) {
$ajax_params['gpnf_context'] = array(
'path' => esc_js( GPNF_Session::get_session_path() ),
);
}

$ajax_url = add_query_arg( $ajax_params, $ajax_url );

$lang = null;
if ( class_exists( 'Gravity_Forms_Multilingual' ) ) {
global $sitepress;
Expand Down