[wp-trac] [WordPress Trac] #42361: get_term returns NULL before filters
WordPress Trac
noreply at wordpress.org
Mon Nov 6 21:34:44 UTC 2017
#42361: get_term returns NULL before filters
-------------------------------------+------------------------------
Reporter: socki03 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 4.7
Severity: minor | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+------------------------------
Changes (by socki03):
* keywords: => has-patch needs-testing
* severity: normal => minor
Comment:
I realized I left out that this was happening in `taxonomy.php`, but I
believe the diff I added should provide the necessary change. It keeps
the `if ( ! $_term )` but move it to after the two filters are run, so as
to leave the possibility of hooking into the system and not returning a
null value. Also added a line of notation for why its happening.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42361#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list