: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Abstract class for Upgrade
* @copyright Copyright (c) 2023, Code Atlantic LLC
if ( ! defined( 'ABSPATH' ) ) {
* Implements a basic upgrade process.
* Handles marking complete and resume management.
abstract class PUM_Abstract_Upgrade extends PUM_Abstract_Batch_Process {
* Store the current upgrade args in case we need to redo somehting
public function __construct( $step = 1 ) {
'upgrade_id' => $this->batch_id,
parent::__construct( $step );
* Defines logic to execute once batch processing is complete.
public function finish() {
* Clear the doing upgrade flag to prevent issues later.
delete_option( 'pum_doing_upgrade' );