wordpress-develop/tests/phpunit/tests/link
Ian Dunn d336475bf5 Privacy: Add template tags for building link to privacy policy page.
This introduces the `get_the_privacy_policy_link()` and `the_privacy_policy_link()` functions, as well as the `privacy_policy_url` filter.

A new `tests/url/` folder was added to better organize tests related to `get_*_url()` functions. Previously, those tests were placed in `tests/url.php` and `tests/link/`, but neither of those locations are optimal. Placing tests in `tests/url.php` violates the guideline of creating separate files/classes for each function under test, and using `tests/link/` conflates two distinct -- albeit related -- groups of functions. Over time, URL-related tests can be migrated to the new folder.

Props birgire, xkon, azaozz, iandunn.
See #43850.


git-svn-id: https://develop.svn.wordpress.org/trunk@43002 602fd350-edb4-49c9-b593-d223f7449a82
2018-04-25 15:54:29 +00:00
..
adminUrl.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getAdjacentPost.php Link Template: Apply get_{$adjacent}_post_excluded_terms filter to an empty excluded_terms parameter as well. 2018-03-11 17:31:04 +00:00
getAdjacentPostLink.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getDashboardUrl.php Code is Poetry. 2017-11-30 23:09:33 +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 Code is Poetry. 2017-11-30 23:09:33 +00:00
getPostTypeArchiveLink.php Code is Poetry. 2017-11-30 23:09:33 +00:00
getPreviewPostLink.php Code is Poetry. 2017-11-30 23:09:33 +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
getThePrivacyPolicyLink.php Privacy: Add template tags for building link to privacy policy page. 2018-04-25 15:54:29 +00:00
themeFile.php Tests: Skip symlinked theme file tests if symlink() is not available, e.g. in PHP 5.2.x on Windows. 2018-03-09 17:47:39 +00:00
wpGetCanonicalURL.php Code is Poetry. 2017-11-30 23:09:33 +00:00