PUM_Admin_Upgrade_Routine::done()
Description Description
Source Source
File: includes/admin/upgrades/class-pum-admin-upgrade-routine.php
public static function done() { $upgrades = PUM_Admin_Upgrades::instance(); delete_option( 'pum_doing_upgrade' ); $upgrades->set_upgrade_complete( $upgrades->current_routine() ); $upgrades->set_pum_db_ver( $upgrades->get_arg( 'pum-upgrade' ) ); $next_routine = $upgrades->next_routine(); if ( $upgrades->has_upgrades() && $next_routine && $upgrades->get_upgrade( $next_routine ) ) { if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) { $upgrades->set_arg( 'step', 1 ); $upgrades->set_arg( 'completed', 0 ); $upgrades->set_arg( 'pum-upgrade', $next_routine ); echo wp_json_encode( array( 'status' => sprintf( '<strong>%s</strong>', $upgrades->get_upgrade( $next_routine ) ), 'next' => $upgrades->get_args(), ) ); exit; } } }
Expand full source code Collapse full source code View on Trac