[wp-trac] [WordPress Trac] #37291: Check for WP_Error before echo in the_tags()

WordPress Trac noreply at wordpress.org
Tue Oct 11 04:05:36 UTC 2016


#37291: Check for WP_Error before echo in the_tags()
--------------------------+---------------------------
 Reporter:  michalzuber   |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  4.6.2
Component:  Taxonomy      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  fixed-major   |     Focuses:
--------------------------+---------------------------

Comment (by boonebgorges):

 In [changeset:"38779"]:
 {{{
 #!CommitTicketReference repository="" revision="38779"
 Taxonomy: Specify taxonomy when populating cached object terms.

 [38776] introduced a call to `get_term()` using only the term ID. This
 causes problems in cases where shared terms have not been split. Since
 we have the taxonomy available, there's no harm in passing it along to
 `get_term()`.

 Props dd32.
 See #37291.
 }}}

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


More information about the wp-trac mailing list