Ultimate FAQ - Version 1.8.11

Version Description

  • Corrected issue with Gutenberg blocks not displaying in new WordPress 5.0
Download this release

Release Info

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

Code changes from version 1.8.10 to 1.8.11

Main.php CHANGED
@@ -7,7 +7,7 @@ Author: Etoile Web Design
7
  Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
8
  Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
  Text Domain: ultimate-faqs
10
- Version: 1.8.10
11
  */
12
 
13
  global $ewd_ufaq_message;
@@ -353,6 +353,7 @@ function UFAQ_Post_Edit_Styles( $hook_suffix ){
353
  }
354
  add_action('admin_enqueue_scripts', 'UFAQ_Post_Edit_Styles');
355
 
 
356
  include "Functions/Error_Notices.php";
357
  include "Functions/EWD_UFAQ_Add_Social_Media_Buttons.php";
358
  include "Functions/EWD_UFAQ_Add_Views_Column.php";
7
  Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
8
  Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
  Text Domain: ultimate-faqs
10
+ Version: 1.8.11
11
  */
12
 
13
  global $ewd_ufaq_message;
353
  }
354
  add_action('admin_enqueue_scripts', 'UFAQ_Post_Edit_Styles');
355
 
356
+ include "blocks/ewd-ufaq-blocks.php";
357
  include "Functions/Error_Notices.php";
358
  include "Functions/EWD_UFAQ_Add_Social_Media_Buttons.php";
359
  include "Functions/EWD_UFAQ_Add_Views_Column.php";
Shortcodes/DisplayFAQs.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  function UFAQ_Display_FAQs_Block() {
3
- if(function_exists('the_gutenberg_project')){
4
  wp_register_script( 'ewd-ufaq-blocks-js', plugins_url( '../blocks/ewd-ufaq-blocks.js', __FILE__ ), array( 'wp-blocks', 'wp-element', 'wp-components', 'wp-editor' ) );
5
  wp_register_style( 'ewd-ufaq-blocks-css', plugins_url( '../blocks/ewd-ufaq-blocks.css', __FILE__ ), array( 'wp-edit-blocks' ), filemtime( plugin_dir_path( __FILE__ ) . '../blocks/ewd-ufaq-blocks.css' ) );
6
  register_block_type( 'ultimate-faqs/ewd-ufaq-display-faq-block', array(
1
  <?php
2
  function UFAQ_Display_FAQs_Block() {
3
+ if(function_exists('render_block_core_block')){
4
  wp_register_script( 'ewd-ufaq-blocks-js', plugins_url( '../blocks/ewd-ufaq-blocks.js', __FILE__ ), array( 'wp-blocks', 'wp-element', 'wp-components', 'wp-editor' ) );
5
  wp_register_style( 'ewd-ufaq-blocks-css', plugins_url( '../blocks/ewd-ufaq-blocks.css', __FILE__ ), array( 'wp-edit-blocks' ), filemtime( plugin_dir_path( __FILE__ ) . '../blocks/ewd-ufaq-blocks.css' ) );
6
  register_block_type( 'ultimate-faqs/ewd-ufaq-display-faq-block', array(
Shortcodes/Display_FAQ_Search.php CHANGED
@@ -66,7 +66,7 @@ function UFAQ_AJAX_Search($atts) {
66
  return $ReturnString;
67
  }
68
  function UFAQ_Search_FAQs_Block() {
69
- if(function_exists('the_gutenberg_project')){
70
  wp_register_script( 'ewd-ufaq-blocks-js', plugins_url( '../blocks/ewd-ufaq-blocks.js', __FILE__ ), array( 'wp-blocks', 'wp-element', 'wp-components', 'wp-editor' ) );
71
  wp_register_style( 'ewd-ufaq-blocks-css', plugins_url( '../blocks/ewd-ufaq-blocks.css', __FILE__ ), array( 'wp-edit-blocks' ), filemtime( plugin_dir_path( __FILE__ ) . '../blocks/ewd-ufaq-blocks.css' ) );
72
  register_block_type( 'ultimate-faqs/ewd-ufaq-search-block', array(
66
  return $ReturnString;
67
  }
68
  function UFAQ_Search_FAQs_Block() {
69
+ if(function_exists('render_block_core_block')){
70
  wp_register_script( 'ewd-ufaq-blocks-js', plugins_url( '../blocks/ewd-ufaq-blocks.js', __FILE__ ), array( 'wp-blocks', 'wp-element', 'wp-components', 'wp-editor' ) );
71
  wp_register_style( 'ewd-ufaq-blocks-css', plugins_url( '../blocks/ewd-ufaq-blocks.css', __FILE__ ), array( 'wp-edit-blocks' ), filemtime( plugin_dir_path( __FILE__ ) . '../blocks/ewd-ufaq-blocks.css' ) );
72
  register_block_type( 'ultimate-faqs/ewd-ufaq-search-block', array(
Shortcodes/Display_Popular_FAQs.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  function UFAQ_Popular_FAQs_Block() {
3
- if(function_exists('the_gutenberg_project')){
4
  wp_register_script( 'ewd-ufaq-blocks-js', plugins_url( '../blocks/ewd-ufaq-blocks.js', __FILE__ ), array( 'wp-blocks', 'wp-element', 'wp-components', 'wp-editor' ) );
5
  wp_register_style( 'ewd-ufaq-blocks-css', plugins_url( '../blocks/ewd-ufaq-blocks.css', __FILE__ ), array( 'wp-edit-blocks' ), filemtime( plugin_dir_path( __FILE__ ) . '../blocks/ewd-ufaq-blocks.css' ) );
6
  register_block_type( 'ultimate-faqs/ewd-ufaq-popular-faqs-block', array(
1
  <?php
2
  function UFAQ_Popular_FAQs_Block() {
3
+ if(function_exists('render_block_core_block')){
4
  wp_register_script( 'ewd-ufaq-blocks-js', plugins_url( '../blocks/ewd-ufaq-blocks.js', __FILE__ ), array( 'wp-blocks', 'wp-element', 'wp-components', 'wp-editor' ) );
5
  wp_register_style( 'ewd-ufaq-blocks-css', plugins_url( '../blocks/ewd-ufaq-blocks.css', __FILE__ ), array( 'wp-edit-blocks' ), filemtime( plugin_dir_path( __FILE__ ) . '../blocks/ewd-ufaq-blocks.css' ) );
6
  register_block_type( 'ultimate-faqs/ewd-ufaq-popular-faqs-block', array(
Shortcodes/Display_Recent_FAQs.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  function UFAQ_Recent_FAQs_Block() {
3
- if(function_exists('the_gutenberg_project')){
4
  wp_register_script( 'ewd-ufaq-blocks-js', plugins_url( '../blocks/ewd-ufaq-blocks.js', __FILE__ ), array( 'wp-blocks', 'wp-element', 'wp-components', 'wp-editor' ) );
5
  wp_register_style( 'ewd-ufaq-blocks-css', plugins_url( '../blocks/ewd-ufaq-blocks.css', __FILE__ ), array( 'wp-edit-blocks' ), filemtime( plugin_dir_path( __FILE__ ) . '../blocks/ewd-ufaq-blocks.css' ) );
6
  register_block_type( 'ultimate-faqs/ewd-ufaq-recent-faqs-block', array(
1
  <?php
2
  function UFAQ_Recent_FAQs_Block() {
3
+ if(function_exists('render_block_core_block')){
4
  wp_register_script( 'ewd-ufaq-blocks-js', plugins_url( '../blocks/ewd-ufaq-blocks.js', __FILE__ ), array( 'wp-blocks', 'wp-element', 'wp-components', 'wp-editor' ) );
5
  wp_register_style( 'ewd-ufaq-blocks-css', plugins_url( '../blocks/ewd-ufaq-blocks.css', __FILE__ ), array( 'wp-edit-blocks' ), filemtime( plugin_dir_path( __FILE__ ) . '../blocks/ewd-ufaq-blocks.css' ) );
6
  register_block_type( 'ultimate-faqs/ewd-ufaq-recent-faqs-block', array(
Shortcodes/SubmitFAQ.php CHANGED
@@ -152,7 +152,7 @@ function Insert_Question_Form($atts) {
152
  return $ReturnString;
153
  }
154
  function UFAQ_Submit_FAQ_Block() {
155
- if(function_exists('the_gutenberg_project')){
156
  wp_register_script( 'ewd-ufaq-blocks-js', plugins_url( '../blocks/ewd-ufaq-blocks.js', __FILE__ ), array( 'wp-blocks', 'wp-element', 'wp-components', 'wp-editor' ) );
157
  wp_register_style( 'ewd-ufaq-blocks-css', plugins_url( '../blocks/ewd-ufaq-blocks.css', __FILE__ ), array( 'wp-edit-blocks' ), filemtime( plugin_dir_path( __FILE__ ) . '../blocks/ewd-ufaq-blocks.css' ) );
158
  register_block_type( 'ultimate-faqs/ewd-ufaq-submit-faq-block', array(
152
  return $ReturnString;
153
  }
154
  function UFAQ_Submit_FAQ_Block() {
155
+ if(function_exists('render_block_core_block')){
156
  wp_register_script( 'ewd-ufaq-blocks-js', plugins_url( '../blocks/ewd-ufaq-blocks.js', __FILE__ ), array( 'wp-blocks', 'wp-element', 'wp-components', 'wp-editor' ) );
157
  wp_register_style( 'ewd-ufaq-blocks-css', plugins_url( '../blocks/ewd-ufaq-blocks.css', __FILE__ ), array( 'wp-edit-blocks' ), filemtime( plugin_dir_path( __FILE__ ) . '../blocks/ewd-ufaq-blocks.css' ) );
158
  register_block_type( 'ultimate-faqs/ewd-ufaq-submit-faq-block', array(
blocks/ewd-ufaq-blocks.js CHANGED
@@ -7,7 +7,7 @@ var el = wp.element.createElement,
7
  registerBlockType( 'ultimate-faqs/ewd-ufaq-display-faq-block', {
8
  title: 'Display FAQs',
9
  icon: 'editor-help',
10
- category: 'widgets',
11
  attributes: {
12
  post_count: { type: 'string' },
13
  include_category: { type: 'string' },
@@ -47,7 +47,7 @@ registerBlockType( 'ultimate-faqs/ewd-ufaq-display-faq-block', {
47
  registerBlockType( 'ultimate-faqs/ewd-ufaq-search-block', {
48
  title: 'Search FAQs',
49
  icon: 'editor-help',
50
- category: 'widgets',
51
  attributes: {
52
  include_category: { type: 'string' },
53
  exclude_category: { type: 'string' },
@@ -87,7 +87,7 @@ registerBlockType( 'ultimate-faqs/ewd-ufaq-search-block', {
87
  registerBlockType( 'ultimate-faqs/ewd-ufaq-submit-faq-block', {
88
  title: 'Submit FAQ',
89
  icon: 'editor-help',
90
- category: 'widgets',
91
  attributes: {
92
  },
93
 
@@ -105,7 +105,7 @@ registerBlockType( 'ultimate-faqs/ewd-ufaq-submit-faq-block', {
105
  registerBlockType( 'ultimate-faqs/ewd-ufaq-recent-faqs-block', {
106
  title: 'Recent FAQs',
107
  icon: 'editor-help',
108
- category: 'widgets',
109
  attributes: {
110
  post_count: { type: 'string' },
111
  },
@@ -133,7 +133,7 @@ registerBlockType( 'ultimate-faqs/ewd-ufaq-recent-faqs-block', {
133
  registerBlockType( 'ultimate-faqs/ewd-ufaq-popular-faqs-block', {
134
  title: 'Popular FAQs',
135
  icon: 'editor-help',
136
- category: 'widgets',
137
  attributes: {
138
  post_count: { type: 'string' },
139
  },
7
  registerBlockType( 'ultimate-faqs/ewd-ufaq-display-faq-block', {
8
  title: 'Display FAQs',
9
  icon: 'editor-help',
10
+ category: 'ewd-ufaq-blocks',
11
  attributes: {
12
  post_count: { type: 'string' },
13
  include_category: { type: 'string' },
47
  registerBlockType( 'ultimate-faqs/ewd-ufaq-search-block', {
48
  title: 'Search FAQs',
49
  icon: 'editor-help',
50
+ category: 'ewd-ufaq-blocks',
51
  attributes: {
52
  include_category: { type: 'string' },
53
  exclude_category: { type: 'string' },
87
  registerBlockType( 'ultimate-faqs/ewd-ufaq-submit-faq-block', {
88
  title: 'Submit FAQ',
89
  icon: 'editor-help',
90
+ category: 'ewd-ufaq-blocks',
91
  attributes: {
92
  },
93
 
105
  registerBlockType( 'ultimate-faqs/ewd-ufaq-recent-faqs-block', {
106
  title: 'Recent FAQs',
107
  icon: 'editor-help',
108
+ category: 'ewd-ufaq-blocks',
109
  attributes: {
110
  post_count: { type: 'string' },
111
  },
133
  registerBlockType( 'ultimate-faqs/ewd-ufaq-popular-faqs-block', {
134
  title: 'Popular FAQs',
135
  icon: 'editor-help',
136
+ category: 'ewd-ufaq-blocks',
137
  attributes: {
138
  post_count: { type: 'string' },
139
  },
blocks/ewd-ufaq-blocks.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ add_filter( 'block_categories', 'ewd_ufaq_add_block_category' );
3
+ function ewd_ufaq_add_block_category( $categories ) {
4
+ $categories[] = array(
5
+ 'slug' => 'ewd-ufaq-blocks',
6
+ 'title' => __( 'Ultimate FAQs', 'ultimate-faqs' ),
7
+ );
8
+ return $categories;
9
+ }
10
+
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: Rustaurius, EtoileWebDesign
3
  Tags: faq, faqs, woocommerce faq, frequently asked questions, faq widget
4
  Requires at least: 3.9.0
5
- Tested up to: 4.9
6
  License: GPLv3
7
  License URI:http://www.gnu.org/licenses/gpl-3.0.html
8
 
@@ -14,6 +14,10 @@ FAQ plugin that lets you create, organize and publicize your FAQs (frequently as
14
 
15
  [FAQ Demo](https://www.etoilewebdesign.com/ultimate-faq-demo/)
16
 
 
 
 
 
17
  = FAQ Key Features =
18
  * Unlimited FAQs, with unlimited tag and category support
19
  * Create FAQ categories
@@ -270,6 +274,9 @@ Video 3 - FAQs Ordering
270
 
271
 
272
  == Changelog ==
 
 
 
273
  = 1.8.10 =
274
  - Updated enqueued JS version number to help with any issues related to the frequency of the request for feedback
275
 
2
  Contributors: Rustaurius, EtoileWebDesign
3
  Tags: faq, faqs, woocommerce faq, frequently asked questions, faq widget
4
  Requires at least: 3.9.0
5
+ Tested up to: 5.0
6
  License: GPLv3
7
  License URI:http://www.gnu.org/licenses/gpl-3.0.html
8
 
14
 
15
  [FAQ Demo](https://www.etoilewebdesign.com/ultimate-faq-demo/)
16
 
17
+ <strong>Tested with WordPress 5.0!</strong>
18
+
19
+ <strong>New Gutenberg blocks included for displaying FAQs as well as for the search and submit form!</strong>
20
+
21
  = FAQ Key Features =
22
  * Unlimited FAQs, with unlimited tag and category support
23
  * Create FAQ categories
274
 
275
 
276
  == Changelog ==
277
+ = 1.8.11 =
278
+ - Corrected issue with Gutenberg blocks not displaying in new WordPress 5.0
279
+
280
  = 1.8.10 =
281
  - Updated enqueued JS version number to help with any issues related to the frequency of the request for feedback
282