Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/wp-content/themes/astra/inc/theme-update/ |
Upload File : |
<?php /** * Database Background Process * * @package Astra * @since 2.1.3 */ if ( class_exists( 'Astra_WP_Background_Process' ) ) { /** * Database Background Process * * @since 2.1.3 */ class Astra_Theme_WP_Background_Process extends Astra_WP_Background_Process { /** * Database Process * * @var string */ protected $action = 'astra_theme_db_migration'; /** * Task * * Override this method to perform any actions required on each * queue item. Return the modified item for further processing * in the next pass through. Or, return false to remove the * item from the queue. * * @since 2.1.3 * * @param object $process Queue item object. * @return mixed */ protected function task( $process ) { do_action( 'astra_batch_process_task_' . $process, $process ); if ( function_exists( $process ) ) { call_user_func( $process ); } if ( 'update_db_version' === $process ) { Astra_Theme_Background_Updater::update_db_version(); } return false; } /** * Complete * * Override if applicable, but ensure that the below actions are * performed, or, call parent::complete(). * * @since 2.1.3 */ protected function complete() { do_action( 'astra_database_migration_complete' ); parent::complete(); } } }