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

WordPress Trac noreply at wordpress.org
Fri Nov 17 16:20:11 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              |  Resolution:
 Keywords:                      |     Focuses:
--------------------------------+------------------------------

Comment (by torben.tschechne@…):

 A quick update.

 This happens when I want to determine the category description of a
 product category and this call:
 {{{
 return term_description( $category, 'category' );
 }}}

 in category_description. If I change this to

 {{{
 return term_description( $category, 'product_cat' );
 }}}

 it works. However this is not happening in 4.8.3. So I assume that
 category_description() is not usable in 4.9 for product_cat anymore.

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


More information about the wp-trac mailing list