Version Description
(2022-01-26) = - Updated escaping function to correct issue with the widget output.
Download this release
Release Info
Developer | Rustaurius |
Plugin | Ultimate FAQ |
Version | 2.1.8 |
Comparing to | |
See all releases |
Code changes from version 2.1.7 to 2.1.8
- includes/Widgets.class.php +60 -25
- lib/simple-admin-pages/.gitignore +0 -50
- readme.txt +4 -1
- ultimate-faqs.php +3 -3
includes/Widgets.class.php
CHANGED
@@ -60,12 +60,19 @@ class ewdufaqFAQPostListWidget extends WP_Widget {
|
|
60 |
*/
|
61 |
public function widget( $args, $instance ) {
|
62 |
|
63 |
-
echo
|
|
|
64 |
if ( $instance['faq_title'] != '' ) {
|
65 |
-
echo (
|
|
|
|
|
|
|
|
|
66 |
}
|
|
|
67 |
echo do_shortcode( "[select-faq faq_id='". sanitize_text_field( $instance['faq_id'] ) . "' no_comments='Yes']" );
|
68 |
-
|
|
|
69 |
}
|
70 |
|
71 |
/**
|
@@ -132,14 +139,23 @@ class ewdufaqRecentFAQsWidget extends WP_Widget {
|
|
132 |
*/
|
133 |
public function widget( $args, $instance ) {
|
134 |
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
);
|
140 |
}
|
141 |
-
|
142 |
-
echo
|
|
|
|
|
143 |
}
|
144 |
|
145 |
/**
|
@@ -204,14 +220,23 @@ class ewdufaqPopularFAQsWidget extends WP_Widget {
|
|
204 |
*/
|
205 |
public function widget( $args, $instance ) {
|
206 |
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
);
|
212 |
}
|
213 |
-
|
214 |
-
echo
|
|
|
|
|
215 |
}
|
216 |
|
217 |
/**
|
@@ -285,14 +310,19 @@ class ewdufaqRandomFAQsWidget extends WP_Widget {
|
|
285 |
$faqs = get_posts( $args );
|
286 |
$faq = reset( $faqs );
|
287 |
|
288 |
-
echo
|
289 |
-
|
290 |
-
|
291 |
-
|
|
|
|
|
|
|
292 |
);
|
293 |
}
|
|
|
294 |
echo do_shortcode( "[select-faq faq_id='". sanitize_text_field( $faq->ID ) . "' no_comments='Yes']" );
|
295 |
-
|
|
|
296 |
}
|
297 |
|
298 |
/**
|
@@ -351,14 +381,19 @@ class ewdufaqFAQCategoriesWidget extends WP_Widget {
|
|
351 |
*/
|
352 |
public function widget( $args, $instance ) {
|
353 |
|
354 |
-
echo
|
355 |
-
|
356 |
-
|
357 |
-
|
|
|
|
|
|
|
358 |
);
|
359 |
}
|
|
|
360 |
echo do_shortcode( "[ultimate-faqs include_category='". sanitize_text_field( $instance['include_category'] ) . "' no_comments='Yes']" );
|
361 |
-
|
|
|
362 |
}
|
363 |
|
364 |
/**
|
60 |
*/
|
61 |
public function widget( $args, $instance ) {
|
62 |
|
63 |
+
echo wp_kses_post( $args['before_widget'] );
|
64 |
+
|
65 |
if ( $instance['faq_title'] != '' ) {
|
66 |
+
echo wp_kses_post(
|
67 |
+
( $args['before_title'] != '' ? $args['before_title'] : '<h3>' ).
|
68 |
+
$instance['faq_title'].
|
69 |
+
( $args['after_title'] != '' ? $args['after_title'] : '</h3>' )
|
70 |
+
);
|
71 |
}
|
72 |
+
|
73 |
echo do_shortcode( "[select-faq faq_id='". sanitize_text_field( $instance['faq_id'] ) . "' no_comments='Yes']" );
|
74 |
+
|
75 |
+
echo wp_kses_post( $args['after_widget'] );
|
76 |
}
|
77 |
|
78 |
/**
|
139 |
*/
|
140 |
public function widget( $args, $instance ) {
|
141 |
|
142 |
+
$instance['post_count'] = isset( $instance['post_count'] ) && 0 < intval( $instance['post_count'] )
|
143 |
+
? intval( $instance['post_count'] )
|
144 |
+
: 5;
|
145 |
+
|
146 |
+
echo wp_kses_post( $args['before_widget'] );
|
147 |
+
|
148 |
+
if ( isset( $instance['faq_title'] ) && !empty( $instance['faq_title'] ) ) {
|
149 |
+
echo wp_kses_post(
|
150 |
+
( $args['before_title'] != '' ? $args['before_title'] : '<h3>' ).
|
151 |
+
$instance['faq_title'].
|
152 |
+
( $args['after_title'] != '' ? $args['after_title'] : '</h3>' )
|
153 |
);
|
154 |
}
|
155 |
+
|
156 |
+
echo do_shortcode( "[recent-faqs post_count='". $instance['post_count'] . "' no_comments='Yes']" );
|
157 |
+
|
158 |
+
echo wp_kses_post( $args['after_widget'] );
|
159 |
}
|
160 |
|
161 |
/**
|
220 |
*/
|
221 |
public function widget( $args, $instance ) {
|
222 |
|
223 |
+
$instance['post_count'] = isset( $instance['post_count'] ) && 0 < intval( $instance['post_count'] )
|
224 |
+
? intval( $instance['post_count'] )
|
225 |
+
: 5;
|
226 |
+
|
227 |
+
echo wp_kses_post( $args['before_widget'] );
|
228 |
+
|
229 |
+
if ( isset( $instance['faq_title'] ) && !empty( $instance['faq_title'] ) ) {
|
230 |
+
echo wp_kses_post(
|
231 |
+
( $args['before_title'] != '' ? $args['before_title'] : '<h3>' ).
|
232 |
+
$instance['faq_title'].
|
233 |
+
( $args['after_title'] != '' ? $args['after_title'] : '</h3>' )
|
234 |
);
|
235 |
}
|
236 |
+
|
237 |
+
echo do_shortcode( "[popular-faqs post_count='". $instance['post_count'] . "' no_comments='Yes']" );
|
238 |
+
|
239 |
+
echo wp_kses_post( $args['after_widget'] );
|
240 |
}
|
241 |
|
242 |
/**
|
310 |
$faqs = get_posts( $args );
|
311 |
$faq = reset( $faqs );
|
312 |
|
313 |
+
echo wp_kses_post( $args['before_widget'] );
|
314 |
+
|
315 |
+
if ( $instance['faq_title'] != "" ) {
|
316 |
+
echo wp_kses_post(
|
317 |
+
( $args['before_title'] != '' ? $args['before_title'] : "<h3>" ).
|
318 |
+
$instance['faq_title'].
|
319 |
+
( $args['after_title'] != '' ? $args['after_title'] : "</h3>" )
|
320 |
);
|
321 |
}
|
322 |
+
|
323 |
echo do_shortcode( "[select-faq faq_id='". sanitize_text_field( $faq->ID ) . "' no_comments='Yes']" );
|
324 |
+
|
325 |
+
echo wp_kses_post( $args['after_widget'] );
|
326 |
}
|
327 |
|
328 |
/**
|
381 |
*/
|
382 |
public function widget( $args, $instance ) {
|
383 |
|
384 |
+
echo wp_kses_post( $args['before_widget'] );
|
385 |
+
|
386 |
+
if ( $instance['faq_title'] != "" ) {
|
387 |
+
echo wp_kses_post(
|
388 |
+
( $args['before_title'] != '' ? $args['before_title'] : "<h3>" ).
|
389 |
+
$instance['faq_title'].
|
390 |
+
( $args['after_title'] != '' ? $args['after_title'] : "</h3>" )
|
391 |
);
|
392 |
}
|
393 |
+
|
394 |
echo do_shortcode( "[ultimate-faqs include_category='". sanitize_text_field( $instance['include_category'] ) . "' no_comments='Yes']" );
|
395 |
+
|
396 |
+
echo wp_kses_post( $args['after_widget'] );
|
397 |
}
|
398 |
|
399 |
/**
|
lib/simple-admin-pages/.gitignore
DELETED
@@ -1,50 +0,0 @@
|
|
1 |
-
# These are some examples of commonly ignored file patterns.
|
2 |
-
# You should customize this list as applicable to your project.
|
3 |
-
# Learn more about .gitignore:
|
4 |
-
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore
|
5 |
-
|
6 |
-
# Node artifact files
|
7 |
-
node_modules/
|
8 |
-
dist/
|
9 |
-
|
10 |
-
# Compiled Java class files
|
11 |
-
*.class
|
12 |
-
|
13 |
-
# Compiled Python bytecode
|
14 |
-
*.py[cod]
|
15 |
-
|
16 |
-
# Log files
|
17 |
-
*.log
|
18 |
-
|
19 |
-
# Package files
|
20 |
-
*.jar
|
21 |
-
|
22 |
-
# Maven
|
23 |
-
target/
|
24 |
-
dist/
|
25 |
-
|
26 |
-
# JetBrains IDE
|
27 |
-
.idea/
|
28 |
-
|
29 |
-
# Unit test reports
|
30 |
-
TEST*.xml
|
31 |
-
|
32 |
-
# Generated by MacOS
|
33 |
-
.DS_Store
|
34 |
-
|
35 |
-
# Generated by Windows
|
36 |
-
Thumbs.db
|
37 |
-
|
38 |
-
# Applications
|
39 |
-
*.app
|
40 |
-
*.exe
|
41 |
-
*.war
|
42 |
-
|
43 |
-
# Large media files
|
44 |
-
*.mp4
|
45 |
-
*.tiff
|
46 |
-
*.avi
|
47 |
-
*.flv
|
48 |
-
*.mov
|
49 |
-
*.wmv
|
50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Rustaurius, EtoileWebDesign
|
|
3 |
Tags: faq, faqs, accordion, woocommerce faq, gutenberg faq, faq block
|
4 |
Requires at least: 5.0
|
5 |
Tested up to: 5.8
|
6 |
-
Stable tag: 2.1.
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -267,6 +267,9 @@ Video 3 - FAQs Ordering
|
|
267 |
|
268 |
== Changelog ==
|
269 |
|
|
|
|
|
|
|
270 |
= 2.1.7 (2022-01-19) =
|
271 |
- Added a new filter (ewd_ufaq_kses_allowed_html) to specify allowed tags for the FAQ answer/body.
|
272 |
|
3 |
Tags: faq, faqs, accordion, woocommerce faq, gutenberg faq, faq block
|
4 |
Requires at least: 5.0
|
5 |
Tested up to: 5.8
|
6 |
+
Stable tag: 2.1.8
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
267 |
|
268 |
== Changelog ==
|
269 |
|
270 |
+
= 2.1.8 (2022-01-26) =
|
271 |
+
- Updated escaping function to correct issue with the widget output.
|
272 |
+
|
273 |
= 2.1.7 (2022-01-19) =
|
274 |
- Added a new filter (ewd_ufaq_kses_allowed_html) to specify allowed tags for the FAQ answer/body.
|
275 |
|
ultimate-faqs.php
CHANGED
@@ -6,9 +6,9 @@ Description: FAQ and accordion plugin with easy to use Gutenberg blocks, shortco
|
|
6 |
Author URI: https://www.etoilewebdesign.com/
|
7 |
Terms and Conditions: https://www.etoilewebdesign.com/plugin-terms-and-conditions/
|
8 |
Text Domain: ultimate-faqs
|
9 |
-
Version: 2.1.
|
10 |
WC requires at least: 3.0
|
11 |
-
WC tested up to: 6.
|
12 |
*/
|
13 |
|
14 |
if ( ! defined( 'ABSPATH' ) )
|
@@ -43,7 +43,7 @@ class ewdufaqInit {
|
|
43 |
define( 'EWD_UFAQ_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
|
44 |
define( 'EWD_UFAQ_PLUGIN_FNAME', plugin_basename( __FILE__ ) );
|
45 |
define( 'EWD_UFAQ_TEMPLATE_DIR', 'ewd-ufaq-templates' );
|
46 |
-
define( 'EWD_UFAQ_VERSION', '2.1.
|
47 |
|
48 |
define( 'EWD_UFAQ_FAQ_POST_TYPE', 'ufaq' );
|
49 |
define( 'EWD_UFAQ_FAQ_CATEGORY_TAXONOMY', 'ufaq-category' );
|
6 |
Author URI: https://www.etoilewebdesign.com/
|
7 |
Terms and Conditions: https://www.etoilewebdesign.com/plugin-terms-and-conditions/
|
8 |
Text Domain: ultimate-faqs
|
9 |
+
Version: 2.1.8
|
10 |
WC requires at least: 3.0
|
11 |
+
WC tested up to: 6.1
|
12 |
*/
|
13 |
|
14 |
if ( ! defined( 'ABSPATH' ) )
|
43 |
define( 'EWD_UFAQ_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
|
44 |
define( 'EWD_UFAQ_PLUGIN_FNAME', plugin_basename( __FILE__ ) );
|
45 |
define( 'EWD_UFAQ_TEMPLATE_DIR', 'ewd-ufaq-templates' );
|
46 |
+
define( 'EWD_UFAQ_VERSION', '2.1.8' );
|
47 |
|
48 |
define( 'EWD_UFAQ_FAQ_POST_TYPE', 'ufaq' );
|
49 |
define( 'EWD_UFAQ_FAQ_CATEGORY_TAXONOMY', 'ufaq-category' );
|