Make WordPress Core

Opened 11 months ago

Last modified 11 months ago

#59276 new defect (bug)

Wrong notice is showing up on the Privacy Policy page settings in WP dashboard.

Reported by: anveshika's profile anveshika Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Privacy Keywords: needs-patch 2nd-opinion
Focuses: ui Cc:

Description

If Admin does not select any page for Privacy policy from the Admin Dashboard and save the settings, the notice that appears shows that the page has been updated.

How to reproduce:

  1. Navigate to Settings > Privacy.
  2. Keep 'Change your Privacy Policy page' dropdown unselected.
  3. Save settings by clicking on 'Use This Page' button.

Expected Result:
As there is no page selected in dropdown, it should not show the notice that page has been updated.

https://ibb.co/3hyK6BY

Environment Details:

WordPress version: 6.3.1
Browser: Chrome Version 116.0.5845.111
OS version: Windows 10
PHP version: 7.4.33
Server: Apache/2.4.57
Active Theme: Twenty Twenty-Three
Active Plugins: None

Attachments (1)

privacy.jpg (163.8 KB) - added by anveshika 11 months ago.

Download all attachments as: .zip

Change History (3)

@anveshika
11 months ago

#1 @audrasjb
11 months ago

  • Component changed from Administration to Privacy
  • Focuses ui added
  • Keywords 2nd-opinion added
  • Version 6.3.1 deleted

Hello! Welcome to WordPress Core Trac and thanks for opening this ticket!

For what it's worth I'm unsure this really is an issue as when you select no privacy policy page and save your settings, you technically update the setting, and even more if you previously used to have a selected privacy policy page and finally decide to not have any privacy policy page.

Of course, we could also change a bit the message to say "Privacy policy page removed." but technically, the setting was just updated to 0, so I'd say the current message is not 100% wrong :)

Thoughts?

#2 @anveshika
11 months ago

Hi @audrasjb , Thanks for checking this ticket. I agree with your opinion about the message. I think it will make more sense if the message says 'Privacy Policy Page removed successfully.'

Please share your thoughts on this.

Note: See TracTickets for help on using tickets.