diff options
author | Zach van Rijn <me@zv.io> | 2021-07-21 16:19:29 -0500 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2021-07-21 16:19:29 -0500 |
commit | 69c17f9c1942fd0d6a5ea941636e87723b8a6fe2 (patch) | |
tree | e1d0212147048204b0eede0aa6ff79849ed479da /inc/theme-update/class-astra-theme-wp-background-process.php | |
parent | 74a7109a2a5ab0d191f26c917ae69e46f0d83b32 (diff) | |
download | blog-ng-69c17f9c1942fd0d6a5ea941636e87723b8a6fe2.tar.gz blog-ng-69c17f9c1942fd0d6a5ea941636e87723b8a6fe2.tar.bz2 blog-ng-69c17f9c1942fd0d6a5ea941636e87723b8a6fe2.tar.xz blog-ng-69c17f9c1942fd0d6a5ea941636e87723b8a6fe2.zip |
dos2unix on all .php files, begin paring down admin page and site branding.
Diffstat (limited to 'inc/theme-update/class-astra-theme-wp-background-process.php')
-rw-r--r-- | inc/theme-update/class-astra-theme-wp-background-process.php | 136 |
1 files changed, 68 insertions, 68 deletions
diff --git a/inc/theme-update/class-astra-theme-wp-background-process.php b/inc/theme-update/class-astra-theme-wp-background-process.php index 0b334f1..a19661b 100644 --- a/inc/theme-update/class-astra-theme-wp-background-process.php +++ b/inc/theme-update/class-astra-theme-wp-background-process.php @@ -1,68 +1,68 @@ -<?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();
- }
-
- }
-
-endif;
+<?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(); + } + + } + +endif; |