WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/21/2018 04:17:17 PM (11 months ago)
Author:
mcsf
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.

This changeset ports this functionality to the new Block Editor.

Props desrosj.
Fixes #45057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-admin/includes/admin-filters.php

    r43487 r43920  
    145145
    146146// Show a "postbox" with the text suggestions for a privacy policy.
    147 add_action( 'edit_form_after_title', array( 'WP_Privacy_Policy_Content', 'notice' ) );
     147add_action( 'admin_notices', array( 'WP_Privacy_Policy_Content', 'notice' ) );
    148148
    149149// Add the suggested policy text from WordPress.
Note: See TracChangeset for help on using the changeset viewer.