Make WordPress Core

Changeset 44779


Ignore:
Timestamp:
02/28/2019 12:07:20 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Privacy: Escape Privacy Policy guide URL in in Privacy Policy edit page notice.

Props itowhid06, garrett-eclipse.
Fixes #44761.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/misc.php

    r44735 r44779  
    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(
  • trunk/src/wp-admin/privacy.php

    r44778 r44779  
    183183                        /* translators: 1: Privacy Policy guide URL, 2: additional link attributes, 3: accessibility text */
    184184                        __( '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.' ),
    185                         admin_url( 'tools.php?wp-privacy-policy-guide' ),
     185                        esc_url( admin_url( 'tools.php?wp-privacy-policy-guide' ) ),
    186186                        '',
    187187                        ''
Note: See TracChangeset for help on using the changeset viewer.