[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
Tue Nov 10 14:35:22 UTC 2020


#50225: get_edit_term_link can technically accept also WP_Term and object for
$term_id
-------------------------------------+-----------------------------
 Reporter:  david.binda              |       Owner:  SergeyBiryukov
     Type:  defect (bug)             |      Status:  reviewing
 Priority:  normal                   |   Milestone:  5.6
Component:  Taxonomy                 |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:  performance
-------------------------------------+-----------------------------
Changes (by johnbillion):

 * keywords:  has-patch => has-patch needs-refresh


Comment:

 Note that the type of the `$term_id` parameter that's passed to the
 filters cannot change. This affects `get_edit_tag_link` and
 `get_edit_term_link`. The parameter needs to remain an integer for
 backwards compatibility, but a new parameter can be added.

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


More information about the wp-trac mailing list