Make WordPress Core

Ticket #49282: 49282.diff

File 49282.diff, 2.0 KB (added by garrett-eclipse, 5 years ago)

Patch to address the back-compat issues

  • src/js/_enqueues/vendor/tinymce/skins/wordpress/wp-content.css

     
    265265        z-index: -1;
    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
    275270 */
  • src/wp-admin/css/edit.css

     
    729729        margin-top: 6px;
    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;
    734735}
    735736
    736 .wp-suggested-text p {
     737.policy-text p {
    737738        font-style: italic;
    738739}
    739740
    740 .wp-suggested-text p.privacy-policy-tutorial {
     741.policy-text p.wp-policy-help, /* For back-compat see #49282 */
     742.policy-text p.privacy-policy-tutorial {
    741743        font-style: normal;
    742744}
    743745
  • src/wp-admin/includes/plugin.php

     
    22572257 * For more information see the Plugin Handbook:
    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 *
    22622267 * @since 4.9.6