[wp-trac] [WordPress Trac] #44669: Privacy Notification doesn't clear after dismissing notification
WordPress Trac
noreply at wordpress.org
Sat Sep 22 07:34:58 UTC 2018
#44669: Privacy Notification doesn't clear after dismissing notification
--------------------------+------------------------
Reporter: ahortin | Owner: javorszky
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.9.9
Component: Privacy | Version: 4.9.7
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------
Comment (by garrett-eclipse):
As to the behaviour of the notice on the Privacy Settings page this ticket
discusses I wonder if this would make more sense as custom code or plugin
land as disabling the notice completely is a single line;
{{{#!php
<?php
remove_action( 'admin_notices', array( 'WP_Privacy_Policy_Content',
'policy_text_changed_notice' ) );
}}}
For the basic user who hasn't gotten their policy created professionally
the nag is a helpful prompt to understand their Privacy coverage has
changed.
That aside if it's deemed this moves forward an AJAX call would have to be
added on a `$document.on( 'click', '.policy-text-updated.is-dismissable
.notice-dismiss'...` to force the update of
`_wp_suggested_privacy_policy_content` post meta content so as to make
`$new == $old` as this is how the `text_change_check` is handled;[[BR]]
https://github.com/WordPress/WordPress/blob/f7ba175491b725a5f3d636072c8b432774d38ae3
/wp-admin/includes/misc.php#L1345-L1417
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44669#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list