Ultimate FAQ - Version 2.0.20

Version Description

(2021-07-21) = - Updating a condition to account for a possible notice create by a rare use of the_content filter.

Download this release

Release Info

Developer Rustaurius
Plugin Icon 128x128 Ultimate FAQ
Version 2.0.20
Comparing to
See all releases

Code changes from version 2.0.19 to 2.0.20

Files changed (2) hide show
  1. readme.txt +4 -1
  2. ultimate-faqs.php +3 -1
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: Rustaurius, EtoileWebDesign
3
  Tags: FAQ, WooCommerce faq, faqs, faq list, accordion faq, gutenberg faq, faq block, toggle faqs, filtered faqs, grouped faqs, faq order, faq sorting
4
  Requires at least: 5.0
5
- Tested up to: 5.7
6
  License: GPLv3
7
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
8
 
@@ -264,6 +264,9 @@ Video 3 - FAQs Ordering
264
 
265
  == Changelog ==
266
 
 
 
 
267
  = 2.0.19 (2021-06-24) =
268
  - Fixed an issue in which FAQs that were imported would not display on the front end until manually updated.
269
 
2
  Contributors: Rustaurius, EtoileWebDesign
3
  Tags: FAQ, WooCommerce faq, faqs, faq list, accordion faq, gutenberg faq, faq block, toggle faqs, filtered faqs, grouped faqs, faq order, faq sorting
4
  Requires at least: 5.0
5
+ Tested up to: 5.8
6
  License: GPLv3
7
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
8
 
264
 
265
  == Changelog ==
266
 
267
+ = 2.0.20 (2021-07-21) =
268
+ - Updating a condition to account for a possible notice create by a rare use of the_content filter.
269
+
270
  = 2.0.19 (2021-06-24) =
271
  - Fixed an issue in which FAQs that were imported would not display on the front end until manually updated.
272
 
ultimate-faqs.php CHANGED
@@ -7,7 +7,7 @@ Author: Etoile Web Design
7
  Author URI: http://www.EtoileWebDesign.com/plugins/ultimate-faqs/
8
  Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
  Text Domain: ultimate-faqs
10
- Version: 2.0.19
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) )
@@ -329,6 +329,8 @@ class ewdufaqInit {
329
  public function alter_faq_content( $content ) {
330
  global $post, $ewd_ufaq_controller;
331
 
 
 
332
  if ( $post->post_type != EWD_UFAQ_FAQ_POST_TYPE ) { return $content; }
333
 
334
  if ( ! empty( $ewd_ufaq_controller->shortcode_printing ) ) { return $content; }
7
  Author URI: http://www.EtoileWebDesign.com/plugins/ultimate-faqs/
8
  Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
  Text Domain: ultimate-faqs
10
+ Version: 2.0.20
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) )
329
  public function alter_faq_content( $content ) {
330
  global $post, $ewd_ufaq_controller;
331
 
332
+ if ( empty( $post ) ) { return $content; }
333
+
334
  if ( $post->post_type != EWD_UFAQ_FAQ_POST_TYPE ) { return $content; }
335
 
336
  if ( ! empty( $ewd_ufaq_controller->shortcode_printing ) ) { return $content; }