文件操作 - Upgrade.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/popup-maker/classes/Abstract/Upgrade.php
编辑文件内容
<?php /** * Abstract class for Upgrade * * @package PopupMaker * @copyright Copyright (c) 2024, Code Atlantic LLC */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Implements a basic upgrade process. * * Handles marking complete and resume management. * * @since 1.7.0 */ abstract class PUM_Abstract_Upgrade extends PUM_Abstract_Batch_Process { /** * Store the current upgrade args in case we need to redo somehting * * @param int $step */ public function __construct( $step = 1 ) { update_option( 'pum_doing_upgrade', [ 'upgrade_id' => $this->batch_id, 'step' => $step, ] ); 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' ); parent::finish(); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件