Make WordPress Core


Ignore:
Timestamp:
05/09/2018 08:59:13 PM (7 years ago)
Author:
azaozz
Message:

Privacy: show the privacy policy guide and suggested content on a new page instead of a postbox. Then:

  • Separate the guide text form the suggested policy text.
  • Add table of content for easier navigation.
  • Move the content to tools.php (prevents the settings menu of being open).
  • Add a link to the guide from the Privacy settings screen.

Props melchoyce, azaozz.
Merges [43184] and [43203] to the 4.9 branch.
Fixes #43980.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-admin/includes/admin-filters.php

    r43188 r43204  
    142142
    143143// Show a "postbox" with the text suggestions for a privacy policy.
    144 add_action( 'edit_form_after_title', array( 'WP_Privacy_Policy_Content', 'privacy_policy_postbox' ) );
     144add_action( 'edit_form_after_title', array( 'WP_Privacy_Policy_Content', 'notice' ) );
    145145
    146146// Add the suggested policy text from WordPress.
    147 add_action( 'admin_init', array( 'WP_Privacy_Policy_Content', 'add_suggested_content' ), 15 );
     147add_action( 'admin_init', array( 'WP_Privacy_Policy_Content', 'add_suggested_content' ), 1 );
    148148
    149149// Stop checking for text changes after the policy page is updated.
Note: See TracChangeset for help on using the changeset viewer.