Make WordPress Core


Ignore:
Timestamp:
05/10/2018 08:07:11 PM (8 years ago)
Author:
azaozz
Message:

Privacy: Replace intrusive policy update notice with menu bubbles.

Previously, when a plugin updated its suggested privacy policy text, an admin notice was shown on all screens in the Administration Panels. That was done in order to make sure that administrators were aware of it, so that they could update their policy if needed. That was a very heavy-handed and intrusive approach, though, which leads to a poor user experience, and notice fatigue.

An alternative approach is to use bubble notifications in the menu, similar to when plugins have updates that need to be installed. That still makes it obvious that something needs the administrator's attention, but is not as distracting as a notice.

The notice will still appear on the Privacy page, though, since it is relevant to that screen, and provides an explanation of why the bubble is appearing.

Props azaozz, xkon, iandunn.
Merges [43223] to the 4.9 branch.
Fixes #43954. See #43953.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-includes/functions.php

    r43163 r43225  
    59385938
    59395939/**
    5940  * Trigger the check for policy text changes.
    5941  *
    5942  * @since 4.9.6
    5943  * @access private
    5944  */
    5945 function _wp_privacy_active_plugins_change() {
    5946     update_option( '_wp_privacy_text_change_check', 'check' );
    5947 }
    5948 
    5949 /**
    59505940 * Schedule a `WP_Cron` job to delete expired export files.
    59515941 *
Note: See TracChangeset for help on using the changeset viewer.