Infinite Scroll: Add privacy policy link#9918
Conversation
|
Hi @laghee. Thanks for your contribution! I've tested your PR, but I wasn't able to see Privacy Policy link in IS footer: Also, as you can see - there is redundant '/' just before "Proudly powered by WordPress" text. So I would expect that |
|
Moving it into next release cc @laghee |
|
Thanks, @brbrr ! You're right -- I can see this locally (now that I unbroke my MAMP setup). I did some investigation, and it's not that I'll poke around a little to see if I can figure out what's going wrong and try to push a fix in the next couple of days. |
09958a5 to
765eb5f
Compare
|
@brbrr I changed the retrieval method to use Using The Travis checks look like they have to do with a new build configuration and not anything I did, but let me know if I need to tweak something. |
brbrr
left a comment
There was a problem hiding this comment.
Functionality reviewed - LGTM 🚢
modules/infinite-scroll/infinity.php
Outdated
There was a problem hiding this comment.
Missing space between '(' & 'Privacy Policy'
There was a problem hiding this comment.
@brbrr Oops! I can push another commit right now. I assume I should amend the last one so it's not just a typo fix?
There was a problem hiding this comment.
No worries about number of commits. We are squashing before merge. Thanks!
|
Nice! I see that the default themes (twentyten, etc.) all use |
This is automated check which relies on Generated by 🚫 dangerJS |
|
@mdawaffe You're right -- that worked like a charm! I should have realized that since the privacy page is just another blog page, the title could be customized like anything else. Displaying just "Privacy Policy" would be annoying to anyone who had bothered to write their own title. Thanks for the help! |
|
Do we still need that |
modules/infinite-scroll/infinity.php
Outdated
There was a problem hiding this comment.
Should we check if get_privacy_policy_url() is defined (Only WP 4.9.6 and later define it ) ?
WP bundled themes now have a privacy policy link in their footer, which is helpful for complying with GDPR rules, but users who enable the infinite footer lose that link. This adds a similar link to the infinity footer $credits.
As `the_privacy_policy_link` displays a pre-formatted link, it was not being incorporated into the `blog-credits` div. The 'Privacy Policy' link text was also not easily accessible for translation. Using `get_privacy_policy_url()` allowed for the formatting to match the rest of the credits on the footer, and this secured the correct behavior.
…y_link() As `get_privacy_policy_url()` comes complete with the privacy policy page's title rather than set text, this is a better solution for displaying the link.
… span tag Since `get_privacy_policy_url` is not defined before WP 4.9.6, this adds a check to make the default infinite footer backward compatible.
bee286a to
6ed51c9
Compare
|
Thanks for your persistence! Looks good to me. |
We now check if the function exists before to use it.
- Use spaces inside parenthesis. - Use Yoda condition.
jeherve
left a comment
There was a problem hiding this comment.
I made a small change for coding standards, but other than that I think we are all set. Merging.
Thank you for your contribution!
* Readme: add boilerplate for next release, 6.6 * Add 6.5 to the changelog.txt file * Set boilerplate testing list for 6.6 * Readme: update stable tag to 6.5 * Add bullets to 6.5 changelog items * Readme: add link to previous changelogs This will help folks who want to know more about past releases, while keeping the readme.txt short so as to not overwhelm translators and site owners only looking for information about the last release. * Changelog: add information at the top of the changelog file. * Changelog: add #10054 * Changelog: add #10078 * Changelog: add #10079 * Changelog: add #10064 * Changelog: add #10094 * Changelog: add #10096 * Testing list: add more information based on #10087 * Changelog: add #9847 * Changelog: add #10084 * Changelog: add #9918 * Changelog: add #7614 * Changelog: add #10116 * Changelog: add #10108 * Changelog: add #10041 * Changelog: add #10121 * Changelog: add #10134 * Changelog: add #10130 * Changelog: add #10109 * changelog: add #10137 * changelog: add #9952 * changelog: add #10120 * changelog: add #10162 * Changelog: add #10163 * Changelog: add #10092 * changelog: add #10156 * Changelog: add #10154 * changelog: add #10122 * Changelog: add #10101 * changelog: add #10105 * changelog: add #10190 * Changelog: add #10196 * changelog: add #10152 * Changelog: add #10153 * Testing list: add more details to Site Verification testing steps. @see #10143 (comment) * changelog: add #10194 * Changelog: add #10193




Fixes #9435
WP bundled themes now have a privacy policy link in their footer, which
is helpful for complying with GDPR rules, but users who enable the infinite
footer lose that link. This adds a similar link to the infinity footer $credits.
Changes proposed in this Pull Request:
$creditsto mimic the new WP bundled theme linkTesting instructions:
(Edit: Added extra step for testing.)