Version Description
- Bug fix: Individual taxonomy conditional fix
Download this release
Release Info
Developer | _smartik_ |
Plugin | SMK Sidebar Generator |
Version | 3.4.3 |
Comparing to | |
See all releases |
Code changes from version 3.4.2 to 3.4.3
- abstract.php +1 -1
- condition-cpt.php +3 -2
- html.php +1 -1
- readme.txt +6 -3
- render.php +1 -1
- smk-sidebar-generator.php +1 -1
abstract.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* -------------------------------------------------------------------------------------
|
6 |
* @Author: Andrew Surdu
|
7 |
* @Author URI: https://zerowp.com/
|
8 |
-
* @Copyright: (c) 2014
|
9 |
* -------------------------------------------------------------------------------------
|
10 |
*
|
11 |
*/
|
5 |
* -------------------------------------------------------------------------------------
|
6 |
* @Author: Andrew Surdu
|
7 |
* @Author URI: https://zerowp.com/
|
8 |
+
* @Copyright: (c) 2014 Andrew Surdu. All rights reserved
|
9 |
* -------------------------------------------------------------------------------------
|
10 |
*
|
11 |
*/
|
condition-cpt.php
CHANGED
@@ -100,7 +100,7 @@ class Smk_Sidebar_Generator_Condition_Cpt extends Smk_Sidebar_Generator_Conditio
|
|
100 |
// Custom Post Type
|
101 |
else{
|
102 |
if( empty($second_selection) ){
|
103 |
-
if(
|
104 |
$can = true;
|
105 |
}
|
106 |
}
|
@@ -108,7 +108,8 @@ class Smk_Sidebar_Generator_Condition_Cpt extends Smk_Sidebar_Generator_Conditio
|
|
108 |
in_array('all_archives_single', (array) $second_selection) &&
|
109 |
(
|
110 |
is_singular( $first_selection ) ||
|
111 |
-
is_post_type_archive( $first_selection )
|
|
|
112 |
)
|
113 |
){
|
114 |
$can = true;
|
100 |
// Custom Post Type
|
101 |
else{
|
102 |
if( empty($second_selection) ){
|
103 |
+
if (is_singular($first_selection) || is_post_type_archive($first_selection) || is_tax(get_object_taxonomies($first_selection))) {
|
104 |
$can = true;
|
105 |
}
|
106 |
}
|
108 |
in_array('all_archives_single', (array) $second_selection) &&
|
109 |
(
|
110 |
is_singular( $first_selection ) ||
|
111 |
+
is_post_type_archive( $first_selection ) ||
|
112 |
+
is_tax(get_object_taxonomies($first_selection))
|
113 |
)
|
114 |
){
|
115 |
$can = true;
|
html.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* -------------------------------------------------------------------------------------
|
8 |
* @Author: Andrew Surdu
|
9 |
* @Author URI: https://zerowp.com/
|
10 |
-
* @Copyright: (c) 2014
|
11 |
* -------------------------------------------------------------------------------------
|
12 |
*
|
13 |
*/
|
7 |
* -------------------------------------------------------------------------------------
|
8 |
* @Author: Andrew Surdu
|
9 |
* @Author URI: https://zerowp.com/
|
10 |
+
* @Copyright: (c) 2014 Andrew Surdu. All rights reserved
|
11 |
* -------------------------------------------------------------------------------------
|
12 |
*
|
13 |
*/
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: _smartik_
|
|
3 |
Tags: sidebar, widget, generator, custom, unlimited
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 5.7
|
6 |
-
Stable tag: 3.4.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -62,8 +62,11 @@ Display a sidebar using built-in shortcode:
|
|
62 |
|
63 |
== Changelog ==
|
64 |
|
65 |
-
= 3.4.
|
66 |
-
* Bug fix:
|
|
|
|
|
|
|
67 |
|
68 |
= 3.4.0 =
|
69 |
* Fix: Incorrect conditional replacement.
|
3 |
Tags: sidebar, widget, generator, custom, unlimited
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 5.7
|
6 |
+
Stable tag: 3.4.3
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
62 |
|
63 |
== Changelog ==
|
64 |
|
65 |
+
= 3.4.3 =
|
66 |
+
* Bug fix: Individual taxonomy conditional fix
|
67 |
+
|
68 |
+
= 3.4.2 =
|
69 |
+
* Bug fix: WP 5.7 compatibility
|
70 |
|
71 |
= 3.4.0 =
|
72 |
* Fix: Incorrect conditional replacement.
|
render.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* -------------------------------------------------------------------------------------
|
6 |
* @Author: Andrew Surdu
|
7 |
* @Author URI: https://zerowp.com/
|
8 |
-
* @Copyright: (c) 2014
|
9 |
* -------------------------------------------------------------------------------------
|
10 |
*
|
11 |
*/
|
5 |
* -------------------------------------------------------------------------------------
|
6 |
* @Author: Andrew Surdu
|
7 |
* @Author URI: https://zerowp.com/
|
8 |
+
* @Copyright: (c) 2014 Andrew Surdu. All rights reserved
|
9 |
* -------------------------------------------------------------------------------------
|
10 |
*
|
11 |
*/
|
smk-sidebar-generator.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://zerowp.com/sidebar-generator
|
5 |
* Description: Generate an unlimited number of sidebars and assign them to any page using the conditional options without touching a single line of code.
|
6 |
* Author: Andrew Surdu
|
7 |
-
* Version: 3.4.
|
8 |
* Author URI: https://zerowp.com
|
9 |
* Licence: GPLv2
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
4 |
* Plugin URI: https://zerowp.com/sidebar-generator
|
5 |
* Description: Generate an unlimited number of sidebars and assign them to any page using the conditional options without touching a single line of code.
|
6 |
* Author: Andrew Surdu
|
7 |
+
* Version: 3.4.3
|
8 |
* Author URI: https://zerowp.com
|
9 |
* Licence: GPLv2
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|