updated plugin GP Premium version 1.11.2

This commit is contained in:
2020-08-13 14:53:39 +00:00
committed by Gitium
parent 3f0f8d3ac9
commit 885bbdd113
151 changed files with 11329 additions and 6954 deletions

View File

@ -1,8 +1,14 @@
<?php
/**
* Image Background Process
* This file handles background processes.
*
* @package GP Premium
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // No direct access, please.
}
if ( class_exists( 'WP_Background_Process' ) ) {
/**
@ -12,8 +18,18 @@ if ( class_exists( 'WP_Background_Process' ) ) {
*/
class GeneratePress_Site_Background_Process extends WP_Background_Process {
/**
* What we're doing.
*
* @var $action
*/
protected $action = 'image_process';
/**
* Do the task.
*
* @param class $process The process.
*/
protected function task( $process ) {
if ( method_exists( $process, 'import' ) ) {
@ -23,6 +39,9 @@ if ( class_exists( 'WP_Background_Process' ) ) {
return false;
}
/**
* Complete the task.
*/
protected function complete() {
parent::complete();