Merge tag '0.21.4' into develop

release 0.21.4
This commit is contained in:
vnmedeiros 2024-05-29 09:03:04 -03:00
commit 1fdc5f1030
3 changed files with 39 additions and 9 deletions

View File

@ -4,7 +4,7 @@ Tags: museums, archives, GLAM, collections, repository
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.0
Stable tag: 0.21.3
Stable tag: 0.21.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
@ -83,6 +83,12 @@ If you have Imagick installed on your server, Tainacan will be able to automatic
* Contribute to the source code: [https://github.com/tainacan/tainacan](https://github.com/tainacan/tainacan)
* Check our documentation Wiki: [https://wiki.tainacan.org/](https://wiki.tainacan.org/)
== Frequently Asked Questions ==
= Where do I report security bugs found in this plugin? =
Please report security bugs found in the source code of the Tainacan plugin through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/tainacan). The Patchstack team will assist you with verification, CVE assignment, and notify the developers of this plugin.
== Screenshots ==
1. Manage your repository

View File

@ -5,17 +5,17 @@ Plugin URI: https://tainacan.org/
Description: Open source, powerful 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 repository platform.
Author: Tainacan.org
Author URI: https://tainacan.org/
Version: 0.21.3
Version: 0.21.4
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.0
Stable tag: 0.21.3
Stable tag: 0.21.4
Text Domain: tainacan
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
const TAINACAN_VERSION = '0.21.3';
const TAINACAN_VERSION = '0.21.4';
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
$TAINACAN_BASE_URL = plugins_url('', __FILE__);

View File

@ -163,8 +163,15 @@ class Admin {
}
function roles_page() {
global $TAINACAN_BASE_URL;
echo "<div id='tainacan-roles-app' data-module='roles'></div>";
$allowed_html = [
'div' => [
'id' => true,
'style' => true,
'class' => true,
'data-module' => true
]
];
echo wp_kses( "<div id='tainacan-roles-app' data-module='roles'></div>", $allowed_html );
}
function add_reports_css() {
@ -194,8 +201,16 @@ class Admin {
}
function reports_page() {
global $TAINACAN_BASE_URL;
echo "<div id='tainacan-reports-app' data-module='reports'></div>";
$allowed_html = [
'div' => [
'id' => true,
'style' => true,
'class' => true,
'data-module' => true
]
];
echo wp_kses( "<div id='tainacan-reports-app' data-module='reports'></div>", $allowed_html );
}
function add_admin_css() {
@ -411,7 +426,16 @@ class Admin {
$admin_options = apply_filters('tainacan-admin-ui-options', $_GET);
$admin_options = json_encode($admin_options);
echo "<div id='tainacan-admin-app' data-module='admin' data-options='$admin_options'></div>";
$allowed_html = [
'div' => [
'id' => true,
'style' => true,
'class' => true,
'data-module' => true,
'data-options' => true
]
];
echo wp_kses( "<div id='tainacan-admin-app' data-module='admin' data-options='$admin_options'></div>", $allowed_html );
}
function register_user_meta() {