PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 1.7.0.9 All 211 releases
← All changes | templates/widgets/campaign-terms.php +18 -8 1.7.0.7 → 1.8.13 View file →
@@ -1,5 +1,11 @@
1 1 <?php
2 +// Exit if accessed directly.
3 +if ( ! defined( 'ABSPATH' ) ) {
4 + exit;
5 +}
6 +
7 +
2 8 /**
3 9 * Display a list of campaign categories or tags.
4 10 *
5 11 * Override this template by copying it to yourtheme/charitable/widgets/campaign-terms.php
@@ -9,27 +15,31 @@
9 15 * @since 1.0.0
10 16 * @version 1.0.0
11 17 */
12 18
13 -$taxonomy = isset( $view_args['taxonomy'] ) ? $view_args['taxonomy'] : 'campaign_category';
14 -$show_count = isset( $view_args['show_count'] ) && $view_args['show_count'];
15 -$hide_empty = isset( $view_args['hide_empty'] ) && $view_args['hide_empty'];
19 +$taxonomy = isset($view_args['taxonomy']) ? $view_args['taxonomy'] : 'campaign_category'; // phpcs:ignore
20 +$show_count = isset($view_args['show_count']) && $view_args['show_count']; // phpcs:ignore
21 +$hide_empty = isset($view_args['hide_empty']) && $view_args['hide_empty']; // phpcs:ignore
16 22
17 -echo $view_args['before_widget'];
23 +echo $view_args['before_widget']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
18 24
19 25 if ( ! empty( $view_args['title'] ) ) :
20 26
21 - echo $view_args['before_title'] . $view_args['title'] . $view_args['after_title'];
27 + echo $view_args['before_title'] . esc_html( $view_args['title'] ) . $view_args['after_title']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
22 28
23 29 endif;
24 30 ?>
25 31 <ul class="charitable-terms-widget">
26 - <?php wp_list_categories( array(
32 + <?php
33 + wp_list_categories(
34 + array(
27 35 'title_li' => '',
28 36 'taxonomy' => $taxonomy,
29 37 'show_count' => $show_count,
30 38 'hide_empty' => $hide_empty,
31 - ) ) ?>
39 + )
40 + );
41 + ?>
32 42 </ul><!-- .charitable-terms-widget -->
33 43 <?php
34 44
35 -echo $view_args['after_widget'];
45 +echo $view_args['after_widget']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped