get_action(); $step = $page->get_step(); $total = $page->get_total(); $number = $page->get_number(); $steps = $page->get_steps( $total, $number ); $args = array( 'charitable-upgrade' => $action, 'page' => 'charitable-upgrades', 'step' => $step, 'total' => $total, 'steps' => $steps, ); update_option( 'charitable_doing_upgrade', $args ); if ( $step > $steps ) { // Prevent a weird case where the estimate was off. Usually only a couple. $steps = $step; } ?>