Version Description
Download this release
Release Info
Developer | petervanderdoes |
Plugin | AVH Extended Categories Widgets |
Version | 4.0.6 |
Comparing to | |
See all releases |
Code changes from version 4.0.5 to 4.0.6
- 4.2/class/avh-ec.category-group.php +20 -18
- 4.2/class/avh-ec.core.php +2 -0
- readme.txt +7 -4
- widget_extended_categories.php +1 -1
4.2/class/avh-ec.category-group.php
CHANGED
@@ -40,13 +40,9 @@ class AVH_EC_Category_Group {
|
|
40 |
* Create the table if it doesn't exist.
|
41 |
*/
|
42 |
if ($wpdb->get_var('show tables like \'' . $wpdb->avhec_cat_group . '\'') != $wpdb->avhec_cat_group) {
|
43 |
-
add_action('init',
|
44 |
-
array($this, 'doCreateTable'),
|
45 |
-
2); // Priority needs to be the same as the Register Taxonomy
|
46 |
}
|
47 |
-
add_action('init',
|
48 |
-
array($this, 'doRegisterTaxonomy'),
|
49 |
-
2); // Priority for registering custom taxonomies is +1 over the creation of the initial taxonomies
|
50 |
add_action('init', array($this, 'doSetupOptions'));
|
51 |
|
52 |
add_action('admin_init', array($this, 'addMetaBoxes'));
|
@@ -198,18 +194,21 @@ class AVH_EC_Category_Group {
|
|
198 |
'delete_terms' => null,
|
199 |
'assign_terms' => 'edit_posts'
|
200 |
);
|
201 |
-
register_taxonomy($this->taxonomy_name,
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
|
|
|
|
|
|
213 |
}
|
214 |
|
215 |
/**
|
@@ -226,6 +225,9 @@ class AVH_EC_Category_Group {
|
|
226 |
array(
|
227 |
'description' => __('This group will not show the widget.', 'avh-ec')
|
228 |
));
|
|
|
|
|
|
|
229 |
|
230 |
$home_group_id = wp_insert_term('Home',
|
231 |
$this->taxonomy_name,
|
40 |
* Create the table if it doesn't exist.
|
41 |
*/
|
42 |
if ($wpdb->get_var('show tables like \'' . $wpdb->avhec_cat_group . '\'') != $wpdb->avhec_cat_group) {
|
43 |
+
add_action('init', array($this, 'doCreateTable'),0);
|
|
|
|
|
44 |
}
|
45 |
+
add_action('init', array($this, 'doRegisterTaxonomy'),0);
|
|
|
|
|
46 |
add_action('init', array($this, 'doSetupOptions'));
|
47 |
|
48 |
add_action('admin_init', array($this, 'addMetaBoxes'));
|
194 |
'delete_terms' => null,
|
195 |
'assign_terms' => 'edit_posts'
|
196 |
);
|
197 |
+
$result = register_taxonomy($this->taxonomy_name,
|
198 |
+
array('post', 'page'),
|
199 |
+
array(
|
200 |
+
'hierarchical' => true,
|
201 |
+
'labels' => $labels,
|
202 |
+
'query_var' => true,
|
203 |
+
'rewrite' => true,
|
204 |
+
'show_in_nav_menus' => false,
|
205 |
+
'public' => true,
|
206 |
+
'show_ui' => false,
|
207 |
+
'capabilities' => $caps
|
208 |
+
));
|
209 |
+
if (is_wp_error($result)) {
|
210 |
+
trigger_error($result->get_error_message(), E_USER_NOTICE);
|
211 |
+
}
|
212 |
}
|
213 |
|
214 |
/**
|
225 |
array(
|
226 |
'description' => __('This group will not show the widget.', 'avh-ec')
|
227 |
));
|
228 |
+
if (is_wp_error($none_group_id)) {
|
229 |
+
trigger_error($none_group_id->get_error_message(),E_USER_NOTICE);
|
230 |
+
}
|
231 |
|
232 |
$home_group_id = wp_insert_term('Home',
|
233 |
$this->taxonomy_name,
|
4.2/class/avh-ec.core.php
CHANGED
@@ -216,6 +216,8 @@ class AVH_EC_Core {
|
|
216 |
$this->db_options_core = 'avhec';
|
217 |
$this->db_options_tax_meta = 'avhec-tax_meta';
|
218 |
|
|
|
|
|
219 |
add_action('init', array($this, 'handleInitializePlugin'), 10);
|
220 |
}
|
221 |
|
216 |
$this->db_options_core = 'avhec';
|
217 |
$this->db_options_tax_meta = 'avhec-tax_meta';
|
218 |
|
219 |
+
AVH_EC_Singleton::getInstance('AVH_EC_Category_Group');
|
220 |
+
|
221 |
add_action('init', array($this, 'handleInitializePlugin'), 10);
|
222 |
}
|
223 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: petervanderdoes
|
|
3 |
Donate link: http://blog.avirtualhome.com/wordpress-plugins/
|
4 |
Tags: extended, categories, widget, top categories
|
5 |
Requires at least: 2.3
|
6 |
-
Tested up to: 4.5
|
7 |
-
Stable tag: 4.0.
|
8 |
|
9 |
The AVH Extended Categories Widgets gives you three widgets for displaying categories.
|
10 |
== Description ==
|
@@ -139,6 +139,9 @@ Whether Widget 2 shows Movie or Music depends on the creation order of groups. I
|
|
139 |
None
|
140 |
|
141 |
== Changelog ==
|
|
|
|
|
|
|
142 |
= Version 4.0.5 =
|
143 |
* To much comment out.
|
144 |
|
@@ -151,10 +154,10 @@ None
|
|
151 |
* Move to minified javascript
|
152 |
|
153 |
= Version 4.0.2 =
|
154 |
-
* Certain methods show notice of undefined variables.
|
155 |
|
156 |
= Version 4.0.1 =
|
157 |
-
* Post-Auth SQL Injection Vulnerability
|
158 |
Only occurs for WordPress versions lower than 3.3
|
159 |
|
160 |
= Version 4.0.0 =
|
3 |
Donate link: http://blog.avirtualhome.com/wordpress-plugins/
|
4 |
Tags: extended, categories, widget, top categories
|
5 |
Requires at least: 2.3
|
6 |
+
Tested up to: 4.5
|
7 |
+
Stable tag: 4.0.6
|
8 |
|
9 |
The AVH Extended Categories Widgets gives you three widgets for displaying categories.
|
10 |
== Description ==
|
139 |
None
|
140 |
|
141 |
== Changelog ==
|
142 |
+
= Version 4.0.6 =
|
143 |
+
* Creating the standard groups sometimes lead to an error.
|
144 |
+
|
145 |
= Version 4.0.5 =
|
146 |
* To much comment out.
|
147 |
|
154 |
* Move to minified javascript
|
155 |
|
156 |
= Version 4.0.2 =
|
157 |
+
* Certain methods show notice of undefined variables.
|
158 |
|
159 |
= Version 4.0.1 =
|
160 |
+
* Post-Auth SQL Injection Vulnerability
|
161 |
Only occurs for WordPress versions lower than 3.3
|
162 |
|
163 |
= Version 4.0.0 =
|
widget_extended_categories.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: AVH Extended Categories Widgets
|
4 |
* Plugin URI: http://blog.avirtualhome.com/wordpress-plugins
|
5 |
* Description: Replacement of the category widget to allow for greater customization of the category widget.
|
6 |
-
* Version: 4.0.
|
7 |
* Author: Peter van der Does
|
8 |
* Author URI: http://blog.avirtualhome.com/
|
9 |
* Copyright 2012-2016 Peter van der Does (email : peter@avirtualhome.com)
|
3 |
* Plugin Name: AVH Extended Categories Widgets
|
4 |
* Plugin URI: http://blog.avirtualhome.com/wordpress-plugins
|
5 |
* Description: Replacement of the category widget to allow for greater customization of the category widget.
|
6 |
+
* Version: 4.0.6
|
7 |
* Author: Peter van der Does
|
8 |
* Author URI: http://blog.avirtualhome.com/
|
9 |
* Copyright 2012-2016 Peter van der Does (email : peter@avirtualhome.com)
|