Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 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 Owned by: azaozz
Priority: normal Milestone: 4.9.8
Component: Privacy Version: 4.9.6
Severity: normal Keywords: has-patch fixed-major
Cc: Focuses: administration

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

Download all attachments as: .zip

Change History (20)

@garrett-eclipse
8 years ago

View vs Preview link

#1 @desrosj
8 years ago

  • Version trunk4.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.


8 years ago

#3 @desrosj
8 years ago

  • Milestone Awaiting Review4.9.7

@desrosj
8 years ago

#4 @desrosj
8 years ago

  • Keywords has-patch needs-testing added

@desrosj
8 years ago

Screenshot with a bit more context

@desrosj
8 years ago

Switch conditions and check for publish instead of draft.

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

Behavior when Privacy Policy is trashed.

#6 @garrett-eclipse
8 years ago

Niiice this is awesome thanks @desrosj

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


8 years ago

#8 @azaozz
8 years ago

  • Owner set to azaozz
  • Resolutionfixed
  • Status newclosed

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
8 years ago

  • Keywords fixed-major added; needs-testing removed
  • Resolution fixed
  • Status closedreopened

Reopen for 4.9.7.

#10 @ocean90
8 years ago

  • Milestone 4.9.74.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.


8 years ago

#12 @SergeyBiryukov
8 years ago

  • Resolutionfixed
  • Status reopenedclosed

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
8 years ago

  • Keywords needs-refresh reporter-feedback added
  • Resolution fixed
  • Status closedreopened

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 8 years ago by garrett-eclipse (previous) (diff)

#14 in reply to: ↑ 13 @SergeyBiryukov
8 years ago

  • Keywords needs-refresh reporter-feedback removed
  • Resolutionfixed
  • Status reopenedclosed

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
8 years ago

Thanks for catching @SergeyBiryukov

Note: See TracTickets for help on using tickets.