updated plugin GP Premium
version 1.11.2
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user