[wp-trac] [WordPress Trac] #43850: Add privacy policy URL template tags

WordPress Trac noreply at wordpress.org
Tue Apr 24 19:47: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):

 Replying to
 [https://core.trac.wordpress.org/ticket/43620?replyto=43#comment:43
 43620:comment:43 birgire]:
 > I would suggest adding numbered placeholders.

 Hmmm, what would be the advantage of that, since the string isn't
 translated?

 > I've finished the unit-tests for both {{{get_privacy_policy_url()}}} and
 {{{get_the_privacy_policy_link()}}}

 Doh,
 [https://core.trac.wordpress.org/attachment/ticket/43620/43620.policy_url.policy_link_4.diff
 so did I].

 Do you want to upload the patch here and I'll combine them?

 > but I'm scratching my head to what ticket I should add them.

 I used `tests/phpunit/tests/url.php`, since that's where some other `link-
 template.php` functions are tested. I'm open to other ideas, though.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43850#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list