Making WordPress.org


Ignore:
Timestamp:
09/10/2026 07:34:24 PM (2 months ago)
Author:
obenland
Message:

Escape translated strings on output

Closes ​https://github.com/WordPress/wordpress.org/pull/895.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/comments.php

    r2379 r15179  
    11<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
    2 <p><?php _e( 'Enter your password to view comments.', 'wporg-showcase' ); ?></p>
     2<p><?php esc_html_e( 'Enter your password to view comments.', 'wporg-showcase' ); ?></p>
    33<?php return; endif; ?>
    44
    … …  
    1616        <p><cite><?php printf(
    1717                /* translators: 1: comment type, 2: comment author link, 3: comment date */
    18                 __( '%1$s from %2$s on %3$s', 'wporg-showcase' ),
     18                esc_html__( '%1$s from %2$s on %3$s', 'wporg-showcase' ),
    1919                comment_type( __( 'Comment', 'wporg-showcase' ), __( 'Trackback', 'wporg-showcase' ), __( 'Pingback', 'wporg-showcase' ) ),
    2020                comment_author_link(),
Note: See TracChangeset for help on using the changeset viewer.