Merge branch 'hotfix/0.17.4' of https://github.com/tainacan/tainacan into hotfix/0.17.4

This commit is contained in:
mateuswetah 2021-02-17 11:50:27 -03:00
commit 5b2e399d91
3 changed files with 9 additions and 9 deletions

View File

@ -289,21 +289,21 @@ abstract class Background_Process extends \Tainacan_WP_Background_Process {
$this->write_log($batch->key, ['New Request']);
$newRequest = false;
}
register_shutdown_function(function() use($batch) {
$this->debug('Shutdown with Fatal error captured');
$error = error_get_last();
if ( is_null($error) )
return;
$error_str = "Fatal error";
$error_str = "Fatal error: " . json_encode($error);
if ( is_array($error) ) {
$error_str = $error['message'] . ' - ' . $error['file'] . ' - Line: ' . $error['line'];
}
$this->debug('Shutdown with Fatal error captured');
$this->debug($error_str);
$this->write_error_log($batch->key, ['Fatal Error: ' . $error_str]);
$this->write_error_log($batch->key, ['Process aborted']);
$this->close( $batch->key, 'errored' );
$this->debug('Batch closed due to captured error');
$this->unlock_process();

View File

@ -4,7 +4,7 @@ Tags: museums, libraries, archives, GLAM, collections, repository
Requires at least: 4.8
Tested up to: 5.6
Requires PHP: 5.6
Stable tag: 0.17.3
Stable tag: 0.17.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html

View File

@ -4,13 +4,13 @@ Plugin Name: Tainacan
Plugin URI: https://tainacan.org/
Description: Open source, powerfull and flexible repository platform for WordPress. Manage and publish you digital collections as easily as publishing a post to your blog, while having all the tools of a professional respository platform.
Author: Tainacan.org
Version: 0.17.3
Version: 0.17.4
Text Domain: tainacan
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
const TAINACAN_VERSION = '0.17.3';
const TAINACAN_VERSION = '0.17.4';
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
$TAINACAN_BASE_URL = plugins_url('', __FILE__);