Commit 64bf655b authored by Kevin Stover's avatar Kevin Stover

Merge branch 'issue#3745' into 'feat-stage-two'

Issue#3745

See merge request ninja-forms/ninja-forms!3716
parents ed3fd038 95b0326a
Pipeline #626 passed with stage
in 1 minute and 12 seconds
......@@ -22,10 +22,10 @@ return apply_filters( 'ninja_forms_required_updates', array(
'requires' => array( 'CacheCollateFields' ),
'nicename' => __( 'Update Objects Tables', 'ninja-forms' ),
),
// 'OrphanSubs' => array(
// 'class_name' => 'NF_Updates_OrphanSubs',
// 'requires' => array( 'CacheCollateFields' ),
// 'nicename' => __( 'Cleanup Orphan Records', 'ninja-forms' ),
// ),
'CacheCollateCleanup' => array(
'class_name' => 'NF_Updates_CacheCollateCleanup',
'requires' => array( 'CacheCollateObjects' ),
'nicename' => __( 'Cleanup Orphan Records', 'ninja-forms' ),
),
));
This diff is collapsed.
......@@ -161,6 +161,8 @@ class NF_Updates_CacheCollateObjects extends NF_Abstracts_RequiredUpdate
$this->cleanup();
// Prepare to output the number of updates remaining.
$this->response[ 'updatesRemaining' ] = count( $this->running );
// Record our current location in the process.
update_option( 'ninja_forms_doing_required_updates', $this->running );
$this->respond();
}
// Get the number of rows in the object_meta table.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment