'edd-upgrades',
'edd-upgrade' => $action,
'step' => $step,
'total' => $total,
'custom' => $custom,
'steps' => $steps
) );
// Prevent step estimate from going over
if ( $step > $steps ) {
$steps = $step;
}
if ( ! empty( $action ) ) :
// Redirect URL
$redirect = add_query_arg(
array(
'edd_action' => sanitize_key( $action ),
'step' => absint( $step ),
'total' => absint( $total ),
'custom' => absint( $custom ),
'_wpnonce' => wp_create_nonce( 'edd-upgrade' ),
),
admin_url( 'index.php' )
);
?>