Make WordPress Core


Ignore:
Timestamp:
04/12/2020 02:24:38 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Privacy: Add an indication when the Copy action in Privacy Policy Guide is complete.

This adds a "Copied!" text near the "Copy this section to clipboard" button to provide direct feedback that the action was completed.

Props garrett-eclipse, nickylimjj, xkon, desrosj, birgire.
Fixes #44588.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r47416 r47572  
    14181418        $scripts->set_translations( 'site-health' );
    14191419
    1420         $scripts->add( 'privacy-tools', "/wp-admin/js/privacy-tools$suffix.js", array( 'jquery' ), false, 1 );
     1420        $scripts->add( 'privacy-tools', "/wp-admin/js/privacy-tools$suffix.js", array( 'jquery', 'wp-a11y', 'wp-i18n' ), false, 1 );
    14211421        did_action( 'init' ) && $scripts->localize(
    14221422            'privacy-tools',
Note: See TracChangeset for help on using the changeset viewer.