Ticket #44588: 44588.5.diff
| File 44588.5.diff, 1.7 KB (added by , 6 years ago) |
|---|
-
src/js/_enqueues/admin/privacy-tools.js
253 253 window.getSelection().addRange( range ); 254 254 document.execCommand( 'copy' ); 255 255 256 $( '.success', $parent.find( 'div.privacy-text-actions' ) ).addClass( 'visible' ); 257 256 258 $container.removeClass( 'hide-privacy-policy-tutorial' ); 257 259 window.getSelection().removeAllRanges(); 258 260 } catch ( er ) {} -
src/wp-admin/css/edit.css
714 714 padding-bottom: 6px; 715 715 } 716 716 717 .privacy-text-actions .success { 718 display: none; 719 color: #40860a; 720 float: right; 721 padding-right: 1em; 722 } 723 724 .privacy-text-actions .success.visible { 725 display: inline-block; 726 height: 32px; 727 } 728 717 729 .wp-privacy-policy-guide .policy-text h2 { 718 730 margin: 1.2em 0 1em; 719 731 padding: 0; -
src/wp-admin/includes/class-wp-privacy-policy-content.php
425 425 $content .= sprintf( __( 'Copy suggested policy text from %s.' ), $plugin_name ); 426 426 $content .= '</span>'; 427 427 $content .= '</button>'; 428 /* on Copy success feedback */ 429 $content .= '<span class="success" aria-hidden="true">' . __( 'Copied!' ) . '</span>'; 428 430 $content .= '</div>'; 429 431 } 430 432