Make WordPress Core


Ignore:
Timestamp:
05/26/2019 08:49:04 PM (5 years ago)
Author:
azaozz
Message:

Privacy tools: Organize privacy functions into logical files and classes.

Props xkon, birgire, desrosj, garrett-eclipse, azaozz.
See #43895.

File:
1 edited

Legend:

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

    r45434 r45448  
    15431543
    15441544        $scripts->add( 'xfn', "/wp-admin/js/xfn$suffix.js", array( 'jquery' ), false, 1 );
    1545         did_action( 'init' ) && $scripts->localize(
    1546             'xfn',
    1547             'privacyToolsL10n',
    1548             array(
    1549                 'noDataFound'     => __( 'No personal data was found for this user.' ),
    1550                 'foundAndRemoved' => __( 'All of the personal data found for this user was erased.' ),
    1551                 'noneRemoved'     => __( 'Personal data was found for this user but was not erased.' ),
    1552                 'someNotRemoved'  => __( 'Personal data was found for this user but some of the personal data found was not erased.' ),
    1553                 'removalError'    => __( 'An error occurred while attempting to find and erase personal data.' ),
    1554                 'noExportFile'    => __( 'No personal data export file was generated.' ),
    1555                 'exportError'     => __( 'An error occurred while attempting to export personal data.' ),
    1556             )
    1557         );
    15581545
    15591546        $scripts->add( 'postbox', "/wp-admin/js/postbox$suffix.js", array( 'jquery-ui-sortable' ), false, 1 );
     
    16931680        $scripts->add( 'site-health', "/wp-admin/js/site-health$suffix.js", array( 'clipboard', 'jquery', 'wp-util', 'wp-a11y', 'wp-i18n' ), false, 1 );
    16941681        $scripts->set_translations( 'site-health' );
     1682
     1683        $scripts->add( 'privacy-tools', "/wp-admin/js/privacy-tools$suffix.js", array( 'jquery' ), false, 1 );
     1684        did_action( 'init' ) && $scripts->localize(
     1685            'privacy-tools',
     1686            'privacyToolsL10n',
     1687            array(
     1688                'noDataFound'     => __( 'No personal data was found for this user.' ),
     1689                'foundAndRemoved' => __( 'All of the personal data found for this user was erased.' ),
     1690                'noneRemoved'     => __( 'Personal data was found for this user but was not erased.' ),
     1691                'someNotRemoved'  => __( 'Personal data was found for this user but some of the personal data found was not erased.' ),
     1692                'removalError'    => __( 'An error occurred while attempting to find and erase personal data.' ),
     1693                'noExportFile'    => __( 'No personal data export file was generated.' ),
     1694                'exportError'     => __( 'An error occurred while attempting to export personal data.' ),
     1695            )
     1696        );
    16951697
    16961698        $scripts->add( 'updates', "/wp-admin/js/updates$suffix.js", array( 'jquery', 'wp-util', 'wp-a11y' ), false, 1 );
Note: See TracChangeset for help on using the changeset viewer.