Commit 51f32fcc authored by lechuck's avatar lechuck Committed by lechuck

Upgrade extended-categories-widget to 3.6.7

parent d3b662af
......@@ -27,7 +27,7 @@ class AVH_EC_Core
*/
$catgrp = & AVH_EC_Singleton::getInstance('AVH_EC_Category_Group');
$this->version = '3.6.4';
$this->version = '3.6.7';
$this->comment = '<!-- AVH Extended Categories version ' . $this->version . ' | http://blog.avirtualhome.com/wordpress-plugins/ -->';
$this->db_options_core = 'avhec';
$this->db_options_tax_meta = 'avhec-tax_meta';
......
......@@ -1136,7 +1136,7 @@ class AVH_EC_Admin
*/
function filterManageCategoriesGroupColumns ($columns)
{
$categories_group_columns = array ( 'name' => __('Name', 'avh-ec'), 'slug' => 'Slug', 'widget-title' => __('Widget Title', 'avh-ec'), 'description' => __('Description', 'avh-ec'), 'cat-in-group' => __('Categories in the group', 'avh-ec') );
$categories_group_columns = array ( 'name' => __('Name', 'avh-ec'), 'slug' => __('Slug', 'avh-ec'), 'widget-title' => __('Widget Title', 'avh-ec'), 'description' => __('Description', 'avh-ec'), 'cat-in-group' => __('Categories in the group', 'avh-ec') );
return $categories_group_columns;
}
......
......@@ -283,8 +283,8 @@ class AVH_EC_Category_Group
*/
function doDeleteWidgetTitle ($group_id)
{
if (isset($this->db_options_widget_titles[$group_id])) {
unset($this->db_options_widget_titles[$group_id]);
if (isset($this->options_widget_titles[$group_id])) {
unset($this->options_widget_titles[$group_id]);
}
update_option($this->db_options_widget_titles, $this->options_widget_titles);
}
......@@ -408,4 +408,4 @@ class AVH_EC_Category_Group
$result = $wpdb->query($wpdb->prepare('DELETE FROM ' . $wpdb->avhec_cat_group . ' WHERE term_id=%d', $category_id));
}
}
?>
\ No newline at end of file
?>
......@@ -27,7 +27,7 @@ class AVH_EC_Core
*/
$catgrp = & AVH_EC_Singleton::getInstance('AVH_EC_Category_Group');
$this->version = '3.6.4';
$this->version = '3.6.7';
$this->comment = '<!-- AVH Extended Categories version ' . $this->version . ' | http://blog.avirtualhome.com/wordpress-plugins/ -->';
$this->db_options_core = 'avhec';
$this->db_options_tax_meta = 'avhec-tax_meta';
......
......@@ -16,13 +16,13 @@ if (! class_exists('AVH_DB')) {
public function getFieldNames ($table = '')
{
global $wpdb;
$retval = wp_cache_get('field_names_' . $table, 'avhec');
if (false === $retval) {
$sql = $this->_getQueryShowColumns($table);
$result = $wpdb->get_results($sql, ARRAY_A);
$retval = array ();
foreach ($result as $row) {
if (isset($row['Field'])) {
......@@ -31,7 +31,7 @@ if (! class_exists('AVH_DB')) {
}
wp_cache_set('field_names_' . $table, $retval,'avhec',3600);
}
return $retval;
}
......@@ -59,8 +59,7 @@ if (! class_exists('AVH_DB')) {
private function _getQueryShowColumns ($table = '')
{
global $wpdb;
return $wpdb->prepare('SHOW COLUMNS FROM ' . $table);
return 'SHOW COLUMNS FROM '.$table;
}
}
}
......
......@@ -3,8 +3,8 @@ Contributors: petervanderdoes
Donate link: http://blog.avirtualhome.com/wordpress-plugins/
Tags: extended, categories, widget, top categories
Requires at least: 2.3
Tested up to: 3.3
Stable tag: 3.6.4
Tested up to: 3.5
Stable tag: 3.6.7
The AVH Extended Categories Widgets gives you three widgets for displaying categories.
== Description ==
......@@ -65,6 +65,7 @@ Translations:
* Dutch - Nederlands (nl_NL)
* German - Deutsch (de_DE)
* Greek (el)
* French - Français (fr_FR)
* Indonesian - Bahasa Indonesia (id_ID)
* Italian - Italiano (it_IT)
* Russian — Русский (ru_RU)
......@@ -134,6 +135,17 @@ Whether Widget 2 shows Movie or Music depends on the creation order of groups. I
None
== Changelog ==
= Version 3.6.7 =
* Fix error in SQL syntax
= Version 3.6.6 =
* Missed a translatable string.
* Add French translation.
* Fix for WordPress 3.5
= Version 3.6.5 =
* Bugfix: Can not delete category groups
= Version 3.6.4 =
* Bugfix: Problem with categories not showing up when showing dropdown categories.
......
......@@ -3,7 +3,7 @@
Plugin Name: AVH Extended Categories Widgets
Plugin URI: http://blog.avirtualhome.com/wordpress-plugins
Description: Replacement of the category widget to allow for greater customization of the category widget.
Version: 3.6.4
Version: 3.6.7
Author: Peter van der Does
Author URI: http://blog.avirtualhome.com/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment