[wp-trac] [WordPress Trac] #43850: Add privacy policy URL template tags
WordPress Trac
noreply at wordpress.org
Wed Apr 25 15:54:31 UTC 2018
#43850: Add privacy policy URL template tags
------------------------------------------+--------------------------------
Reporter: iandunn | Owner: iandunn
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.9.6
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: gdpr needs-testing has-patch | Focuses: ui,
| administration
------------------------------------------+--------------------------------
Comment (by iandunn):
In [changeset:"43002" 43002]:
{{{
#!CommitTicketReference repository="" revision="43002"
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.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43850#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list