[wp-trac] [WordPress Trac] #49738: get_term_link will always generate a deprecated notice when used on post_tag or category

WordPress Trac noreply at wordpress.org
Tue Mar 31 09:24:43 UTC 2020


#49738: get_term_link will always generate a deprecated notice when used on
post_tag or category
-------------------------+-------------------------------------------------
 Reporter:               |      Owner:  (none)
  scorbaciufermecat      |
     Type:  defect       |     Status:  new
  (bug)                  |
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Taxonomy     |    Version:  5.4
 Severity:  major        |   Keywords:  has-screenshots dev-feedback needs-
  Focuses:               |  patch
-------------------------+-------------------------------------------------
 Using WordPress 5.4-RC5-47533

 get_category_link and get_tag_link both in the end call get_term_link
 which will use a filter that is deprecated for tags and categories.
 https://prnt.sc/rq00x0

 I just checked for solutions online and by mistake I got on a random site
 that google indexed https://jeanbaptisteaudras.com/en/technical/ - so
 maybe more people that don't have error reporting set to OFF will see
 this. Also, as a developer I would like to have debugging ON but I keep
 getting this notification.

 Here is the commit that did that
 https://github.com/WordPress/WordPress/commit/f60094679f4cae8268f79eff10ac247733377ace
 #diff-efd15818123d55a117706670be80c15aR4252

 Thanks,
 Andrei

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49738>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list