Merge branch 'hotfix/0.21.11'

This commit is contained in:
vnmedeiros 2024-10-09 11:55:40 -03:00
commit 9f4e3dd335
3 changed files with 11 additions and 11 deletions

View File

@ -1385,9 +1385,9 @@ function tainacan_get_single_taxonomy_content($post, $args = []) {
$grandparent = get_term($tainacan_parent_term->get_parent()); $grandparent = get_term($tainacan_parent_term->get_parent());
$tainacan_grandparent_term = new Entities\Term( $grandparent ); $tainacan_grandparent_term = new Entities\Term( $grandparent );
$content .= '<a href="' . add_query_arg( 'termsparent', $tainacan_parent_term->get_parent() ) . '">' . __('Return to the list of terms children of ', 'tainacan') . '<em>' . $tainacan_grandparent_term->get_name() . '</em>.</a>'; $content .= '<a href="' . esc_url( add_query_arg( 'termsparent', $tainacan_parent_term->get_parent() ) ) . '">' . __('Return to the list of terms children of ', 'tainacan') . '<em>' . $tainacan_grandparent_term->get_name() . '</em>.</a>';
} else } else
$content .= '<a href="' . remove_query_arg( 'termsparent' ) . '">' . __('Return to the terms list.', 'tainacan') . '</a>'; $content .= '<a href="' . esc_url( remove_query_arg( 'termsparent' ) ) . '">' . __('Return to the terms list.', 'tainacan') . '</a>';
$content .= '</p></div>'; $content .= '</p></div>';
} }
@ -1458,7 +1458,7 @@ function tainacan_get_single_taxonomy_content($post, $args = []) {
$total_children = is_array($total_children) && count($total_children) ? count($total_children) : 0; $total_children = is_array($total_children) && count($total_children) ? count($total_children) : 0;
if ( $total_children ) { if ( $total_children ) {
echo $args['before_term_children_link'] . '<a href="' . add_query_arg( 'termsparent', $tainacan_term->get_id() ) . '">'; echo $args['before_term_children_link'] . '<a href="' . esc_url( add_query_arg( 'termsparent', $tainacan_term->get_id() ) ) . '">';
if ( !$args['hide_term_children_count'] && $args['term_children_count_position'] === 'before' ) if ( !$args['hide_term_children_count'] && $args['term_children_count_position'] === 'before' )
echo '<span class="term-children-count">' . $total_children . '</span>&nbsp;'; echo '<span class="term-children-count">' . $total_children . '</span>&nbsp;';
@ -1548,10 +1548,10 @@ function tainacan_get_taxonomies_orderby($args = []) {
id="tainacan-taxonomy-order-select" id="tainacan-taxonomy-order-select"
name="order" name="order"
onchange="location = this.value;"> onchange="location = this.value;">
<option value="<?php echo add_query_arg( 'order', 'ASC' ); ?>" <?php echo $current_args['order'] == 'ASC' ? 'selected' : ''; ?>> <option value="<?php echo esc_url( add_query_arg( 'order', 'ASC' ) ); ?>" <?php echo $current_args['order'] == 'ASC' ? 'selected' : ''; ?>>
<?php _e( 'Ascending', 'tainacan' ); ?> <?php _e( 'Ascending', 'tainacan' ); ?>
</option> </option>
<option value="<?php echo add_query_arg( 'order', 'DESC' ); ?>" <?php echo $current_args['order'] == 'DESC' ? 'selected' : ''; ?>> <option value="<?php echo esc_url( add_query_arg( 'order', 'DESC' ) ); ?>" <?php echo $current_args['order'] == 'DESC' ? 'selected' : ''; ?>>
<?php _e( 'Descending', 'tainacan' ); ?> <?php _e( 'Descending', 'tainacan' ); ?>
</option> </option>
</select> </select>
@ -1567,10 +1567,10 @@ function tainacan_get_taxonomies_orderby($args = []) {
id="tainacan-taxonomy-orderby-select" id="tainacan-taxonomy-orderby-select"
name="orderby" name="orderby"
onchange="location = this.value;"> onchange="location = this.value;">
<option value="<?php echo add_query_arg( 'orderby', 'name' ); ?>" <?php echo $current_args['orderby'] == 'name' ? 'selected' : ''; ?>> <option value="<?php echo esc_url( add_query_arg( 'orderby', 'name' ) ); ?>" <?php echo $current_args['orderby'] == 'name' ? 'selected' : ''; ?>>
<?php _e( 'Name', 'tainacan' ); ?> <?php _e( 'Name', 'tainacan' ); ?>
</option> </option>
<option value="<?php echo add_query_arg( 'orderby', 'count' ); ?>" <?php echo $current_args['orderby'] == 'count'? 'selected' : ''; ?>> <option value="<?php echo esc_url( add_query_arg( 'orderby', 'count' ) ); ?>" <?php echo $current_args['orderby'] == 'count'? 'selected' : ''; ?>>
<?php _e( 'Amount of items', 'tainacan' ); ?> <?php _e( 'Amount of items', 'tainacan' ); ?>
</option> </option>
</select> </select>

View File

@ -4,7 +4,7 @@ Tags: museums, archives, GLAM, collections, repository
Requires at least: 5.9 Requires at least: 5.9
Tested up to: 6.6 Tested up to: 6.6
Requires PHP: 7.0 Requires PHP: 7.0
Stable tag: 0.21.10 Stable tag: 0.21.11
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html License URI: http://www.gnu.org/licenses/gpl-3.0.html

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. 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: Tainacan.org
Author URI: https://tainacan.org/ Author URI: https://tainacan.org/
Version: 0.21.10 Version: 0.21.11
Requires at least: 5.9 Requires at least: 5.9
Tested up to: 6.6 Tested up to: 6.6
Requires PHP: 7.0 Requires PHP: 7.0
Stable tag: 0.21.10 Stable tag: 0.21.11
Text Domain: tainacan Text Domain: tainacan
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/ */
const TAINACAN_VERSION = '0.21.10'; const TAINACAN_VERSION = '0.21.11';
defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
$TAINACAN_BASE_URL = plugins_url('', __FILE__); $TAINACAN_BASE_URL = plugins_url('', __FILE__);