Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#44131 closed enhancement (fixed)

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

Reported by: garrett-eclipse's profile garrett-eclipse Owned by: azaozz's profile 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 6 years ago.
View vs Preview link
44131.diff (976 bytes) - added by desrosj 6 years ago.
Screen Shot 2018-06-06 at 3.24.55 PM.png (164.1 KB) - added by desrosj 6 years ago.
Screenshot with a bit more context
44131.2.diff (978 bytes) - added by desrosj 6 years 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 6 years ago.
Behavior when Privacy Policy is trashed.

Download all attachments as: .zip

Change History (20)

@garrett-eclipse
6 years ago

View vs Preview link

#1 @desrosj
6 years 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.


6 years ago

#3 @desrosj
6 years ago

  • Milestone changed from Awaiting Review to 4.9.7

@desrosj
6 years ago

#4 @desrosj
6 years ago

  • Keywords has-patch needs-testing added

@desrosj
6 years ago

Screenshot with a bit more context

@desrosj
6 years ago

Switch conditions and check for publish instead of draft.

#5 @desrosj
6 years 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
6 years ago

Behavior when Privacy Policy is trashed.

#6 @garrett-eclipse
6 years ago

Niiice this is awesome thanks @desrosj

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


6 years ago

#8 @azaozz
6 years 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
6 years ago

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

Reopen for 4.9.7.

#10 @ocean90
6 years 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.


6 years ago

#12 @SergeyBiryukov
6 years 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
6 years 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 6 years ago by garrett-eclipse (previous) (diff)

#14 in reply to: ↑ 13 @SergeyBiryukov
6 years 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
6 years ago

Thanks for catching @SergeyBiryukov

Note: See TracTickets for help on using tickets.