Make WordPress Core


Ignore:
Timestamp:
05/02/2018 12:02:01 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Privacy: add means to erase personal data by username or email address. First run.

Props allendav, coreymckrill, ericdaams, azaozz.
Merges [42986] to the 4.9 branch.
See #43637, #43602.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-includes/script-loader.php

    r42811 r43075  
    660660
    661661        $scripts->add( 'xfn', "/wp-admin/js/xfn$suffix.js", array('jquery'), false, 1 );
     662        did_action( 'init' ) && $scripts->localize(
     663            'xfn', 'privacyToolsL10n', array(
     664                'noDataFound'     => __( 'No personal data was found for this user.' ),
     665                'foundAndRemoved' => __( 'All of the personal data found for this user was removed.' ),
     666                'noneRemoved'     => __( 'Personal data was found for this user but was not removed.' ),
     667                'someNotRemoved'  => __( 'Personal data was found for this user but some of the personal data found was not removed.' ),
     668                'anErrorOccurred' => __( 'An error occurred while attempting to find and remove personal data.' ),
     669            )
     670        );
    662671
    663672        $scripts->add( 'postbox', "/wp-admin/js/postbox$suffix.js", array('jquery-ui-sortable'), false, 1 );
Note: See TracChangeset for help on using the changeset viewer.