[wp-trac] [WordPress Trac] #36602: Improvement to redirect_canonical with category permalink
WordPress Trac
noreply at wordpress.org
Wed Apr 20 15:34:18 UTC 2016
#36602: Improvement to redirect_canonical with category permalink
--------------------------+---------------------------
Reporter: spacedmonkey | Owner: boonebgorges
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.6
Component: Canonical | Version: 3.0
Severity: normal | Resolution: fixed
Keywords: | Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"37262"]:
{{{
#!CommitTicketReference repository="" revision="37262"
Canonical: Use `get_the_terms()` to verify that a post belongs to the
requested `%category%`.
The `get_the_terms()` wrapper provides cache support, and saves a database
hit
on sites with a persistent cache backend.
Props spacedmonkey.
Fixes #36602.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36602#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list