[wp-trac] [WordPress Trac] #42717: get_category_link() accepting object but not id
WordPress Trac
noreply at wordpress.org
Mon Nov 27 21:19:30 UTC 2017
#42717: get_category_link() accepting object but not id
--------------------------+-----------------------------
Reporter: belbo | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
I just updated to the latest version of WP and realised that some of my
links stopped working. I was using
{{{#!php
<?php
get_category_link($term->id);
}}}
which no longer works, however
{{{#!php
<?php
get_category_link($term_oject);
}}}
Does work. According to the codex both should work :-)
https://developer.wordpress.org/reference/functions/get_category_link/
thanks :-)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42717>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list