WordPress.org

Make WordPress Core

Ticket #43875: 43875.diff

File 43875.diff, 24.2 KB (added by audrasjb, 3 years ago)

Replaces Privacy Policy with Privacy Notice

  • src/wp-admin/css/edit.css

    diff --git a/src/wp-admin/css/edit.css b/src/wp-admin/css/edit.css
    index 4587e31..d551b69 100644
    a b span.wp-media-buttons-icon:before { 
    646646        margin-bottom: 20px;
    647647}
    648648
    649 /* Sugested text for privacy policy postbox */
     649/* Sugested text for privacy notice postbox */
    650650.privacy-text-box {
    651651        margin: 10px 0 0;
    652652}
  • src/wp-admin/css/forms.css

    diff --git a/src/wp-admin/css/forms.css b/src/wp-admin/css/forms.css
    index 74fe2f9..3086a64 100644
    a b table.form-table td .updated p { 
    10771077}
    10781078
    10791079/*------------------------------------------------------------------------------
    1080    Privacy Policy settings screen
     1080   Privacy Notice settings screen
    10811081------------------------------------------------------------------------------*/
    10821082.tools-privacy-policy-page form {
    10831083        margin-bottom: 1.3em;
  • src/wp-admin/includes/admin-filters.php

    diff --git a/src/wp-admin/includes/admin-filters.php b/src/wp-admin/includes/admin-filters.php
    index b6ee7ca..2673e59 100644
    a b add_action( 'upgrader_process_complete', 'wp_version_check', 10, 0 ); 
    133133add_action( 'upgrader_process_complete', 'wp_update_plugins', 10, 0 );
    134134add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 );
    135135
    136 // Privacy policy text changes check.
     136// Privacy notice text changes check.
    137137add_action( 'admin_init', array( 'WP_Privacy_Policy_Content', 'text_change_check' ), 20 );
    138138
    139 // Show a "postbox" with the text suggestions for a privacy policy.
     139// Show a "postbox" with the text suggestions for a privacy notice.
    140140add_action( 'edit_form_after_title', array( 'WP_Privacy_Policy_Content', 'privacy_policy_postbox' ) );
    141141
    142 // Add the suggested policy text from WordPress.
     142// Add the suggested notice text from WordPress.
    143143add_action( 'admin_init', array( 'WP_Privacy_Policy_Content', 'add_suggested_content' ), 15 );
    144144
    145 // Stop checking for text changes after the policy page is updated.
     145// Stop checking for text changes after the notice page is updated.
    146146add_action( 'post_updated', array( 'WP_Privacy_Policy_Content', '_policy_page_updated' ) );
    147147
  • src/wp-admin/includes/misc.php

    diff --git a/src/wp-admin/includes/misc.php b/src/wp-admin/includes/misc.php
    index 89ba857..219a7a4 100644
    a b final class WP_Privacy_Policy_Content { 
    12811281        private function __construct() {}
    12821282
    12831283        /**
    1284          * Add content to the postbox shown when editing the privacy policy.
     1284         * Add content to the postbox shown when editing the privacy notice.
    12851285         *
    1286          * Plugins and themes should suggest text for inclusion in the site's privacy policy.
     1286         * Plugins and themes should suggest text for inclusion in the site's privacy notice.
    12871287         * The suggested text should contain information about any functionality that affects user privacy,
    1288          * and will be shown in the Suggested Privacy Policy Content postbox.
     1288         * and will be shown in the Suggested Privacy Notice Content postbox.
    12891289         *
    12901290         * Intended for use from `wp_add_privacy_policy_content()`.
    12911291         *
    12921292         * $since 4.9.6
    12931293         *
    1294          * @param string $plugin_name The name of the plugin or theme that is suggesting content for the site's privacy policy.
    1295          * @param string $policy_text The suggested content for inclusion in the policy.
     1294         * @param string $plugin_name The name of the plugin or theme that is suggesting content for the site's privacy notice.
     1295         * @param string $policy_text The suggested content for inclusion in the notice.
    12961296         */
    12971297        public static function add( $plugin_name, $policy_text ) {
    12981298                if ( empty( $plugin_name ) || empty( $policy_text ) ) {
    final class WP_Privacy_Policy_Content { 
    13181318
    13191319                $policy_page_id = (int) get_option( 'wp_page_for_privacy_policy' );
    13201320
    1321                 // The site doesn't have a privacy policy.
     1321                // The site doesn't have a privacy notice.
    13221322                if ( empty( $policy_page_id ) ) {
    13231323                        return;
    13241324                }
    final class WP_Privacy_Policy_Content { 
    13461346                // The == operator (equal, not identical) was used intentionally.
    13471347                // See http://php.net/manual/en/language.operators.array.php
    13481348                if ( $new != $old ) {
    1349                         // A plugin was activated or deactivated, or some policy text has changed.
     1349                        // A plugin was activated or deactivated, or some notice text has changed.
    13501350                        // Show a notice on all screens in wp-admin.
    13511351                        add_action( 'admin_notices', array( 'WP_Privacy_Policy_Content', 'policy_text_changed_notice' ) );
    13521352                } else {
    final class WP_Privacy_Policy_Content { 
    13681368                <div class="policy-text-updated notice notice-warning is-dismissible">
    13691369                        <p><?php
    13701370
    1371                                 _e( 'The suggested privacy policy text has changed.' );
     1371                                _e( 'The suggested privacy notice text has changed.' );
    13721372
    13731373                                if ( empty( $post ) || $post->ID != $policy_page_id ) {
    13741374                                        ?>
    1375                                         <a href="<?php echo get_edit_post_link( $policy_page_id ); ?>"><?php _e( 'Edit the privacy policy.' ); ?></a>
     1375                                        <a href="<?php echo get_edit_post_link( $policy_page_id ); ?>"><?php _e( 'Edit the privacy notice.' ); ?></a>
    13761376                                        <?php
    13771377                                }
    13781378
    final class WP_Privacy_Policy_Content { 
    13821382        }
    13831383
    13841384        /**
    1385          * Stop checking for changed privacy info when the policy page is updated.
     1385         * Stop checking for changed privacy info when the notice page is updated.
    13861386         *
    13871387         * @since 4.9.6
    13881388         * @access private
    final class WP_Privacy_Policy_Content { 
    14051405
    14061406                foreach ( $old as $old_key => $old_data ) {
    14071407                        if ( ! empty( $old_data['removed'] ) ) {
    1408                                 // Remove the old policy text.
     1408                                // Remove the old notice text.
    14091409                                $update_cache = true;
    14101410                                continue;
    14111411                        }
    final class WP_Privacy_Policy_Content { 
    14331433        }
    14341434
    14351435        /**
    1436          * Check for updated, added or removed privacy policy information from plugins.
     1436         * Check for updated, added or removed privacy notice information from plugins.
    14371437         *
    1438          * Caches the current info in post_meta of the policy page.
     1438         * Caches the current info in post_meta of the notice page.
    14391439         *
    14401440         * @since 4.9.6
    14411441         *
    1442          * @return array The privacy policy text/informtion added by core and plugins.
     1442         * @return array The privacy notice text/informtion added by core and plugins.
    14431443         */
    14441444        public static function get_suggested_policy_text() {
    14451445                $policy_page_id = (int) get_option( 'wp_page_for_privacy_policy' );
    final class WP_Privacy_Policy_Content { 
    15311531        }
    15321532
    15331533        /**
    1534          * Output the postbox when editing the privacy policy page
     1534         * Output the postbox when editing the privacy notice page
    15351535         *
    15361536         * @since 4.9.6
    15371537         *
    final class WP_Privacy_Policy_Content { 
    15621562                        if ( ! empty( $section['removed'] ) ) {
    15631563                                $class = ' text-removed';
    15641564                                $date = date_i18n( $date_format, $section['removed'] );
    1565                                 $meta  = sprintf( __( 'Policy text removed %s.' ), $date );
     1565                                $meta  = sprintf( __( 'Notice text removed %s.' ), $date );
    15661566                        } elseif ( ! empty( $section['updated'] ) ) {
    15671567                                $class = ' text-updated';
    15681568                                $date = date_i18n( $date_format, $section['updated'] );
    1569                                 $meta  = sprintf( __( 'Policy text last updated %s.' ), $date );
     1569                                $meta  = sprintf( __( 'Notice text last updated %s.' ), $date );
    15701570                        } elseif ( ! empty( $section['added'] ) ) {
    15711571                                $class = ' text-added';
    15721572                                $date = date_i18n( $date_format, $section['added'] );
    1573                                 $meta  = sprintf( __( 'Policy text added %s.' ), $date );
     1573                                $meta  = sprintf( __( 'Notice text added %s.' ), $date );
    15741574                        }
    15751575
    15761576                        $plugin_name = esc_html( $section['plugin_name'] );
    final class WP_Privacy_Policy_Content { 
    15871587                        $content .= '<div class="privacy-text-actions">';
    15881588                                $content .= '<button type="button" class="button-link policy-text-more">';
    15891589                                        $content .= $more;
    1590                                         $content .= '<span class="screen-reader-text">' . sprintf( __( 'Expand suggested policy text section from %s.' ), $plugin_name ) . '</span>';
     1590                                        $content .= '<span class="screen-reader-text">' . sprintf( __( 'Expand suggested notice text section from %s.' ), $plugin_name ) . '</span>';
    15911591                                $content .= '</button>';
    15921592
    15931593                                $content .= '<button type="button" class="button-link policy-text-less">';
    15941594                                        $content .= $less;
    1595                                         $content .= '<span class="screen-reader-text">' . sprintf( __( 'Collapse suggested policy text section from %s.' ), $plugin_name ) . '</span>';
     1595                                        $content .= '<span class="screen-reader-text">' . sprintf( __( 'Collapse suggested notice text section from %s.' ), $plugin_name ) . '</span>';
    15961596                                $content .= '</button>';
    15971597
    15981598                                if ( empty( $section['removed'] ) ) {
    15991599                                        $content .= '<button type="button" class="privacy-text-copy button">';
    16001600                                                $content .= $copy;
    1601                                                 $content .= '<span class="screen-reader-text">' . sprintf( __( 'Copy suggested policy text from %s.' ), $plugin_name ) . '</span>';
     1601                                                $content .= '<span class="screen-reader-text">' . sprintf( __( 'Copy suggested notice text from %s.' ), $plugin_name ) . '</span>';
    16021602                                        $content .= '</button>';
    16031603                                }
    16041604
    final class WP_Privacy_Policy_Content { 
    16091609                ?>
    16101610                <div id="privacy-text-box" class="privacy-text-box postbox <?php echo postbox_classes( 'privacy-text-box', 'page' ); ?>">
    16111611                        <button type="button" class="handlediv" aria-expanded="true">
    1612                                 <span class="screen-reader-text"><?php _e( 'Toggle panel: Suggested privacy policy text' ); ?></span>
     1612                                <span class="screen-reader-text"><?php _e( 'Toggle panel: Suggested privacy notice text' ); ?></span>
    16131613                                <span class="toggle-indicator" aria-hidden="true"></span>
    16141614                        </button>
    16151615                        <div class="privacy-text-box-head hndle">
    1616                                 <h2><?php _e( 'This suggested privacy policy text comes from plugins and themes you have installed.' ); ?></h2>
     1616                                <h2><?php _e( 'This suggested privacy notice text comes from plugins and themes you have installed.' ); ?></h2>
    16171617                                <p>
    1618                                         <?php _e( 'We suggest reviewing this text then copying and pasting it into your privacy policy page.' ); ?>
     1618                                        <?php _e( 'We suggest reviewing this text then copying and pasting it into your privacy notice page.' ); ?>
    16191619                                        <?php _e( 'Please remember you are responsible for the policies you choose to adopt, so review the content and make any necessary edits.' ); ?>
    16201620                                </p>
    16211621                        </div>
    final class WP_Privacy_Policy_Content { 
    16281628        }
    16291629
    16301630        /**
    1631          * Return the default suggested privacy policy content.
     1631         * Return the default suggested privacy notice content.
    16321632         *
    16331633         * @since 4.9.6
    16341634         *
    1635          * @return string The defauld policy content.
     1635         * @return string The defauld notice content.
    16361636         */
    16371637        public static function get_default_content() {
    16381638                $content  = '<p>' . __( 'Lorem ipsum dolor sit amet consectetuer id elit enim neque est. Sodales tincidunt Nulla leo penatibus Vestibulum adipiscing est cursus Nam Vestibulum. Orci Vivamus mollis eget pretium dictumst Donec Integer auctor sociis rutrum. Mauris felis Donec neque cursus tellus odio adipiscing netus elit Donec. Vestibulum Cras ligula vitae pretium Curabitur eros Nam Lorem eros non. Sed id mauris justo tristique orci neque eleifend lacus lorem.' ) . "</p>\n";
    final class WP_Privacy_Policy_Content { 
    16411641                $content .= '<p>' . __( 'Tellus sagittis leo adipiscing ante facilisis Aliquam tellus at at elit. Ut dignissim tempus eu Fusce Vestibulum at eros ante dis tempus. Sed libero orci at id ut pretium metus adipiscing justo malesuada. In tempus vitae commodo libero In neque sagittis turpis In In. Eleifend elit dis ac eros urna auctor semper quis odio pretium. Ut Aenean cursus.' ) . "</p>\n";
    16421642
    16431643                /**
    1644                  * Filters the default content suggested for inclusion in a privacy policy.
     1644                 * Filters the default content suggested for inclusion in a privacy notice.
    16451645                 *
    16461646                 * @since 4.9.6
    16471647                 *
    1648                  * @param $content string The defauld policy content.
     1648                 * @param $content string The defauld notice content.
    16491649                 */
    16501650                return apply_filters( 'wp_get_default_privacy_policy_content', $content );
    16511651        }
    16521652
    16531653        /**
    1654          * Add the suggested privacy policy text to the policy postbox.
     1654         * Add the suggested privacy notice text to the notice postbox.
    16551655         *
    16561656         * @since 4.9.6
    16571657         */
  • src/wp-admin/includes/plugin.php

    diff --git a/src/wp-admin/includes/plugin.php b/src/wp-admin/includes/plugin.php
    index 7e660f0..5a8594b 100644
    a b function plugin_sandbox_scrape( $plugin ) { 
    20162016}
    20172017
    20182018/**
    2019  * Helper function for adding content to the postbox shown when editing the privacy policy.
     2019 * Helper function for adding content to the postbox shown when editing the privacy notice.
    20202020 *
    2021  * Plugins and themes should suggest text for inclusion in the site's privacy policy.
     2021 * Plugins and themes should suggest text for inclusion in the site's privacy notice.
    20222022 * The suggested text should contain information about any functionality that affects user privacy,
    2023  * and will be shown in the Suggested Privacy Policy Content postbox.
     2023 * and will be shown in the Suggested Privacy Notice Content postbox.
    20242024 *
    20252025 * A plugin or theme can use this function multiple times as long as it will help to better present
    2026  * the suggested policy content. For example modular plugins such as WooCommerse or Jetpack
     2026 * the suggested notice content. For example modular plugins such as WooCommerse or Jetpack
    20272027 * can add or remove suggested content depending on the modules/extensions that are enabled.
    20282028 *
    20292029 * Intended for use with the `'admin_init'` action.
    20302030 *
    20312031 * @since 4.9.6
    20322032 *
    2033  * @param string $plugin_name The name of the plugin or theme that is suggesting content for the site's privacy policy.
    2034  * @param string $policy_text The suggested content for inclusion in the policy.
     2033 * @param string $plugin_name The name of the plugin or theme that is suggesting content for the site's privacy notice.
     2034 * @param string $policy_text The suggested content for inclusion in the notice.
    20352035 *                            For more information see the Plugins Handbook https://developer.wordpress.org/plugins/.
    20362036 */
    20372037function wp_add_privacy_policy_content( $plugin_name, $policy_text ) {
  • src/wp-admin/includes/upgrade.php

    diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php
    index 6e21b0d..553322a 100644
    a b As a new WordPress user, you should go to <a href=\"%s\">your dashboard</a> to d 
    307307                        )
    308308                );
    309309
    310                 // Privacy Policy page
     310                // Privacy Notice page
    311311                if ( ! class_exists( 'WP_Privacy_Policy_Content' ) ) {
    312312                        include_once( ABSPATH . 'wp-admin/includes/misc.php' );
    313313                }
    As a new WordPress user, you should go to <a href=\"%s\">your dashboard</a> to d 
    323323                                'post_content'          => $privacy_policy_content,
    324324                                'post_excerpt'          => '',
    325325                                'comment_status'        => 'closed',
    326                                 'post_title'            => __( 'Privacy Policy' ),
    327                                 /* translators: Privacy Policy page slug */
    328                                 'post_name'             => __( 'privacy-policy' ),
     326                                'post_title'            => __( 'Privacy Notice' ),
     327                                /* translators: Privacy Notice page slug */
     328                                'post_name'             => __( 'privacy-notice' ),
    329329                                'post_modified'         => $now,
    330330                                'post_modified_gmt'     => $now_gmt,
    331331                                'guid'                  => $privacy_policy_guid,
  • src/wp-admin/privacy.php

    diff --git a/src/wp-admin/privacy.php b/src/wp-admin/privacy.php
    index c4ec307..ce9fbe5 100644
    a b if ( ! empty( $action ) ) { 
    3030                        'page_for_privacy_policy',
    3131                        sprintf(
    3232                                // translators: URL to Customizer -> Menus
    33                                 __( 'Privacy policy page updated successfully. Remember to <a href="%s">update your menus</a>!' ),
     33                                __( 'Privacy notice page updated successfully. Remember to <a href="%s">update your menus</a>!' ),
    3434                                'customize.php?autofocus[panel]=nav_menus'
    3535                        ),
    3636                        'updated'
    if ( ! empty( $action ) ) { 
    3838        } elseif ( 'create-privacy-page' === $action ) {
    3939                $privacy_policy_page_id = wp_insert_post(
    4040                        array(
    41                                 'post_title'  => __( 'Privacy Policy' ),
     41                                'post_title'  => __( 'Privacy Notice' ),
    4242                                'post_status' => 'draft',
    4343                                'post_type'   => 'page',
    4444                        ),
    if ( ! empty( $action ) ) { 
    4949                        add_settings_error(
    5050                                'page_for_privacy_policy',
    5151                                'page_for_privacy_policy',
    52                                 __( 'Unable to create privacy policy page.' ),
     52                                __( 'Unable to create privacy notice page.' ),
    5353                                'error'
    5454                        );
    5555                } else {
    if ( ! empty( $action ) ) { 
    5959                                'page_for_privacy_policy',
    6060                                'page_for_privacy_policy',
    6161                                sprintf(
    62                                         // translators: URL to edit Privacy Policy page
    63                                         __( 'Your Privacy Policy page created successfully. You&#8217;ll want to <a href="%s">review and edit your policy</a> next.' ),
     62                                        // translators: URL to edit Privacy Notice page
     63                                        __( 'Your Privacy Notice page created successfully. You&#8217;ll want to <a href="%s">review and edit your notice</a> next.' ),
    6464                                        'post.php?post=' . $privacy_policy_page_id . '&action=edit'
    6565                                ),
    6666                                'updated'
    if ( ! empty( $action ) ) { 
    6969        }
    7070}
    7171
    72 // If a privacy policy page ID is available, make sure the page actually exists. If not, display an error.
     72// If a privacy Notice page ID is available, make sure the page actually exists. If not, display an error.
    7373$privacy_policy_page_exists = false;
    7474$privacy_policy_page_id     = (int) get_option( 'wp_page_for_privacy_policy' );
    7575
    if ( ! empty( $privacy_policy_page_id ) ) { 
    8181                add_settings_error(
    8282                        'page_for_privacy_policy',
    8383                        'page_for_privacy_policy',
    84                         __( 'The currently selected privacy policy page does not exist. Please create or select new page.' ),
     84                        __( 'The currently selected privacy notice page does not exist. Please create or select new page.' ),
    8585                        'error'
    8686                );
    8787        } else {
    if ( ! empty( $privacy_policy_page_id ) ) { 
    9191                                'page_for_privacy_policy',
    9292                                sprintf(
    9393                                        // translators: URL to Pages Trash.
    94                                         __( 'The currently selected privacy policy page is in the trash. Please create or select new privacy policy page or <a href="%s">restore the current page</a>.' ),
     94                                        __( 'The currently selected privacy notice page is in the trash. Please create or select new privacy notice page or <a href="%s">restore the current page</a>.' ),
    9595                                        'edit.php?post_status=trash&post_type=page'
    9696                                ),
    9797                                'error'
    if ( ! empty( $privacy_policy_page_id ) ) { 
    105105get_current_screen()->add_help_tab( array(
    106106        'id'      => 'privacy',
    107107        'title'   => __( 'Privacy' ),
    108         'content' => '<p>' . __( 'This page provides tools with which you can manage your user&#8217;s personal data and site&#8217;s privacy policy.' ) . '</p>',
     108        'content' => '<p>' . __( 'This page provides tools with which you can manage your user&#8217;s personal data and site&#8217;s privacy notice.' ) . '</p>',
    109109) );
    110110
    111111get_current_screen()->set_help_sidebar(
    require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    119119<div class="wrap">
    120120        <h1><?php _e( 'Privacy Tools' ); ?></h1>
    121121        <?php settings_errors(); ?>
    122         <h2><?php _e( 'Privacy Policy page' ); ?></h2>
     122        <h2><?php _e( 'Privacy Notice page' ); ?></h2>
    123123        <p>
    124                 <?php _e( 'The first step towards privacy laws compliance is to have a comprehensive Privacy Policy.' ); ?>
    125                 <?php _e( 'If you already have a Privacy Policy page, please select it below. If not, create one.' ); ?>
    126                 <?php _e( 'The new policy will include the suggested privacy text.' ); ?>
     124                <?php _e( 'The first step towards privacy laws compliance is to have a comprehensive Privacy Notice.' ); ?>
     125                <?php _e( 'If you already have a Privacy Notice page, please select it below. If not, create one.' ); ?>
     126                <?php _e( 'The new notice will include the suggested privacy text.' ); ?>
    127127        </p>
    128128        <p>
    129                 <?php _e( 'After your Privacy Policy page is set, we suggest that you edit it.' ); ?>
     129                <?php _e( 'After your Privacy Notice page is set, we suggest that you edit it.' ); ?>
    130130                <?php _e( 'On the edit page screen you will find additional privacy information added by your plugins.' ); ?>
    131                 <?php _e( 'We would also suggest reviewing your privacy policy from time to time, after a WordPress or a plugin update.' ); ?>
    132                 <?php _e( 'There may be changes or new suggested information for you to consider adding to your policy.' ); ?>
     131                <?php _e( 'We would also suggest reviewing your privacy notice from time to time, after a WordPress or a plugin update.' ); ?>
     132                <?php _e( 'There may be changes or new suggested information for you to consider adding to your notice.' ); ?>
    133133        </p>
    134134        <?php
    135135        if ( $privacy_policy_page_exists ) {
    require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    147147                        <?php
    148148                        printf(
    149149                                // translators: %1$s URL to Edit Page, %2$s URL to View Page
    150                                 __( '<a href="%1$s">Edit</a> or <a href="%2$s">view</a> your privacy policy page content.' ),
     150                                __( '<a href="%1$s">Edit</a> or <a href="%2$s">view</a> your privacy notice page content.' ),
    151151                                $edit_href,
    152152                                $view_href
    153153                        );
    require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    162162                        <th scope="row">
    163163                                <?php
    164164                                if ( $privacy_policy_page_exists ) {
    165                                         _e( 'Change your Privacy Policy page' );
     165                                        _e( 'Change your Privacy Notice page' );
    166166                                } else {
    167                                         _e( 'Select a Privacy Policy page' );
     167                                        _e( 'Select a Privacy Notice page' );
    168168                                }
    169169                                ?>
    170170                        </th>
  • src/wp-includes/link-template.php

    diff --git a/src/wp-includes/link-template.php b/src/wp-includes/link-template.php
    index 815c539..ffd55b1 100644
    a b function get_parent_theme_file_path( $file = '' ) { 
    42754275}
    42764276
    42774277/**
    4278  * Retrieves the URL to the privacy policy page.
     4278 * Retrieves the URL to the privacy notice page.
    42794279 *
    42804280 * @since 4.9.6
    42814281 *
    4282  * @return string The URL to the privacy policy page. Empty string if it doesn't exist.
     4282 * @return string The URL to the privacy notice page. Empty string if it doesn't exist.
    42834283 */
    42844284function get_privacy_policy_url() {
    42854285        $url            = '';
    function get_privacy_policy_url() { 
    42904290        }
    42914291
    42924292        /**
    4293          * Filters the URL of the privacy policy page.
     4293         * Filters the URL of the privacy notice page.
    42944294         *
    42954295         * @since 4.9.6
    42964296         *
    4297          * @param string $url            The URL to the privacy policy page. Empty string
     4297         * @param string $url            The URL to the privacy notice page. Empty string
    42984298         *                               if it doesn't exist.
    4299          * @param int    $policy_page_id The ID of privacy policy page.
     4299         * @param int    $policy_page_id The ID of privacy notice page.
    43004300         */
    43014301        return apply_filters( 'privacy_policy_url', $url, $policy_page_id );
    43024302}
    43034303
    43044304/**
    4305  * Displays the privacy policy link with formatting, when applicable.
     4305 * Displays the privacy notice link with formatting, when applicable.
    43064306 *
    43074307 * @since 4.9.6
    43084308 *
    4309  * @param string $before Optional. Display before privacy policy link. Default empty.
    4310  * @param string $after  Optional. Display after privacy policy link. Default empty.
     4309 * @param string $before Optional. Display before privacy notice link. Default empty.
     4310 * @param string $after  Optional. Display after privacy notice link. Default empty.
    43114311 */
    43124312function the_privacy_policy_link( $before = '', $after = '' ) {
    43134313        echo get_the_privacy_policy_link( $before, $after );
    43144314}
    43154315
    43164316/**
    4317  * Returns the privacy policy link with formatting, when applicable.
     4317 * Returns the privacy notice link with formatting, when applicable.
    43184318 *
    43194319 * @since 4.9.6
    43204320 *
    4321  * @param string $before Optional. Display before privacy policy link. Default empty.
    4322  * @param string $after  Optional. Display after privacy policy link. Default empty.
     4321 * @param string $before Optional. Display before privacy notice link. Default empty.
     4322 * @param string $after  Optional. Display after privacy notice link. Default empty.
    43234323 *
    43244324 * @return string Markup for the link and surrounding elements. Empty string if it
    43254325 *                doesn't exist.
    function get_the_privacy_policy_link( $before = '', $after = '' ) { 
    43324332                $link = sprintf(
    43334333                        '<a class="privacy-policy-link" href="%s">%s</a>',
    43344334                        esc_url( $privacy_policy_url ),
    4335                         __( 'Privacy Policy' )
     4335                        __( 'Privacy Notice' )
    43364336                );
    43374337        }
    43384338
    43394339        /**
    4340          * Filters the privacy policy link.
     4340         * Filters the privacy notice link.
    43414341         *
    43424342         * @since 4.9.6
    43434343         *
    4344          * @param string $link               The privacy policy link. Empty string if it
     4344         * @param string $link               The privacy notice link. Empty string if it
    43454345         *                                   doesn't exist.
    4346          * @param string $privacy_policy_url The URL of the privacy policy. Empty string
     4346         * @param string $privacy_policy_url The URL of the privacy notice. Empty string
    43474347         *                                   if it doesn't exist.
    43484348         */
    43494349        $link = apply_filters( 'the_privacy_policy_link', $link, $privacy_policy_url );