[wp-trac] [WordPress Trac] #50225: get_edit_term_link can technically accept also WP_Term and object for $term_id

WordPress Trac noreply at wordpress.org
Sat Nov 27 15:22:32 UTC 2021


#50225: get_edit_term_link can technically accept also WP_Term and object for
$term_id
-------------------------------------------------+-------------------------
 Reporter:  david.binda                          |       Owner:  audrasjb
     Type:  defect (bug)                         |      Status:  closed
 Priority:  high                                 |   Milestone:  5.9
Component:  Taxonomy                             |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:
  note needs-docs                                |  performance
-------------------------------------------------+-------------------------
Changes (by audrasjb):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52258" 52258]:
 {{{
 #!CommitTicketReference repository="" revision="52258"
 Taxonomy: Check $term object before using it in `get_term_feed_link()`.

 This change performs the type safety check on `$term` before it is used to
 retrieve the taxonomy in `get_term_feed_link()`. It also updates the
 related DocBlock after [52255].

 Follow up to [52255].

 Props dlh.
 Fixes #50225.
 }}}

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


More information about the wp-trac mailing list