wordpress-develop/tests/phpunit/tests/link
Dominik Schilling (ocean90) 979660717e 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@37685 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-11 13:30:23 +00:00
..
getAdjacentPost.php Fix incorrect @covers annotation in get_adjacent_post() tests. 2016-01-03 02:43:18 +00:00
getAdjacentPostLink.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
getNextCommentsLink.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
getPostCommentsFeedLink.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
getPostTypeArchiveLink.php Permalinks: Make get_post_type_archive_link() work for the 'post' post type. 2016-01-08 22:00:48 +00:00
getPreviewPostLink.php Posts: Add test coverage for get_preview_post_link(). 2016-05-25 18:30:57 +00:00
getPreviousCommentsLink.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
wpGetCanonicalURL.php Canonical: Introduce wp_get_canonical_url(). 2016-06-11 13:30:23 +00:00