Rich Text Tags - Version 1.3.2

Version Description

  • Fixed "Attempt to assign property of non-object error" as reported by chp2009
Download this release

Release Info

Developer katzwebdesign
Plugin Icon 128x128 Rich Text Tags
Version 1.3.2
Comparing to
See all releases

Code changes from version 1.3.1 to 1.3.2

Files changed (2) hide show
  1. readme.txt +9 -0
  2. rich-text-tags.php +7 -3
readme.txt CHANGED
@@ -35,6 +35,9 @@ Use the PHP functions `tag_description()` and `category_description()` in your t
35
 
36
  == Upgrade Notice ==
37
 
 
 
 
38
  = 1.3.1 =
39
  * Shortened term description in the Edit page so the table doesn't get too long (good idea, <a href="http://uniondesign.ca/" rel="nofollow">DL</a>). You can modify the length with the `term_excerpt_length` <a href="http://codex.wordpress.org/Plugin_API#Filters" rel="nofollow">filter</a>.
40
 
@@ -56,6 +59,12 @@ Use the PHP functions `tag_description()` and `category_description()` in your t
56
 
57
  == Changelog ==
58
 
 
 
 
 
 
 
59
  = 1.3 =
60
  * Added support for NextGen Gallery
61
  * Improved Media Buttons support by gathering up stray link buttons
35
 
36
  == Upgrade Notice ==
37
 
38
+ = 1.3.2 =
39
+ * Fixed "Attempt to assign property of non-object error" <a href="http://wordpress.org/support/topic/plugin-rich-text-tags-error-after-upgrading" rel="nofollow">as reported by chp2009</a>
40
+
41
  = 1.3.1 =
42
  * Shortened term description in the Edit page so the table doesn't get too long (good idea, <a href="http://uniondesign.ca/" rel="nofollow">DL</a>). You can modify the length with the `term_excerpt_length` <a href="http://codex.wordpress.org/Plugin_API#Filters" rel="nofollow">filter</a>.
43
 
59
 
60
  == Changelog ==
61
 
62
+ = 1.3.2 =
63
+ * Fixed "Attempt to assign property of non-object error" <a href="http://wordpress.org/support/topic/plugin-rich-text-tags-error-after-upgrading" rel="nofollow">as reported by chp2009</a>
64
+
65
+ = 1.3.1 =
66
+ * Shortened term description in the Edit page so the table doesn't get too long (good idea, <a href="http://uniondesign.ca/" rel="nofollow">DL</a>). You can modify the length with the `term_excerpt_length` <a href="http://codex.wordpress.org/Plugin_API#Filters" rel="nofollow">filter</a>.
67
+
68
  = 1.3 =
69
  * Added support for NextGen Gallery
70
  * Improved Media Buttons support by gathering up stray link buttons
rich-text-tags.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Rich Text Tags, Categories, and Taxonomies
4
  Plugin URI: http://www.seodenver.com/rich-text-tags/
5
  Description: This plugin offers rich text editing capabilities for descriptions of tags, categories, and taxonomies.
6
  Author: Katz Web Services, Inc.
7
- Version: 1.3.1
8
  Author URI: http://www.katzwebservices.com
9
  */
10
  /*
@@ -95,9 +95,13 @@ function kws_rich_text_tags() {
95
  return apply_filters('wp_trim_term_excerpt', force_balance_tags($text), $raw_excerpt);
96
  }
97
 
98
- function kws_shorten_term_description($terms, $taxonomies = null, $args = array()) {
 
99
  foreach($terms as $key=>$term) {
100
- $term->description = kws_wp_trim_excerpt($term->description);
 
 
 
101
  }
102
  return $terms;
103
  }
4
  Plugin URI: http://www.seodenver.com/rich-text-tags/
5
  Description: This plugin offers rich text editing capabilities for descriptions of tags, categories, and taxonomies.
6
  Author: Katz Web Services, Inc.
7
+ Version: 1.3.2
8
  Author URI: http://www.katzwebservices.com
9
  */
10
  /*
95
  return apply_filters('wp_trim_term_excerpt', force_balance_tags($text), $raw_excerpt);
96
  }
97
 
98
+ function kws_shorten_term_description($terms = array(), $taxonomies = null, $args = array()) {
99
+ if(is_array($terms)) {
100
  foreach($terms as $key=>$term) {
101
+ if(is_object($term) && isset($term->description)) {
102
+ $term->description = kws_wp_trim_excerpt($term->description);
103
+ }
104
+ }
105
  }
106
  return $terms;
107
  }