Version Description
(2021-04-14) = - Fix for the plugin deactivating when updating from pre-2.0.0
Download this release
Release Info
Developer | Rustaurius |
Plugin | Ultimate FAQ |
Version | 2.0.6 |
Comparing to | |
See all releases |
Code changes from version 2.0.5 to 2.0.6
- Main.php +17 -0
- includes/Query.class.php +8 -8
- readme.txt +3 -0
- ultimate-faqs.php +1 -1
Main.php
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Ultimate FAQs
|
4 |
+
Plugin URI: http://www.EtoileWebDesign.com/plugins/ultimate-faqs/
|
5 |
+
Description: Easily create and add FAQs to your WordPress site with a Gutenberg block, shortcode or widget. Includes FAQ schema, search, accordion toggle and more.
|
6 |
+
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.6
|
11 |
+
*/
|
12 |
+
|
13 |
+
//Main file has been re-named, so activate that instead and then exit
|
14 |
+
|
15 |
+
activate_plugin( 'ultimate-faqs/ultimate-faqs.php' );
|
16 |
+
|
17 |
+
deactivate_plugins( 'ultimate-faqs/Main.php' );
|
includes/Query.class.php
CHANGED
@@ -13,7 +13,7 @@ if ( !class_exists( 'ewdufaqQuery' ) ) {
|
|
13 |
*
|
14 |
* Queries return an array of ewdufaqReview objects.
|
15 |
*
|
16 |
-
* @since
|
17 |
*/
|
18 |
class ewdufaqQuery {
|
19 |
|
@@ -22,7 +22,7 @@ class ewdufaqQuery {
|
|
22 |
*
|
23 |
* Array of faqs retrieved after get_faqs() is called
|
24 |
*
|
25 |
-
* @since
|
26 |
*/
|
27 |
public $faqs = array();
|
28 |
|
@@ -32,7 +32,7 @@ class ewdufaqQuery {
|
|
32 |
* Passed to WP_Query
|
33 |
* http://codex.wordpress.org/Class_Reference/WP_Query
|
34 |
*
|
35 |
-
* @since
|
36 |
*/
|
37 |
public $args = array();
|
38 |
|
@@ -43,7 +43,7 @@ class ewdufaqQuery {
|
|
43 |
* Useful for hooking into the right query without
|
44 |
* tampering with others.
|
45 |
*
|
46 |
-
* @since
|
47 |
*/
|
48 |
public $context;
|
49 |
|
@@ -62,7 +62,7 @@ class ewdufaqQuery {
|
|
62 |
* @param args array Options to tailor the query
|
63 |
* @param context string Context for the query, used
|
64 |
* in filters
|
65 |
-
* @since
|
66 |
*/
|
67 |
public function __construct( $args = array(), $context = '' ) {
|
68 |
|
@@ -70,7 +70,7 @@ class ewdufaqQuery {
|
|
70 |
|
71 |
$defaults = array(
|
72 |
'post_type' => EWD_UFAQ_FAQ_POST_TYPE,
|
73 |
-
|
74 |
'post_status' => 'publish',
|
75 |
'order' => 'DESC',
|
76 |
'paged' => 1,
|
@@ -86,7 +86,7 @@ class ewdufaqQuery {
|
|
86 |
* Parse the args array and convert custom arguments
|
87 |
* for use by WP_Query
|
88 |
*
|
89 |
-
* @since
|
90 |
*/
|
91 |
public function prepare_args() {
|
92 |
global $ewd_ufaq_controller;
|
@@ -212,7 +212,7 @@ class ewdufaqQuery {
|
|
212 |
/**
|
213 |
* Parse $_REQUEST args and store in $this->args
|
214 |
*
|
215 |
-
* @since
|
216 |
*/
|
217 |
public function parse_request_args() {
|
218 |
|
13 |
*
|
14 |
* Queries return an array of ewdufaqReview objects.
|
15 |
*
|
16 |
+
* @since 2.0.0
|
17 |
*/
|
18 |
class ewdufaqQuery {
|
19 |
|
22 |
*
|
23 |
* Array of faqs retrieved after get_faqs() is called
|
24 |
*
|
25 |
+
* @since 2.0.0
|
26 |
*/
|
27 |
public $faqs = array();
|
28 |
|
32 |
* Passed to WP_Query
|
33 |
* http://codex.wordpress.org/Class_Reference/WP_Query
|
34 |
*
|
35 |
+
* @since 2.0.0
|
36 |
*/
|
37 |
public $args = array();
|
38 |
|
43 |
* Useful for hooking into the right query without
|
44 |
* tampering with others.
|
45 |
*
|
46 |
+
* @since 2.0.0
|
47 |
*/
|
48 |
public $context;
|
49 |
|
62 |
* @param args array Options to tailor the query
|
63 |
* @param context string Context for the query, used
|
64 |
* in filters
|
65 |
+
* @since 2.0.0
|
66 |
*/
|
67 |
public function __construct( $args = array(), $context = '' ) {
|
68 |
|
70 |
|
71 |
$defaults = array(
|
72 |
'post_type' => EWD_UFAQ_FAQ_POST_TYPE,
|
73 |
+
'posts_per_page' => -1,
|
74 |
'post_status' => 'publish',
|
75 |
'order' => 'DESC',
|
76 |
'paged' => 1,
|
86 |
* Parse the args array and convert custom arguments
|
87 |
* for use by WP_Query
|
88 |
*
|
89 |
+
* @since 2.0.0
|
90 |
*/
|
91 |
public function prepare_args() {
|
92 |
global $ewd_ufaq_controller;
|
212 |
/**
|
213 |
* Parse $_REQUEST args and store in $this->args
|
214 |
*
|
215 |
+
* @since 2.0.0
|
216 |
*/
|
217 |
public function parse_request_args() {
|
218 |
|
readme.txt
CHANGED
@@ -264,6 +264,9 @@ Video 3 - FAQs Ordering
|
|
264 |
|
265 |
== Changelog ==
|
266 |
|
|
|
|
|
|
|
267 |
= 2.0.5 (2021-04-13) =
|
268 |
- Fixed an issue where, when a single FAQ is linked to, the plugin was no longer scrolling to it.
|
269 |
- Fixed incorrect path for loading plugin text domain.
|
264 |
|
265 |
== Changelog ==
|
266 |
|
267 |
+
= 2.0.6 (2021-04-14) =
|
268 |
+
- Fix for the plugin deactivating when updating from pre-2.0.0
|
269 |
+
|
270 |
= 2.0.5 (2021-04-13) =
|
271 |
- Fixed an issue where, when a single FAQ is linked to, the plugin was no longer scrolling to it.
|
272 |
- Fixed incorrect path for loading plugin text domain.
|
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.
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) )
|
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.6
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) )
|