WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/18/2018 04:13:59 PM (10 months ago)
Author:
desrosj
Message:

Block Editor: Show privacy help notice on Privacy Policy page.

When editing a page set to be the Privacy Policy page, display a help notice
containing a link to the Privacy Policy guide.

Merges [43920] to trunk.

Fixes #45057.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-admin/includes/admin-filters.php

    r44275 r44291  
    147147
    148148// Show a "postbox" with the text suggestions for a privacy policy.
    149 add_action( 'edit_form_after_title', array( 'WP_Privacy_Policy_Content', 'notice' ) );
     149add_action( 'admin_notices', array( 'WP_Privacy_Policy_Content', 'notice' ) );
    150150
    151151// Add the suggested policy text from WordPress.
Note: See TracChangeset for help on using the changeset viewer.