WordPress.org

Make WordPress Core

Opened 5 months ago

Closed 3 months ago

Last modified 3 months ago

#44131 closed enhancement (fixed)

If draft page selected for Privacy Policy page should verbiage change from view to preview

Reported by: garrett-eclipse Owned by: azaozz
Milestone: 4.9.8 Priority: normal
Severity: normal Version: 4.9.6
Component: Privacy Keywords: has-patch fixed-major
Focuses: administration Cc:

Description

Hello,

Super minor, but should the verbiage on the Privacy Settings page switch from view to preview when the page you've selected for Privacy Policy page is in draft mode?

See screen for verbiage I'm speaking on, it's the 'Edit or view your privacy policy page content.'

Cheers

Attachments (5)

Screen Shot 2018-05-17 at 1.32.12 PM.png (11.4 KB) - added by garrett-eclipse 5 months ago.
View vs Preview link
44131.diff (976 bytes) - added by desrosj 4 months ago.
Screen Shot 2018-06-06 at 3.24.55 PM.png (164.1 KB) - added by desrosj 4 months ago.
Screenshot with a bit more context
44131.2.diff (978 bytes) - added by desrosj 4 months ago.
Switch conditions and check for publish instead of draft.
Screen Shot 2018-06-06 at 5.00.26 PM.png (135.0 KB) - added by desrosj 4 months ago.
Behavior when Privacy Policy is trashed.

Download all attachments as: .zip

Change History (20)

#1 @desrosj
5 months ago

  • Version changed from trunk to 4.9.6

Marking Privacy change as introduced in 4.9.6.

This ticket was mentioned in Slack in #gdpr-compliance by desrosj. View the logs.


4 months ago

#3 @desrosj
4 months ago

  • Milestone changed from Awaiting Review to 4.9.7

@desrosj
4 months ago

#4 @desrosj
4 months ago

  • Keywords has-patch needs-testing added

@desrosj
4 months ago

Screenshot with a bit more context

@desrosj
4 months ago

Switch conditions and check for publish instead of draft.

#5 @desrosj
4 months ago

44131.2.diff adjusts the text to read "preview" instead of "view" when the selected privacy policy page is not published.

I originally checked if a page was in draft status, but then thought about pages that may have other statuses. Scheduled pages should also read "preview", so switching the condition to check if a page is publish will also display "preview" for scheduled pages.

One other instance to consider is private pages. While private, and scheduled are not supported by default, it is possible to select a published page and then change it to private or scheduled.

When a page is move to the trash, the user does see a notice on the Settings > Privacy page (screenshot incoming).

I opened #44320 to explore how we are notifying users of issues with their site's privacy policy a bit further.

@desrosj
4 months ago

Behavior when Privacy Policy is trashed.

#6 @garrett-eclipse
4 months ago

Niiice this is awesome thanks @desrosj

This ticket was mentioned in Slack in #core-privacy by desrosj. View the logs.


4 months ago

#8 @azaozz
4 months ago

  • Owner set to azaozz
  • Resolution set to fixed
  • Status changed from new to closed

In 43374:

Privacy: on the Privacy Settings screen change view to preview when a draft page is selected for the privacy policy.

Props garrett-eclipse, desrosj.
Fixes #44131.

#9 @azaozz
4 months ago

  • Keywords fixed-major added; needs-testing removed
  • Resolution fixed deleted
  • Status changed from closed to reopened

Reopen for 4.9.7.

#10 @ocean90
3 months ago

  • Milestone changed from 4.9.7 to 4.9.8

4.9.7 has been released, moving to next milestone.

This ticket was mentioned in Slack in #core-privacy by desrosj. View the logs.


3 months ago

#12 @SergeyBiryukov
3 months ago

  • Resolution set to fixed
  • Status changed from reopened to closed

In 43453:

Privacy: on the Privacy Settings screen change view to preview when a draft page is selected for the privacy policy.

Props garrett-eclipse, desrosj.
Merges [43374] to the 4.9 branch.
Fixes #44131.

#13 follow-up: @garrett-eclipse
3 months ago

  • Keywords needs-refresh reporter-feedback added
  • Resolution fixed deleted
  • Status changed from closed to reopened

Not sure if this will be corrected when #44130 is committed but I came across the verbiage this ticket introduced and found it didn't follow the correct case as outlined in comment 7 on that ticket;

"Privacy Policy" in this instance is a proper noun and "page" is a common noun. So, the standard should be "Privacy Policy page."

Reference - https://core.trac.wordpress.org/ticket/44130#comment:7

So this verbiage;

<a href="%1$s">Edit</a> or <a href="%2$s">preview</a> your privacy policy page content.

Should actually be;

<a href="%1$s">Edit</a> or <a href="%2$s">preview</a> your Privacy Policy page content.

*With Privacy Policy capitalized.

Permalink - https://translate.wordpress.org/projects/wp/dev/admin/en-ca/default?filters%5Boriginal_id%5D=6385590

Last edited 3 months ago by garrett-eclipse (previous) (diff)

#14 in reply to: ↑ 13 @SergeyBiryukov
3 months ago

  • Keywords needs-refresh reporter-feedback removed
  • Resolution set to fixed
  • Status changed from reopened to closed

Replying to garrett-eclipse:

So this verbiage;

<a href="%1$s">Edit</a> or <a href="%2$s">preview</a> your privacy policy page content.

Should actually be;

<a href="%1$s">Edit</a> or <a href="%2$s">preview</a> your Privacy Policy page content.

*With Privacy Policy capitalized.

The patch on #44130 includes a fix for this.

#15 @garrett-eclipse
3 months ago

Thanks for catching @SergeyBiryukov

Note: See TracTickets for help on using tickets.