[wp-trac] [WordPress Trac] #36168: Introduce get_canonical_url function
WordPress Trac
noreply at wordpress.org
Sat Jun 11 13:30:26 UTC 2016
#36168: Introduce get_canonical_url function
--------------------------------------+----------------------
Reporter: joostdevalk | Owner: ocean90
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.6
Component: Canonical | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+----------------------
Changes (by ocean90):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"37685"]:
{{{
#!CommitTicketReference repository="" revision="37685"
Canonical: Introduce `wp_get_canonical_url()`.
`wp_get_canonical_url()` encapsulates the URL logic of `rel_canonical()`
to provide a consistent way to retrieve the canonical URL for a post.
The new filter `get_canonical_url` allows to customize the canonical URL.
Props joostdevalk, jipmoors, DrewAPicture, ocean90.
Fixes #36168.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36168#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list