[wp-trac] [WordPress Trac] #42605: category_description() does not work properly since 4.9

WordPress Trac noreply at wordpress.org
Fri Nov 17 16:14:12 UTC 2017


#42605: category_description() does not work properly since 4.9
--------------------------------+-----------------------------
 Reporter:  torben.tschechne@…  |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Taxonomy            |    Version:  4.9
 Severity:  normal              |   Keywords:
  Focuses:                      |
--------------------------------+-----------------------------
 Hello,
 since upgrading to 4.9 the category_description() function stopped working
 properly in my case. I use category_description() outside the loop and it
 returns an empty string.

 I tracked down
 {{{
 get_term_field()
 }}}

 in wp-includes/taxonomy.php and

 {{{
 sanitize_term_field( $field, $term->$field, $term->term_id,
 $term->taxonomy, $context );
 }}}

 Does return only a string of the Category, but no description.

 When I use 4.8.3 - I get the description.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42605>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list