WordPress.org

Make WordPress Core

Ticket #44761: 44761.3.diff

File 44761.3.diff, 1.5 KB (added by itowhid06, 9 months ago)
  • src/wp-admin/includes/misc.php

    diff --git a/src/wp-admin/includes/misc.php b/src/wp-admin/includes/misc.php
    index fac9fd5d26..85214e82d9 100644
    a b final class WP_Privacy_Policy_Content { 
    16441644                        /* translators: 1: Privacy Policy guide URL, 2: additional link attributes, 3: accessibility text */
    16451645                        printf(
    16461646                                __( 'Need help putting together your new Privacy Policy page? <a href="%1$s" %2$s>Check out our guide%3$s</a> for recommendations on what content to include, along with policies suggested by your plugins and theme.' ),
    1647                                 admin_url( 'tools.php?wp-privacy-policy-guide=1' ),
     1647                                esc_url( admin_url( 'tools.php?wp-privacy-policy-guide=1' ) ),
    16481648                                'target="_blank"',
    16491649                                sprintf(
    16501650                                        '<span class="screen-reader-text"> %s</span>',
  • src/wp-admin/privacy.php

    diff --git a/src/wp-admin/privacy.php b/src/wp-admin/privacy.php
    index 0747984efb..1da749816f 100644
    a b require_once( ABSPATH . 'wp-admin/admin-header.php' ); 
    174174                printf(
    175175                        /* translators: 1: Privacy Policy guide URL, 2: additional link attributes, 3: accessibility text */
    176176                        __( 'Need help putting together your new Privacy Policy page? <a href="%1$s" %2$s>Check out our guide%3$s</a> for recommendations on what content to include, along with policies suggested by your plugins and theme.' ),
    177                         admin_url( 'tools.php?wp-privacy-policy-guide' ),
     177                        esc_url( admin_url( 'tools.php?wp-privacy-policy-guide' ) ),
    178178                        '',
    179179                        ''
    180180                );