WordPress.org

Make WordPress Core

Changeset 44778


Ignore:
Timestamp:
02/28/2019 12:00:45 PM (3 weeks ago)
Author:
SergeyBiryukov
Message:

Privacy: Improve translator comments for Privacy Policy page links in Privacy Settings; escape URLs.

Props birgire, garrett-eclipse.
Fixes #46369.

File:
1 edited

Legend:

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

    r44493 r44778  
    157157
    158158            if ( 'publish' === get_post_status( $privacy_policy_page_id ) ) {
    159                 /* translators: 1: URL to edit page, 2: URL to view page */
    160                 printf( __( '<a href="%1$s">Edit</a> or <a href="%2$s">view</a> your Privacy Policy page content.' ), $edit_href, $view_href );
     159                printf(
     160                    /* translators: 1: URL to edit Privacy Policy page, 2: URL to view Privacy Policy page */
     161                    __( '<a href="%1$s">Edit</a> or <a href="%2$s">view</a> your Privacy Policy page content.' ),
     162                    esc_url( $edit_href ),
     163                    esc_url( $view_href )
     164                );
    161165            } else {
    162                 /* translators: 1: URL to edit page, 2: URL to preview page */
    163                 printf( __( '<a href="%1$s">Edit</a> or <a href="%2$s">preview</a> your Privacy Policy page content.' ), $edit_href, $view_href );
     166                printf(
     167                    /* translators: 1: URL to edit Privacy Policy page, 2: URL to preview Privacy Policy page */
     168                    __( '<a href="%1$s">Edit</a> or <a href="%2$s">preview</a> your Privacy Policy page content.' ),
     169                    esc_url( $edit_href ),
     170                    esc_url( $view_href )
     171                );
    164172            }
    165173
Note: See TracChangeset for help on using the changeset viewer.