[wp-trac] [WordPress Trac] #39129: get_the_terms seems to be broken after upgrading to version 4.7

WordPress Trac noreply at wordpress.org
Wed Dec 7 05:31:08 UTC 2016


#39129: get_the_terms seems to be broken after upgrading to version 4.7
-------------------------------------+------------------------------
 Reporter:  kuphd1                   |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Taxonomy                 |     Version:  4.7
 Severity:  trivial                  |  Resolution:
 Keywords:  reporter-feedback close  |     Focuses:
-------------------------------------+------------------------------
Changes (by mensmaximus):

 * severity:  major => trivial


Comment:

 Can't confirm any issue with get_the_terms(). I am using it heavily in
 some of my directory applications:


 {{{

 get_the_terms( $this_id, 'treatment' )

 Array
                 (
                     [0] => WP_Term Object
                         (
                             [term_id] => 60
                             [name] => Body
                             [slug] => body
                             [term_group] => 0
                             [term_taxonomy_id] => 60
                             [taxonomy] => treatment
                             [description] =>
                             [parent] => 0
                             [count] => 2
                             [filter] => raw
                             [term_order] => 0
                         )

                     [1] => WP_Term Object
                         (
                             [term_id] => 61
                             [name] => hair transplant
                             [slug] => hair-transplant
                             [term_group] => 0
                             [term_taxonomy_id] => 61
                             [taxonomy] => treatment
                             [description] =>
                             [parent] => 0
                             [count] => 1
                             [filter] => raw
                             [term_order] => 0
                         )

                     [2] => WP_Term Object
                         (
                             [term_id] => 51
                             [name] => FUE hair transplant
                             [slug] => fue-hair-transplant
                             [term_group] => 0
                             [term_taxonomy_id] => 51
                             [taxonomy] => treatment
                             [description] =>
                             [parent] => 0
                             [count] => 60
                             [filter] => raw
                             [term_order] => 1
                         )

                     [3] => WP_Term Object
                         (
                             [term_id] => 54
                             [name] => Facial hair transplant
                             [slug] => facial-hair-transplant
                             [term_group] => 0
                             [term_taxonomy_id] => 54
                             [taxonomy] => treatment
                             [description] =>
                             [parent] => 0
                             [count] => 26
                             [filter] => raw
                             [term_order] => 4
                         )

                     [4] => WP_Term Object
                         (
                             [term_id] => 55
                             [name] => Eyebrow transplant
                             [slug] => eyebrow-transplant
                             [term_group] => 0
                             [term_taxonomy_id] => 55
                             [taxonomy] => treatment
                             [description] =>
                             [parent] => 0
                             [count] => 27
                             [filter] => raw
                             [term_order] => 5
                         )

                 )
 }}}

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


More information about the wp-trac mailing list