WordPress.org

Make WordPress Core

Changeset 47112


Ignore:
Timestamp:
01/26/2020 11:00:54 PM (7 months ago)
Author:
azaozz
Message:

Privacy: Cleanup .wp-policy-help CSS remnants and add back-compat when hiding the tutorial content before copying.

Props garrett-eclipse.
Fixes #49282.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/vendor/tinymce/skins/wordpress/wp-content.css

    r46586 r47112  
    266266}
    267267
    268 /* Special styling for the suggestes policy text tutorial sections after they have been pasted in the editor. */
    269 p.wp-policy-help {
    270     background-color: #ff0;
    271 }
    272 
    273268/**
    274269 * WP Views
  • trunk/src/wp-admin/css/edit.css

    r47072 r47112  
    730730}
    731731
     732.hide-privacy-policy-tutorial .wp-policy-help, /* For back-compat see #49282 */
    732733.hide-privacy-policy-tutorial .privacy-policy-tutorial {
    733734    visibility: hidden;
     
    738739}
    739740
     741.wp-suggested-text p.wp-policy-help, /* For back-compat see #49282 */
    740742.wp-suggested-text p.privacy-policy-tutorial {
    741743    font-style: normal;
  • trunk/src/wp-admin/includes/plugin.php

    r47060 r47112  
    22582258 * https://developer.wordpress.org/plugins/privacy/suggesting-text-for-the-site-privacy-policy/.
    22592259 *
     2260 * The HTML contents of the `$policy_text` supports use of a specialized `privacy-policy-tutorial` css class
     2261 * which can be used to provide supplemental information. Any content contained within html elements
     2262 * that have the `privacy-policy-tutorial` css class applied will be omitted from the clipboard
     2263 * when the section content is copied.
     2264 *
    22602265 * Intended for use with the `'admin_init'` action.
    22612266 *
Note: See TracChangeset for help on using the changeset viewer.