Making WordPress.org

Changeset 15179


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.

Location:
sites/trunk
Files:
204 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/browsehappy.com/public_html/functions.php

    r13031 r15179  
    269269        <?php if ( $results['name'] == 'Internet Explorer' && strpos( $ua, 'Windows NT 5.' ) !== false ) : ?>
    270270                <?php if ( $results['insecure'] ) : ?>
    271                         <p><?php printf( __( 'It looks like you&#8217;re using an insecure version of %s.', 'browsehappy' ), $results['name'] ); ?>
    272                         <?php _e( 'Using an outdated browser makes your computer unsafe.', 'browsehappy' ); ?>
     271                        <?php /* translators: %s: Browser name. */ ?>
     272                        <p><?php printf( esc_html__( 'It looks like you&#8217;re using an insecure version of %s.', 'browsehappy' ), esc_html( $results['name'] ) ); ?>
     273                                                <?php esc_html_e( 'Using an outdated browser makes your computer unsafe.', 'browsehappy' ); ?>
    273274                <?php else : ?>
    274                         <p><?php _e( 'It looks like you&#8217;re using an old version of Internet Explorer.', 'browsehappy' ); ?>
     275                        <p><?php esc_html_e( 'It looks like you&#8217;re using an old version of Internet Explorer.', 'browsehappy' ); ?>
    275276                <?php endif; ?>
    276                         <?php _e( 'On Windows XP, you are unable to update to the latest version. For the best experience on the web, we suggest you try a new browser.', 'browsehappy' ); ?></p>
     277                        <?php esc_html_e( 'On Windows XP, you are unable to update to the latest version. For the best experience on the web, we suggest you try a new browser.', 'browsehappy' ); ?></p>
    277278        <?php elseif ( $results['insecure'] ) : ?>
    278                 <p class="browser-status-text"><?php printf( __( 'It looks like you&#8217;re using an insecure version of %s.', 'browsehappy' ), $results['name'] ); ?>
    279                         <?php _e( 'Using an outdated browser makes your computer unsafe.', 'browsehappy' ); ?>
    280                         <?php _e( 'For the best experience on the web, please update your browser.', 'browsehappy' ); ?></p>
    281                 <p class="browser-status-action"><a href="<?php echo esc_url( $results['update_url'] ); ?>"><?php _e( 'Upgrade now!', 'browsehappy' ); ?></a></p>
     279                <?php /* translators: %s: Browser name. */ ?>
     280                <p class="browser-status-text"><?php printf( esc_html__( 'It looks like you&#8217;re using an insecure version of %s.', 'browsehappy' ), esc_html( $results['name'] ) ); ?>
     281                        <?php esc_html_e( 'Using an outdated browser makes your computer unsafe.', 'browsehappy' ); ?>
     282                        <?php esc_html_e( 'For the best experience on the web, please update your browser.', 'browsehappy' ); ?></p>
     283                <p class="browser-status-action"><a href="<?php echo esc_url( $results['update_url'] ); ?>"><?php esc_html_e( 'Upgrade now!', 'browsehappy' ); ?></a></p>
    282284        <?php else : ?>
    283                 <p class="browser-status-text"><?php printf( __( 'Your browser is out of date! It looks like you&#8217;re using an old version of %s.', 'browsehappy' ), $results['name'] ); ?>
    284                         <?php _e( 'For the best experience on the web, please update your browser.', 'browsehappy' ); ?></p>
    285                 <p class="browser-status-action"><a href="<?php echo esc_url( $results['update_url'] ); ?>"><?php _e( 'Upgrade now!', 'browsehappy' ); ?></a></p>
     285                <?php /* translators: %s: Browser name. */ ?>
     286                <p class="browser-status-text"><?php printf( esc_html__( 'Your browser is out of date! It looks like you&#8217;re using an old version of %s.', 'browsehappy' ), esc_html( $results['name'] ) ); ?>
     287                        <?php esc_html_e( 'For the best experience on the web, please update your browser.', 'browsehappy' ); ?></p>
     288                <p class="browser-status-action"><a href="<?php echo esc_url( $results['update_url'] ); ?>"><?php esc_html_e( 'Upgrade now!', 'browsehappy' ); ?></a></p>
    286289        <?php endif; ?>
    287290        </div>
    … …  
    299302                <p><?php
    300303                        /* translators: "English" should be translated directly and not to the name of your language. */
    301                         printf( __( 'Browse Happy is also available in English. <a href="%s">Click here to change the language to English</a>.', 'browsehappy' ), '/?locale=en' );
     304                        printf( wp_kses_post( __( 'Browse Happy is also available in English. <a href="%s">Click here to change the language to English</a>.', 'browsehappy' ) ), '/?locale=en' );
    302305                ?></p>
    303306        </div>
  • sites/trunk/browsehappy.com/public_html/index.php

    r15170 r15179  
    1616<head>
    1717        <meta charset="utf-8">
    18         <title><?php _e( 'Browse Happy', 'browsehappy' ); ?></title>
     18        <title><?php esc_html_e( 'Browse Happy', 'browsehappy' ); ?></title>
    1919        <meta name="description" content="<?php esc_attr_e( 'Online. Worry-free. Upgrade your browser today!', 'browsehappy' ); ?>" />
    2020        <meta name="author" content="WordPress" />
    … …  
    3535        <header>
    3636                <hgroup class="wrap">
    37                         <h1><?php _e( 'Browse <em>Happy</em>', 'browsehappy' ); ?></h1>
    38                         <h2><?php _e( 'Online. Worry-free. <em>Upgrade your browser today</em>!', 'browsehappy' ); ?></h2>
     37                        <h1><?php echo wp_kses_post( __( 'Browse <em>Happy</em>', 'browsehappy' ) ); ?></h1>
     38                        <h2><?php echo wp_kses_post( __( 'Online. Worry-free. <em>Upgrade your browser today</em>!', 'browsehappy' ) ); ?></h2>
    3939                </hgroup>
    4040        </header>
    … …  
    4848                                        <h2 lang="en"><?php echo $data->name; ?></h2>
    4949                                        <p class="info"><?php echo $data->info; ?></p>
    50                                         <p class="version"><?php printf( __( 'Latest Version: %s', 'browsehappy' ), '<strong>' . apply_filters( 'get_browsehappy_version', $browser ) . '</strong>' ); ?></p>
    51                                         <p class="website"><?php _e( 'Visit website for more info', 'browsehappy' ); ?></p>
     50                                        <?php /* translators: %s: Browser version. */ ?>
     51                                        <p class="version"><?php printf( esc_html__( 'Latest Version: %s', 'browsehappy' ), '<strong>' . esc_html( apply_filters( 'get_browsehappy_version', $browser ) ) . '</strong>' ); ?></p>
     52                                        <p class="website"><?php esc_html_e( 'Visit website for more info', 'browsehappy' ); ?></p>
    5253                                </a>
    5354                                <?php do_action( 'browsehappy_browser_after', $browser ); ?>
    … …  
    6061                <div class="wrap">
    6162                        <section id="about">
    62                                 <h2><?php _e( 'What is Browse Happy?', 'browsehappy' ); ?></h2>
     63                                <h2><?php esc_html_e( 'What is Browse Happy?', 'browsehappy' ); ?></h2>
    6364                                <p><?php $what = __( 'Using an outdated browser makes your computer unsafe. Browse Happy is a way for you to find out what are the latest versions of the major browsers around. You can also learn about alternative browsers that may fit you even better than the one you are currently using.', 'browsehappy' );
    6465echo $what; ?></p>
    6566                        </section><!-- #about -->
    6667                        <section id="share">
    67                                 <h2><?php _e( 'Share the Happiness', 'browsehappy' ); ?></h2>
     68                                <h2><?php esc_html_e( 'Share the Happiness', 'browsehappy' ); ?></h2>
    6869                                <nav>
    6970                                        <ul>
    … …  
    106107                        </section><!-- #share -->
    107108                        <div id="byline">
    108                                 <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'browsehappy' ) ); ?>" title="WordPress"><?php printf( __( 'Brought to you by %s', 'browsehappy' ), '<strong>WordPress</strong>' ); ?></a>
     109                                <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'browsehappy' ) ); ?>" title="WordPress"><?php printf( /* translators: %s: WordPress, in bold. */ esc_html__( 'Brought to you by %s', 'browsehappy' ), '<strong>WordPress</strong>' ); ?></a>
    109110                        </div><!-- #byline -->
    110111                </div>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/archive-forum.php

    r14281 r15179  
    11<?php get_header(); ?>
    22
    3 <h2 id="post-home"><?php _e( 'Support', 'bborg' ); ?></h2>
     3<h2 id="post-home"><?php esc_html_e( 'Support', 'bborg' ); ?></h2>
    44
    55<?php if ( 1 === bbp_get_paged() ) : // cached first page ?>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/archive.php

    r14281 r15179  
    88                        <cite>
    99                                <?php
    10                                 /* translators: 1: post date, 2: post author */
    11                                 printf( __( 'Published on %1$s by %2$s', 'bborg' ),
    12                                         get_the_time( 'F jS, Y' ),
    13                                         get_the_author_link()
     10                                printf(
     11                                        /* translators: 1: Publication date, 2: Author link. */
     12                                        esc_html__( 'Published on %1$s by %2$s', 'bborg' ),
     13                                        esc_html( get_the_time( 'F jS, Y' ) ),
     14                                        wp_kses_post( get_the_author_link() )
    1415                                );
    1516                                ?>
    … …  
    2627        ) );
    2728else : ?>
    28         <p><em><?php _e( 'Sorry, no posts matched your criteria.', 'bborg' ); ?></em></p>
     29        <p><em><?php esc_html_e( 'Sorry, no posts matched your criteria.', 'bborg' ); ?></em></p>
    2930<?php endif; ?>
    3031        <hr class="hidden" />
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/bbpress/feedback-search.php

    r442 r15179  
     1<?php
     2/**
     3 * Notice shown when a forum search has no terms.
     4 *
     5 * @package bbPress
     6 */
     7
     8?>
    19<div class="bbp-template-notice">
    2         <p><?php _e( 'Please enter some search terms above', 'bbpress' ); ?></p>
     10        <p><?php esc_html_e( 'Please enter some search terms above', 'bbpress' ); ?></p>
    311</div>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/bbpress/form-topic-merge.php

    r5044 r15179  
    2222                                <fieldset class="bbp-form">
    2323
    24                                         <legend><?php printf( __( 'Merge topic "%s"', 'bbpress' ), bbp_get_topic_title() ); ?></legend>
     24                                        <?php /* translators: %s: Topic title. */ ?>
     25                                        <legend><?php printf( esc_html__( 'Merge topic "%s"', 'bbpress' ), esc_html( bbp_get_topic_title() ) ); ?></legend>
    2526
    2627                                        <div>
    2728
    2829                                                <div class="bbp-template-notice info">
    29                                                         <p><?php _e( 'Select the topic to merge this one into. The destination topic will remain the lead topic, and this one will change into a reply.', 'bbpress' ); ?></p>
    30                                                         <p><?php _e( 'To keep this topic as the lead, go to the other topic and use the merge tool from there instead.', 'bbpress' ); ?></p>
     30                                                        <p><?php esc_html_e( 'Select the topic to merge this one into. The destination topic will remain the lead topic, and this one will change into a reply.', 'bbpress' ); ?></p>
     31                                                        <p><?php esc_html_e( 'To keep this topic as the lead, go to the other topic and use the merge tool from there instead.', 'bbpress' ); ?></p>
    3132                                                </div>
    3233
    3334                                                <div class="bbp-template-notice">
    34                                                         <p><?php _e( 'All replies within both the topics will be merged chronologically. The order of the merged replies is based on the time they were posted. If the destination topic was created after this one, its post date will be updated to a second earlier than this one.', 'bbpress' ); ?></p>
     35                                                        <p><?php esc_html_e( 'All replies within both the topics will be merged chronologically. The order of the merged replies is based on the time they were posted. If the destination topic was created after this one, its post date will be updated to a second earlier than this one.', 'bbpress' ); ?></p>
    3536                                                </div>
    3637
    3738                                                <fieldset class="bbp-form">
    38                                                         <legend><?php _e( 'Destination', 'bbpress' ); ?></legend>
     39                                                        <legend><?php esc_html_e( 'Destination', 'bbpress' ); ?></legend>
    3940                                                        <div>
    4041                                                                <?php if ( bbp_has_topics( array( 'show_stickies' => false, 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 'post__not_in' => array( bbp_get_topic_id() ) ) ) ) : ?>
    4142
    42                                                                         <label for="bbp_destination_topic"><?php _e( 'Merge with this topic:', 'bbpress' ); ?></label>
     43                                                                        <label for="bbp_destination_topic"><?php esc_html_e( 'Merge with this topic:', 'bbpress' ); ?></label>
    4344
    4445                                                                        <?php
    … …  
    5859                                                                <?php else : ?>
    5960
    60                                                                         <label><?php _e( 'There are no other topics in this forum to merge with.', 'bbpress' ); ?></label>
     61                                                                        <label><?php esc_html_e( 'There are no other topics in this forum to merge with.', 'bbpress' ); ?></label>
    6162
    6263                                                                <?php endif; ?>
    … …  
    6667
    6768                                                <fieldset class="bbp-form">
    68                                                         <legend><?php _e( 'Topic Extras', 'bbpress' ); ?></legend>
     69                                                        <legend><?php esc_html_e( 'Topic Extras', 'bbpress' ); ?></legend>
    6970
    7071                                                        <div>
    … …  
    7374
    7475                                                                        <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" />
    75                                                                         <label for="bbp_topic_subscribers"><?php _e( 'Merge topic subscribers', 'bbpress' ); ?></label><br />
     76                                                                        <label for="bbp_topic_subscribers"><?php esc_html_e( 'Merge topic subscribers', 'bbpress' ); ?></label><br />
    7677
    7778                                                                <?php endif; ?>
    7879
    7980                                                                <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" />
    80                                                                 <label for="bbp_topic_favoriters"><?php _e( 'Merge topic favoriters', 'bbpress' ); ?></label><br />
     81                                                                <label for="bbp_topic_favoriters"><?php esc_html_e( 'Merge topic favoriters', 'bbpress' ); ?></label><br />
    8182
    8283                                                                <?php if ( bbp_allow_topic_tags() ) : ?>
    8384
    8485                                                                        <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" />
    85                                                                         <label for="bbp_topic_tags"><?php _e( 'Merge topic tags', 'bbpress' ); ?></label><br />
     86                                                                        <label for="bbp_topic_tags"><?php esc_html_e( 'Merge topic tags', 'bbpress' ); ?></label><br />
    8687
    8788                                                                <?php endif; ?>
    … …  
    9192
    9293                                                <div class="bbp-template-notice error">
    93                                                         <p><?php _e( '<strong>WARNING:</strong> This process cannot be undone.', 'bbpress' ); ?></p>
     94                                                        <p><?php echo wp_kses_post( __( '<strong>WARNING:</strong> This process cannot be undone.', 'bbpress' ) ); ?></p>
    9495                                                </div>
    9596
    9697                                                <div class="bbp-submit-wrapper">
    97                                                         <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
     98                                                        <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button submit"><?php esc_html_e( 'Submit', 'bbpress' ); ?></button>
    9899                                                </div>
    99100                                        </div>
    … …  
    108109
    109110                <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
    110                         <div class="entry-content"><?php is_user_logged_in() ? _e( 'You do not have the permissions to edit this topic!', 'bbpress' ) : _e( 'You cannot edit this topic.', 'bbpress' ); ?></div>
     111                        <div class="entry-content"><?php is_user_logged_in() ? esc_html_e( 'You do not have the permissions to edit this topic!', 'bbpress' ) : esc_html_e( 'You cannot edit this topic.', 'bbpress' ); ?></div>
    111112                </div>
    112113
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/bbpress/form-topic-split.php

    r15111 r15179  
    2222                                <fieldset class="bbp-form">
    2323
    24                                         <legend><?php printf( __( 'Split topic "%s"', 'bbpress' ), bbp_get_topic_title() ); ?></legend>
     24                                        <?php /* translators: %s: Topic title. */ ?>
     25                                        <legend><?php printf( esc_html__( 'Split topic "%s"', 'bbpress' ), esc_html( bbp_get_topic_title() ) ); ?></legend>
    2526
    2627                                        <div>
    2728
    2829                                                <div class="bbp-template-notice info">
    29                                                         <p><?php _e( 'When you split a topic, you are slicing it in half starting with the reply you just selected. Choose to use that reply as a new topic with a new title, or merge those replies into an existing topic.', 'bbpress' ); ?></p>
     30                                                        <p><?php esc_html_e( 'When you split a topic, you are slicing it in half starting with the reply you just selected. Choose to use that reply as a new topic with a new title, or merge those replies into an existing topic.', 'bbpress' ); ?></p>
    3031                                                </div>
    3132
    3233                                                <div class="bbp-template-notice">
    33                                                         <p><?php _e( 'If you use the existing topic option, replies within both topics will be merged chronologically. The order of the merged replies is based on the time and date they were posted.', 'bbpress' ); ?></p>
     34                                                        <p><?php esc_html_e( 'If you use the existing topic option, replies within both topics will be merged chronologically. The order of the merged replies is based on the time and date they were posted.', 'bbpress' ); ?></p>
    3435                                                </div>
    3536
    3637                                                <fieldset class="bbp-form">
    37                                                         <legend><?php _e( 'Split Method', 'bbpress' ); ?></legend>
     38                                                        <legend><?php esc_html_e( 'Split Method', 'bbpress' ); ?></legend>
    3839
    3940                                                        <div>
    4041                                                                <input name="bbp_topic_split_option" id="bbp_topic_split_option_reply" type="radio" checked="checked" value="reply" />
    41                                                                 <label for="bbp_topic_split_option_reply"><?php printf( __( 'New topic in <strong>%s</strong> titled:', 'bbpress' ), bbp_get_forum_title( bbp_get_topic_forum_id( bbp_get_topic_id() ) ) ); ?></label>
     42                                                                <?php /* translators: %s: Forum title. */ ?>
     43                                                                <label for="bbp_topic_split_option_reply"><?php printf( wp_kses_post( __( 'New topic in <strong>%s</strong> titled:', 'bbpress' ) ), esc_html( bbp_get_forum_title( bbp_get_topic_forum_id( bbp_get_topic_id() ) ) ) ); ?></label>
    4244                                                                <input type="text" id="bbp_topic_split_destination_title" value="<?php echo esc_attr( sprintf( __( 'Split: %s', 'bbpress' ), bbp_get_topic_title() ) ); ?>" size="35" name="bbp_topic_split_destination_title" />
    4345                                                        </div>
    … …  
    4749                                                                <div>
    4850                                                                        <input name="bbp_topic_split_option" id="bbp_topic_split_option_existing" type="radio" value="existing" />
    49                                                                         <label for="bbp_topic_split_option_existing"><?php _e( 'Use an existing topic in this forum:', 'bbpress' ); ?></label>
     51                                                                        <label for="bbp_topic_split_option_existing"><?php esc_html_e( 'Use an existing topic in this forum:', 'bbpress' ); ?></label>
    5052
    5153                                                                        <?php
    … …  
    6971
    7072                                                <fieldset class="bbp-form">
    71                                                         <legend><?php _e( 'Topic Extras', 'bbpress' ); ?></legend>
     73                                                        <legend><?php esc_html_e( 'Topic Extras', 'bbpress' ); ?></legend>
    7274
    7375                                                        <div>
    … …  
    7678
    7779                                                                        <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" />
    78                                                                         <label for="bbp_topic_subscribers"><?php _e( 'Copy subscribers to the new topic', 'bbpress' ); ?></label><br />
     80                                                                        <label for="bbp_topic_subscribers"><?php esc_html_e( 'Copy subscribers to the new topic', 'bbpress' ); ?></label><br />
    7981
    8082                                                                <?php endif; ?>
    8183
    8284                                                                <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" />
    83                                                                 <label for="bbp_topic_favoriters"><?php _e( 'Copy favoriters to the new topic', 'bbpress' ); ?></label><br />
     85                                                                <label for="bbp_topic_favoriters"><?php esc_html_e( 'Copy favoriters to the new topic', 'bbpress' ); ?></label><br />
    8486
    8587                                                                <?php if ( bbp_allow_topic_tags() ) : ?>
    8688
    8789                                                                        <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" />
    88                                                                         <label for="bbp_topic_tags"><?php _e( 'Copy topic tags to the new topic', 'bbpress' ); ?></label><br />
     90                                                                        <label for="bbp_topic_tags"><?php esc_html_e( 'Copy topic tags to the new topic', 'bbpress' ); ?></label><br />
    8991
    9092                                                                <?php endif; ?>
    … …  
    9496
    9597                                                <div class="bbp-template-notice error">
    96                                                         <p><?php _e( '<strong>WARNING:</strong> This process cannot be undone.', 'bbpress' ); ?></p>
     98                                                        <p><?php echo wp_kses_post( __( '<strong>WARNING:</strong> This process cannot be undone.', 'bbpress' ) ); ?></p>
    9799                                                </div>
    98100
    99101                                                <div class="bbp-submit-wrapper">
    100                                                         <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
     102                                                        <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button submit"><?php esc_html_e( 'Submit', 'bbpress' ); ?></button>
    101103                                                </div>
    102104                                        </div>
    … …  
    111113
    112114                <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
    113                         <div class="entry-content"><?php is_user_logged_in() ? _e( 'You do not have the permissions to edit this topic!', 'bbpress' ) : _e( 'You cannot edit this topic.', 'bbpress' ); ?></div>
     115                        <div class="entry-content"><?php is_user_logged_in() ? esc_html_e( 'You do not have the permissions to edit this topic!', 'bbpress' ) : esc_html_e( 'You cannot edit this topic.', 'bbpress' ); ?></div>
    114116                </div>
    115117
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/bbpress/form-topic.php

    r11022 r15179  
    2222                                        <?php
    2323                                                if ( bbp_is_topic_edit() )
    24                                                         printf( __( 'Now Editing &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_topic_title() );
     24                                                        /* translators: %s: Topic title. */
     25                                                        printf( esc_html__( 'Now Editing &ldquo;%s&rdquo;', 'bbpress' ), esc_html( bbp_get_topic_title() ) );
    2526                                                else
    26                                                         bbp_is_single_forum() ? printf( __( 'Create New Topic in &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_forum_title() ) : _e( 'Create New Topic', 'bbpress' );
     27                                                        /* translators: %s: Forum title. */
     28                                                        bbp_is_single_forum() ? printf( esc_html__( 'Create New Topic in &ldquo;%s&rdquo;', 'bbpress' ), esc_html( bbp_get_forum_title() ) ) : esc_html_e( 'Create New Topic', 'bbpress' );
    2729                                        ?>
    2830
    … …  
    3436
    3537                                        <div class="bbp-template-notice">
    36                                                 <p><?php _e( 'If asking for help, please include your WordPress version, bbPress version, and a link to your site.',                              'bbporg' ); ?></p>
    37                                                 <p><?php _e( 'If you have a problem while using a non-bundled theme, check if it happens with TwentyTen or TwentyEleven.',                        'bbporg' ); ?></p>
    38                                                 <p><?php _e( 'If you found a bug, please create a <a href="https://bbpress.trac.wordpress.org/">trac ticket</a> with detailed duplication steps.', 'bbporg' ); ?></p>
     38                                                <p><?php esc_html_e( 'If asking for help, please include your WordPress version, bbPress version, and a link to your site.', 'bbporg' ); ?></p>
     39                                                <p><?php esc_html_e( 'If you have a problem while using a non-bundled theme, check if it happens with TwentyTen or TwentyEleven.', 'bbporg' ); ?></p>
     40                                                <p><?php echo wp_kses_post( __( 'If you found a bug, please create a <a href="https://bbpress.trac.wordpress.org/">trac ticket</a> with detailed duplication steps.', 'bbporg' ) ); ?></p>
    3941                                        </div>
    4042
    … …  
    4446
    4547                                        <div class="bbp-template-notice">
    46                                                 <p><?php _e( 'This forum is marked as closed to new topics, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></p>
     48                                                <p><?php esc_html_e( 'This forum is marked as closed to new topics, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></p>
    4749                                        </div>
    4850
    … …  
    5254
    5355                                        <div class="bbp-template-notice">
    54                                                 <p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
     56                                                <p><?php esc_html_e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
    5557                                        </div>
    5658
    … …  
    6668
    6769                                        <p>
    68                                                 <label for="bbp_topic_title"><?php printf( __( 'Topic Title (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br />
     70                                                <?php /* translators: %d: Maximum title length. */ ?>
     71                                                <label for="bbp_topic_title"><?php printf( esc_html__( 'Topic Title (Maximum Length: %d):', 'bbpress' ), (int) bbp_get_title_max_length() ); ?></label><br />
    6972                                                <input type="text" id="bbp_topic_title" value="<?php bbp_form_topic_title(); ?>" size="40" name="bbp_topic_title" maxlength="<?php bbp_title_max_length(); ?>" />
    7073                                        </p>
    … …  
    7780
    7881                                                <p>
    79                                                         <label for="bbp_reply_content"><?php _e( 'Reply:', 'bbpress' ); ?></label><br />
     82                                                        <label for="bbp_reply_content"><?php esc_html_e( 'Reply:', 'bbpress' ); ?></label><br />
    8083                                                        <textarea id="bbp_topic_content" name="bbp_topic_content" cols="60" rows="6"><?php bbp_form_topic_content(); ?></textarea>
    8184                                                </p>
    … …  
    9295
    9396                                                <p class="form-allowed-tags">
    94                                                         <label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />
     97                                                        <label><?php echo wp_kses_post( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:', 'bbpress' ) ); ?></label><br />
    9598                                                        <code><?php bbp_allowed_tags(); ?></code>
    9699                                                </p>
    … …  
    101104
    102105                                        <p>
    103                                                 <label for="bbp_topic_tags"><?php _e( 'Topic Tags:', 'bbpress' ); ?></label><br />
     106                                                <label for="bbp_topic_tags"><?php esc_html_e( 'Topic Tags:', 'bbpress' ); ?></label><br />
    104107                                                <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />
    105108                                        </p>
    … …  
    112115
    113116                                                <p>
    114                                                         <label for="bbp_forum_id"><?php _e( 'Forum:', 'bbpress' ); ?></label><br />
     117                                                        <label for="bbp_forum_id"><?php esc_html_e( 'Forum:', 'bbpress' ); ?></label><br />
    115118                                                        <?php bbp_dropdown( array( 'selected' => bbp_get_form_topic_forum() ) ); ?>
    116119                                                </p>
    … …  
    126129                                                <p>
    127130
    128                                                         <label for="bbp_stick_topic"><?php _e( 'Topic Type:', 'bbpress' ); ?></label><br />
     131                                                        <label for="bbp_stick_topic"><?php esc_html_e( 'Topic Type:', 'bbpress' ); ?></label><br />
    129132
    130133                                                        <?php bbp_topic_type_select(); ?>
    … …  
    145148                                                        <?php if ( bbp_is_topic_edit() && ( get_the_author_meta( 'ID' ) != bbp_get_current_user_id() ) ) : ?>
    146149
    147                                                                 <label for="bbp_topic_subscription"><?php _e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
     150                                                                <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
    148151
    149152                                                        <?php else : ?>
    150153
    151                                                                 <label for="bbp_topic_subscription"><?php _e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>
     154                                                                <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>
    152155
    153156                                                        <?php endif; ?>
    … …  
    165168                                                        <legend>
    166169                                                                <input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php bbp_form_topic_log_edit(); ?> />
    167                                                                 <label for="bbp_log_topic_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />
     170                                                                <label for="bbp_log_topic_edit"><?php esc_html_e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />
    168171                                                        </legend>
    169172
    170173                                                        <div>
    171                                                                 <label for="bbp_topic_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br />
     174                                                                <label for="bbp_topic_edit_reason"><?php printf( esc_html__( 'Optional reason for editing:', 'bbpress' ), esc_html( bbp_get_current_user_name() ) ); ?></label><br />
    172175                                                                <input type="text" value="<?php bbp_form_topic_edit_reason(); ?>" size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" />
    173176                                                        </div>
    … …  
    184187                                                <?php do_action( 'bbp_theme_before_topic_form_submit_button' ); ?>
    185188
    186                                                 <button type="submit" id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
     189                                                <button type="submit" id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php esc_html_e( 'Submit', 'bbpress' ); ?></button>
    187190
    188191                                                <?php do_action( 'bbp_theme_after_topic_form_submit_button' ); ?>
    … …  
    207210        <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
    208211                <div class="bbp-template-notice">
    209                         <p><?php printf( __( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title() ); ?></p>
     212                        <?php /* translators: %s: Forum title. */ ?>
     213                        <p><?php printf( esc_html__( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), esc_html( bbp_get_forum_title() ) ); ?></p>
    210214                </div>
    211215        </div>
    … …  
    215219        <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
    216220                <div class="bbp-template-notice">
    217                         <p><?php is_user_logged_in() ? _e( 'You cannot create new topics at this time.', 'bbpress' ) : _e( 'You must be logged in to create new topics.', 'bbpress' ); ?></p>
     221                        <p><?php is_user_logged_in() ? esc_html_e( 'You cannot create new topics at this time.', 'bbpress' ) : esc_html_e( 'You must be logged in to create new topics.', 'bbpress' ); ?></p>
    218222                </div>
    219223        </div>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/bbpress/loop-forums.php

    r442 r15179  
    66
    77                <ul class="forum-titles">
    8                         <li class="bbp-forum-info"><?php _e( 'Forum', 'bbpress' ); ?></li>
    9                         <li class="bbp-forum-reply-count"><?php _e( 'Posts', 'bbpress' ); ?></li>
     8                        <li class="bbp-forum-info"><?php esc_html_e( 'Forum', 'bbpress' ); ?></li>
     9                        <li class="bbp-forum-reply-count"><?php esc_html_e( 'Posts', 'bbpress' ); ?></li>
    1010                </ul>
    1111
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/bbpress/loop-single-topic.php

    r15170 r15179  
    4747                        <?php do_action( 'bbp_theme_before_topic_started_by' ); ?>
    4848
    49                         <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span>
     49                        <?php /* translators: %1$s: Topic author link. */ ?>
     50                        <span class="bbp-topic-started-by"><?php printf( esc_html__( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- bbPress builds this markup; wp_kses_post() would strip the avatar's srcset and decoding attributes. ?></span>
    5051
    5152                        <?php do_action( 'bbp_theme_after_topic_started_by' ); ?>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/buddypress/activity/index.php

    r442 r15179  
    1717                        <?php do_action( 'bp_before_activity_type_tab_all' ); ?>
    1818
    19                         <li class="selected" id="activity-all"><a href="<?php bp_activity_directory_permalink(); ?>" title="<?php esc_attr_e( 'The public activity for everyone on this site.', 'buddypress' ); ?>"><?php printf( __( 'All Members <span5%s</span>', 'buddypress' ), 'ms' ); ?></a></li>
     19                        <li class="selected" id="activity-all"><a href="<?php bp_activity_directory_permalink(); ?>" title="<?php esc_attr_e( 'The public activity for everyone on this site.', 'buddypress' ); ?>"><?php printf( /* translators: %s: Member count. */ wp_kses_post( __( 'All Members <span>%s</span>', 'buddypress' ) ), esc_html( bp_get_total_member_count() ) ); ?></a></li>
    2020
    2121                        <?php if ( is_user_logged_in() ) : ?>
    … …  
    2727                                        <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    2828
    29                                                 <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/'; ?>" title="<?php esc_attr_e( 'The activity of my friends only.', 'buddypress' ); ?>"><?php printf( __( 'My Friends <span>%s</span>', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?></a></li>
     29                                                <li id="activity-friends"><a href="<?php echo esc_url( bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/' ); ?>" title="<?php esc_attr_e( 'The activity of my friends only.', 'buddypress' ); ?>"><?php printf( /* translators: %s: Friend count. */ wp_kses_post( __( 'My Friends <span>%s</span>', 'buddypress' ) ), esc_html( bp_get_total_friend_count( bp_loggedin_user_id() ) ) ); ?></a></li>
    3030
    3131                                        <?php endif; ?>
    … …  
    3939                                        <?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
    4040
    41                                                 <li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_groups_slug() . '/'; ?>" title="<?php esc_attr_e( 'The activity of groups I am a member of.', 'buddypress' ); ?>"><?php printf( __( 'My Groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
     41                                                <li id="activity-groups"><a href="<?php echo esc_url( bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_groups_slug() . '/' ); ?>" title="<?php esc_attr_e( 'The activity of groups I am a member of.', 'buddypress' ); ?>"><?php printf( /* translators: %s: Group count. */ wp_kses_post( __( 'My Groups <span>%s</span>', 'buddypress' ) ), esc_html( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ); ?></a></li>
    4242
    4343                                        <?php endif; ?>
    … …  
    4949                                <?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?>
    5050
    51                                         <li id="activity-favorites"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/'; ?>" title="<?php esc_attr_e( "The activity I've marked as a favorite.", 'buddypress' ); ?>"><?php printf( __( 'My Favorites <span>%s</span>', 'buddypress' ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
     51                                        <li id="activity-favorites"><a href="<?php echo esc_url( bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/' ); ?>" title="<?php esc_attr_e( "The activity I've marked as a favorite.", 'buddypress' ); ?>"><?php printf( /* translators: %s: Favorite count. */ wp_kses_post( __( 'My Favorites <span>%s</span>', 'buddypress' ) ), esc_html( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) ); ?></a></li>
    5252
    5353                                <?php endif; ?>
    … …  
    5555                                <?php do_action( 'bp_before_activity_type_tab_mentions' ); ?>
    5656
    57                                 <li id="activity-mentions"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/'; ?>" title="<?php esc_attr_e( 'Activity that I have been mentioned in.', 'buddypress' ); ?>"><?php _e( 'Mentions', 'buddypress' ); ?><?php if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) : ?> <strong><?php printf( __( '<span>%s new</span>', 'buddypress' ), bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ); ?></strong><?php endif; ?></a></li>
     57                                <li id="activity-mentions"><a href="<?php echo esc_url( bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/' ); ?>" title="<?php esc_attr_e( 'Activity that I have been mentioned in.', 'buddypress' ); ?>"><?php esc_html_e( 'Mentions', 'buddypress' ); ?>
     58                                <?php
     59                                if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) :
     60                                        ?>
     61                                        <?php /* translators: %s: Number of new mentions. */ ?>
     62                                        <strong><?php printf( wp_kses_post( __( '<span>%s new</span>', 'buddypress' ) ), esc_html( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) ); ?></strong><?php endif; ?></a></li>
    5863
    5964                        <?php endif; ?>
    … …  
    6570        <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    6671                <ul>
    67                         <li class="feed"><a href="<?php bp_sitewide_activity_feed_link(); ?>" title="<?php esc_attr_e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ); ?></a></li>
     72                        <li class="feed"><a href="<?php bp_sitewide_activity_feed_link(); ?>" title="<?php esc_attr_e( 'RSS Feed', 'buddypress' ); ?>"><?php esc_html_e( 'RSS', 'buddypress' ); ?></a></li>
    6873
    6974                        <?php do_action( 'bp_activity_syndication_options' ); ?>
    7075
    7176                        <li id="activity-filter-select" class="last">
    72                                 <label for="activity-filter-by"><?php _e( 'Show:', 'buddypress' ); ?></label>
     77                                <label for="activity-filter-by"><?php esc_html_e( 'Show:', 'buddypress' ); ?></label>
    7378                                <select id="activity-filter-by">
    74                                         <option value="-1"><?php _e( 'Everything', 'buddypress' ); ?></option>
    75                                         <option value="activity_update"><?php _e( 'Updates', 'buddypress' ); ?></option>
     79                                        <option value="-1"><?php esc_html_e( 'Everything', 'buddypress' ); ?></option>
     80                                        <option value="activity_update"><?php esc_html_e( 'Updates', 'buddypress' ); ?></option>
    7681
    7782                                        <?php if ( bp_is_active( 'blogs' ) ) : ?>
    7883
    79                                                 <option value="new_blog_post"><?php _e( 'Posts', 'buddypress' ); ?></option>
    80                                                 <option value="new_blog_comment"><?php _e( 'Comments', 'buddypress' ); ?></option>
     84                                                <option value="new_blog_post"><?php esc_html_e( 'Posts', 'buddypress' ); ?></option>
     85                                                <option value="new_blog_comment"><?php esc_html_e( 'Comments', 'buddypress' ); ?></option>
    8186
    8287                                        <?php endif; ?>
    … …  
    8489                                        <?php if ( bp_is_active( 'forums' ) ) : ?>
    8590
    86                                                 <option value="new_forum_topic"><?php _e( 'Forum Topics', 'buddypress' ); ?></option>
    87                                                 <option value="new_forum_post"><?php _e( 'Forum Replies', 'buddypress' ); ?></option>
     91                                                <option value="new_forum_topic"><?php esc_html_e( 'Forum Topics', 'buddypress' ); ?></option>
     92                                                <option value="new_forum_post"><?php esc_html_e( 'Forum Replies', 'buddypress' ); ?></option>
    8893
    8994                                        <?php endif; ?>
    … …  
    9196                                        <?php if ( bp_is_active( 'groups' ) ) : ?>
    9297
    93                                                 <option value="created_group"><?php _e( 'New Groups', 'buddypress' ); ?></option>
    94                                                 <option value="joined_group"><?php _e( 'Group Memberships', 'buddypress' ); ?></option>
     98                                                <option value="created_group"><?php esc_html_e( 'New Groups', 'buddypress' ); ?></option>
     99                                                <option value="joined_group"><?php esc_html_e( 'Group Memberships', 'buddypress' ); ?></option>
    95100
    96101                                        <?php endif; ?>
    … …  
    98103                                        <?php if ( bp_is_active( 'friends' ) ) : ?>
    99104
    100                                                 <option value="friendship_accepted,friendship_created"><?php _e( 'Friendships', 'buddypress' ); ?></option>
     105                                                <option value="friendship_accepted,friendship_created"><?php esc_html_e( 'Friendships', 'buddypress' ); ?></option>
    101106
    102107                                        <?php endif; ?>
    103108
    104                                         <option value="new_member"><?php _e( 'New Members', 'buddypress' ); ?></option>
     109                                        <option value="new_member"><?php esc_html_e( 'New Members', 'buddypress' ); ?></option>
    105110
    106111                                        <?php do_action( 'bp_activity_filter_options' ); ?>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/buddypress/members/single/profile/edit.php

    r442 r15179  
    88        <?php do_action( 'bp_before_profile_field_content' ); ?>
    99
    10                 <h4><?php printf( __( "Editing '%s' Profile Group", "buddypress" ), bp_get_the_profile_group_name() ); ?></h4>
     10                <?php /* translators: %s: Profile group name. */ ?>
     11                <h4><?php printf( esc_html__( "Editing '%s' Profile Group", 'buddypress' ), esc_html( bp_get_the_profile_group_name() ) ); ?></h4>
    1112
    1213                <ul class="button-nav">
    … …  
    2425                                <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?>
    2526
    26                                         <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
     27                                        <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php echo bp_get_the_profile_field_is_required() ? esc_html__( '(required)', 'buddypress' ) : ''; ?></label>
    2728                                        <input type="text" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" value="<?php bp_the_profile_field_edit_value(); ?>" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>/>
    2829
    … …  
    3132                                <?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?>
    3233
    33                                         <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
     34                                        <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php echo bp_get_the_profile_field_is_required() ? esc_html__( '(required)', 'buddypress' ) : ''; ?></label>
    3435                                        <textarea rows="5" cols="40" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>><?php bp_the_profile_field_edit_value(); ?></textarea>
    3536
    … …  
    3839                                <?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?>
    3940
    40                                         <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
     41                                        <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php echo bp_get_the_profile_field_is_required() ? esc_html__( '(required)', 'buddypress' ) : ''; ?></label>
    4142                                        <select name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>>
    4243                                                <?php bp_the_profile_field_options(); ?>
    … …  
    4748                                <?php if ( 'multiselectbox' == bp_get_the_profile_field_type() ) : ?>
    4849
    49                                         <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
     50                                        <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php echo bp_get_the_profile_field_is_required() ? esc_html__( '(required)', 'buddypress' ) : ''; ?></label>
    5051                                        <select name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" multiple="multiple" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>>
    5152
    … …  
    5657                                        <?php if ( !bp_get_the_profile_field_is_required() ) : ?>
    5758
    58                                                 <a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name(); ?>' );"><?php _e( 'Clear', 'buddypress' ); ?></a>
     59                                                <a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name(); ?>' );"><?php esc_html_e( 'Clear', 'buddypress' ); ?></a>
    5960
    6061                                        <?php endif; ?>
    … …  
    6566
    6667                                        <div class="radio">
    67                                                 <span class="label"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></span>
     68                                                <span class="label"><?php bp_the_profile_field_name(); ?>
     69                                                <?php
     70                                                if ( bp_get_the_profile_field_is_required() ) :
     71                                                        ?>
     72                                                        <?php esc_html_e( '(required)', 'buddypress' ); ?><?php endif; ?></span>
    6873
    6974                                                <?php bp_the_profile_field_options(); ?>
    … …  
    7176                                                <?php if ( !bp_get_the_profile_field_is_required() ) : ?>
    7277
    73                                                         <a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name(); ?>' );"><?php _e( 'Clear', 'buddypress' ); ?></a>
     78                                                        <a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name(); ?>' );"><?php esc_html_e( 'Clear', 'buddypress' ); ?></a>
    7479
    7580                                                <?php endif; ?>
    … …  
    8186
    8287                                        <div class="checkbox">
    83                                                 <span class="label"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></span>
     88                                                <span class="label"><?php bp_the_profile_field_name(); ?>
     89                                                <?php
     90                                                if ( bp_get_the_profile_field_is_required() ) :
     91                                                        ?>
     92                                                        <?php esc_html_e( '(required)', 'buddypress' ); ?><?php endif; ?></span>
    8493
    8594                                                <?php bp_the_profile_field_options(); ?>
    … …  
    91100
    92101                                        <div class="datebox">
    93                                                 <label for="<?php bp_the_profile_field_input_name(); ?>_day"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
     102                                                <label for="<?php bp_the_profile_field_input_name(); ?>_day"><?php bp_the_profile_field_name(); ?>
     103                                                <?php
     104                                                if ( bp_get_the_profile_field_is_required() ) :
     105                                                        ?>
     106                                                        <?php esc_html_e( '(required)', 'buddypress' ); ?><?php endif; ?></label>
    94107
    95108                                                <select name="<?php bp_the_profile_field_input_name(); ?>_day" id="<?php bp_the_profile_field_input_name(); ?>_day" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>>
    … …  
    124137
    125138        <div class="submit">
    126                 <input type="submit" name="profile-group-edit-submit" id="profile-group-edit-submit" value="<?php _e( 'Save Changes', 'buddypress' ); ?> " />
     139                <input type="submit" name="profile-group-edit-submit" id="profile-group-edit-submit" value="<?php esc_attr_e( 'Save Changes', 'buddypress' ); ?> " />
    127140        </div>
    128141
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/footer.php

    r14281 r15179  
     1<?php
     2/**
     3 * The template for displaying the footer.
     4 *
     5 * @package bb-base
     6 */
     7
     8?>
    19                        </div>
    210                </div>
    … …  
    614                        <div class="links">
    715                                <p>
    8                                         <a href="https://wordpress.org"><?php _e( 'WordPress.org', 'bbporg'); ?></a>
    9                                         <a href="https://bbpress.org"><?php _e( 'bbPress.org', 'bbporg'); ?></a>
    10                                         <a href="https://buddypress.org"><?php _e( 'BuddyPress.org', 'bbporg'); ?></a>
    11                                         <a href="https://ma.tt"><?php _e( 'Matt', 'bbporg' ); ?></a>
    12                                         <a href="<?php bloginfo( 'rss2_url' ); ?>" title="<?php esc_attr_e( 'RSS Feed for Articles', 'bbporg' ); ?>"><?php _e( 'Blog RSS', 'bbporg' ); ?></a>
     16                                        <a href="https://wordpress.org"><?php esc_html_e( 'WordPress.org', 'bbporg' ); ?></a>
     17                                        <a href="https://bbpress.org"><?php esc_html_e( 'bbPress.org', 'bbporg' ); ?></a>
     18                                        <a href="https://buddypress.org"><?php esc_html_e( 'BuddyPress.org', 'bbporg' ); ?></a>
     19                                        <a href="https://ma.tt"><?php esc_html_e( 'Matt', 'bbporg' ); ?></a>
     20                                        <a href="<?php bloginfo( 'rss2_url' ); ?>" title="<?php esc_attr_e( 'RSS Feed for Articles', 'bbporg' ); ?>"><?php esc_html_e( 'Blog RSS', 'bbporg' ); ?></a>
    1321                                </p>
    1422                        </div>
    1523                        <div class="details">
    1624                                <p>
    17                                         <a href="https://bbpress.org/about/gpl/"><?php _e('GPL', 'bbporg'); ?></a>
    18                                         <a href="https://bbpress.org/contact/"><?php _e('Contact Us', 'bbporg'); ?></a>
    19                                         <a href="https://wordpress.org/about/privacy/"><?php _e('Privacy', 'bbporg'); ?></a>
    20                                         <a href="https://bbpress.org/terms/"><?php _e('Terms of Service', 'bbporg'); ?></a>
    21                                         <a href="https://x.com/bbpress"><?php _e( 'X', 'bbporg'); ?></a>
     25                                        <a href="https://bbpress.org/about/gpl/"><?php esc_html_e( 'GPL', 'bbporg' ); ?></a>
     26                                        <a href="https://bbpress.org/contact/"><?php esc_html_e( 'Contact Us', 'bbporg' ); ?></a>
     27                                        <a href="https://wordpress.org/about/privacy/"><?php esc_html_e( 'Privacy', 'bbporg' ); ?></a>
     28                                        <a href="https://bbpress.org/terms/"><?php esc_html_e( 'Terms of Service', 'bbporg' ); ?></a>
     29                                        <a href="https://x.com/bbpress"><?php esc_html_e( 'X', 'bbporg' ); ?></a>
    2230                                </p>
    2331                        </div>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/functions.php

    r15172 r15179  
    7878        <form role="search" method="get" id="searchform" action="">
    7979                <div>
    80                         <h2><?php _e( 'Forum Search', 'bborg'); ?></h2>
    81                         <label class="screen-reader-text hidden" for="ts"><?php _e( 'Search for:', 'bborg' ); ?></label>
     80                        <h2><?php esc_html_e( 'Forum Search', 'bborg' ); ?></h2>
     81                        <label class="screen-reader-text hidden" for="ts"><?php esc_html_e( 'Search for:', 'bborg' ); ?></label>
    8282                        <input type="text" value="<?php echo bb_base_topic_search_query(); ?>" name="ts" id="ts" placeholder="<?php esc_attr_e( 'Search', 'bborg' ); ?>" />
    8383                </div>
    … …  
    9292        <form role="search" method="get" id="searchform" action="">
    9393                <div>
    94                         <h2><?php _e( 'Reply Search', 'bborg'); ?></h2>
    95                         <label class="screen-reader-text hidden" for="rs"><?php _e( 'Search for:', 'bborg' ); ?></label>
     94                        <h2><?php esc_html_e( 'Reply Search', 'bborg' ); ?></h2>
     95                        <label class="screen-reader-text hidden" for="rs"><?php esc_html_e( 'Search for:', 'bborg' ); ?></label>
    9696                        <input type="text" value="<?php echo bb_base_reply_search_query(); ?>" name="rs" id="rs" placeholder="<?php esc_attr_e( 'Search', 'bborg' ); ?>" />
    9797                </div>
    … …  
    106106        <form role="search" method="get" id="searchform" action="">
    107107                <div>
    108                         <h2><?php _e( 'Plugin Search', 'bborg'); ?></h2>
    109                         <label class="screen-reader-text hidden" for="ps"><?php _e( 'Search for:', 'bborg' ); ?></label>
     108                        <h2><?php esc_html_e( 'Plugin Search', 'bborg' ); ?></h2>
     109                        <label class="screen-reader-text hidden" for="ps"><?php esc_html_e( 'Search for:', 'bborg' ); ?></label>
    110110                        <input type="text" value="<?php echo bb_base_plugin_search_query(); ?>" name="ps" id="ts" placeholder="<?php esc_attr_e( 'Search', 'bborg' ); ?>" />
    111111                </div>
    … …  
    177177
    178178        <li class="topic-forum"><?php
    179                 /* translators: %s: forum title */
    180                 printf( __( 'In: %s', 'bborg' ),
    181                         sprintf( '<a href="%s">%s</a>',
     179                printf(
     180                        /* translators: %s: Forum title. */
     181                        esc_html__( 'In: %s', 'bborg' ),
     182                        sprintf(
     183                                '<a href="%s">%s</a>',
    182184                                esc_url( bbp_get_forum_permalink( bbp_get_topic_forum_id() ) ),
    183                                 bbp_get_topic_forum_title()
     185                                esc_html( bbp_get_topic_forum_title() )
    184186                        )
    185187                );
    … …  
    193195        <?php if ( !empty( $last_reply  ) ) : ?>
    194196                <li class="topic-freshness-author"><?php
    195                         /* translators: %s: reply author link */
    196                         printf( __( 'Last voice: %s', 'bborg' ),
    197                                 bbp_get_author_link( array( 'type' => 'name', 'post_id' => $last_reply, 'size' => '15' ) )
     197                        printf(
     198                                /* translators: %s: Reply author link. */
     199                                esc_html__( 'Last voice: %s', 'bborg' ),
     200                                wp_kses_post(
     201                                        bbp_get_author_link(
     202                                                array(
     203                                                        'type'    => 'name',
     204                                                        'post_id' => $last_reply,
     205                                                        'size'    => '15',
     206                                                )
     207                                        )
     208                                )
    198209                        );
    199210                ?></li>
    … …  
    202213                <li class="topic-freshness-time"><?php
    203214                        /* translators: %s: date/time link to the latest post */
    204                         printf( __( 'About %s', 'bborg' ), $time_since );
     215                        printf( esc_html__( 'About %s', 'bborg' ), wp_kses_post( $time_since ) );
    205216                ?></li>
    206217        <?php endif; ?>
    … …  
    243254        <?php if ( bbp_get_forum_parent_id() ) : ?>
    244255                <li class="topic-parent"><?php
    245                         /* translators: %s: forum title */
    246                         printf( __( 'In: %s', 'bborg' ),
    247                                 sprintf( '<a href="%s">%s</a>',
     256                        printf(
     257                                /* translators: %s: Forum title. */
     258                                esc_html__( 'In: %s', 'bborg' ),
     259                                sprintf(
     260                                        '<a href="%s">%s</a>',
    248261                                        esc_url( bbp_get_forum_permalink( bbp_get_forum_parent_id() ) ),
    249                                         bbp_get_forum_title( bbp_get_forum_parent_id() )
     262                                        esc_html( bbp_get_forum_title( bbp_get_forum_parent_id() ) )
    250263                                )
    251264                        );
    … …  
    260273        <?php if ( !empty( $last_active  ) ) : ?>
    261274                <li class="forum-freshness-author"><?php
    262                         /* translators: %s: post author link */
    263                         printf( __( 'Last voice: %s', 'bborg' ),
    264                                 bbp_get_author_link( array( 'type' => 'name', 'post_id' => $last_active ) )
     275                        printf(
     276                                /* translators: %s: Post author link. */
     277                                esc_html__( 'Last voice: %s', 'bborg' ),
     278                                wp_kses_post(
     279                                        bbp_get_author_link(
     280                                                array(
     281                                                        'type'    => 'name',
     282                                                        'post_id' => $last_active,
     283                                                )
     284                                        )
     285                                )
    265286                        );
    266287                ?></li>
    … …  
    269290                <li class="forum-freshness-time"><?php
    270291                        /* translators: %s: date/time link to the latest post */
    271                         printf( __( 'About %s', 'bborg' ), $time_since );
     292                        printf( esc_html__( 'About %s', 'bborg' ), wp_kses_post( $time_since ) );
    272293                ?></li>
    273294        <?php endif; ?>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/header-accessibility.php

    r442 r15179  
     1<?php
     2/**
     3 * Skip links shown at the top of every page.
     4 *
     5 * @package bb-base
     6 */
     7
     8?>
    19        <dl id="accessibility">
    210                <dt>Skip to:</dt>
    3                 <dd><a href="#content" title="Skip to content"><?php _e( 'Content', 'bborg' ); ?></a></dd>
    4                 <dd><a href="#pages" title="Skip to pages"><?php _e( 'Pages', 'bborg' ); ?></a></dd>
    5                 <dd><a href="#categories" title="Skip to categories"><?php _e( 'Categories', 'bborg' ); ?></a></dd>
    6                 <dd><a href="#search" title="Skip to search"><?php _e( 'Search', 'bborg' ); ?></a></dd>
     11                <dd><a href="#content" title="Skip to content"><?php esc_html_e( 'Content', 'bborg' ); ?></a></dd>
     12                <dd><a href="#pages" title="Skip to pages"><?php esc_html_e( 'Pages', 'bborg' ); ?></a></dd>
     13                <dd><a href="#categories" title="Skip to categories"><?php esc_html_e( 'Categories', 'bborg' ); ?></a></dd>
     14                <dd><a href="#search" title="Skip to search"><?php esc_html_e( 'Search', 'bborg' ); ?></a></dd>
    715<?php if ( ( is_page() || is_single() || is_attachment() ) && comments_open() ) : ?>
    8                 <dd class="separator"><a href="#comments" title="Skip to comments"><?php _e( 'Comments', 'bborg' ); ?></a></dd>
    9                 <dd><a href="#commentform" title="Skip to comment form"><?php _e( 'Respond', 'bborg' ); ?></a></dd>
     16                <dd class="separator"><a href="#comments" title="Skip to comments"><?php esc_html_e( 'Comments', 'bborg' ); ?></a></dd>
     17                <dd><a href="#commentform" title="Skip to comment form"><?php esc_html_e( 'Respond', 'bborg' ); ?></a></dd>
    1018<?php endif; ?>
    11                 <dd class="separator"><a href="#top" title="Skip to top"><?php _e( 'Top', 'bborg' ); ?></a></dd>
     19                <dd class="separator"><a href="#top" title="Skip to top"><?php esc_html_e( 'Top', 'bborg' ); ?></a></dd>
    1220<?php if ( is_category() || is_post_type_archive( 'post' ) || is_singular( 'post' ) ) : ?>
    1321                <?php previous_post_link( "\t\t\t\t<dd>%link</dd>\n", __( 'Previous Post', 'bbporg' ) ); ?>
    1422                <?php next_post_link( "\t\t\t\t<dd>%link</dd>\n", __( 'Next Post', 'bbporg' ) ); ?>
    1523<?php endif; ?>
    16                 <dd><a href="#bottom" title="Skip to bottom"><?php _e( 'Bottom', 'bborg' ); ?></a></dd>
     24                <dd><a href="#bottom" title="Skip to bottom"><?php esc_html_e( 'Bottom', 'bborg' ); ?></a></dd>
    1725        </dl>
    1826        <hr class="hidden" />
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/image.php

    r15170 r15179  
    1515                                <?php
    1616                                /* translators: 1: Date; 2: time. */
    17                                 printf( __( '%1$s at %2$s' ), get_the_time( 'l, F jS, Y' ), get_the_time() );
     17                                printf( esc_html__( '%1$s at %2$s' ), esc_html( get_the_time( 'l, F jS, Y' ) ), esc_html( get_the_time() ) );
    1818                                ?>
    1919                        </dd>
    … …  
    2121                                <?php
    2222                                /* translators: author posts link */
    23                                 printf( __( 'by <cite>%s</cite>', 'bborg' ), get_the_author_posts_link() );
     23                                printf( wp_kses_post( __( 'by <cite>%s</cite>', 'bborg' ) ), wp_kses_post( get_the_author_posts_link() ) );
    2424                                ?>
    2525                        </dd>
    … …  
    3535                        <?php endif;
    3636                                if ( 'open' == $post->comment_status ) :
    37                                         _e( '<dt>Respond if</dt><dd><a href="#respond">you&#8217;d like to leave feedback</a></dd>', 'bbporg' );
     37                                        echo wp_kses_post( __( '<dt>Respond if</dt><dd><a href="#respond">you&#8217;d like to leave feedback</a></dd>', 'bbporg' ) );
    3838                                endif;
    3939                                edit_post_link( esc_html__( 'Edit', 'bbporg' ), "\t\t\t\t\t<dt>" . esc_html__( 'You can', 'bborg' ) . "</dt>\n\t\t\t\t\t<dd>", "</dd>\n");
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/index.php

    r14281 r15179  
    88                <cite>
    99                        <?php
    10                         /* translators: 1: post date, 2: post author */
    11                         printf( __( 'Published on %1$s by %2$s', 'bborg' ),
    12                                 get_the_time( 'F jS, Y' ),
    13                                 get_the_author_link()
     10                        printf(
     11                                /* translators: 1: Publication date, 2: Author link. */
     12                                esc_html__( 'Published on %1$s by %2$s', 'bborg' ),
     13                                esc_html( get_the_time( 'F jS, Y' ) ),
     14                                wp_kses_post( get_the_author_link() )
    1415                        );
    1516                        ?>
    … …  
    3233else :
    3334        ?>
    34         <p><em><?php _e( 'Sorry, no posts matched your criteria.', 'bborg' ); ?></em></p>
     35        <p><em><?php esc_html_e( 'Sorry, no posts matched your criteria.', 'bborg' ); ?></em></p>
    3536        <?php
    3637endif;
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/page-homepage.php

    r14281 r15179  
    55get_header(); ?>
    66
    7 <h2 id="post-home"><?php _e( 'Recent Topics', 'bbporg' ); ?></h2>
     7<h2 id="post-home"><?php esc_html_e( 'Recent Topics', 'bbporg' ); ?></h2>
    88
    99<?php if ( function_exists( 'is_bbpress' )  ) : ?>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/sidebar.php

    r15170 r15179  
    77
    88                        <div>
    9                                 <h2><?php _e( 'Forum Info', 'bbporg'); ?></h2>
     9                                <h2><?php esc_html_e( 'Forum Info', 'bbporg' ); ?></h2>
    1010                                <ul class="forum-info">
    1111                                        <?php bb_base_single_forum_description(); ?>
    … …  
    1616
    1717                        <div>
    18                                 <h2><?php _e( 'Forum Feeds', 'bbporg'); ?></h2>
     18                                <h2><?php esc_html_e( 'Forum Feeds', 'bbporg' ); ?></h2>
    1919                                <ul>
    2020                                        <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/" title="<?php esc_attr_e( 'Forum Posts', 'bborg' ); ?>"><?php esc_html_e( 'Recent Posts', 'bborg' ); ?></a></li>
    … …  
    2626
    2727                        <div>
    28                                 <h2><?php _e( 'Topic Info', 'bbporg'); ?></h2>
     28                                <h2><?php esc_html_e( 'Topic Info', 'bbporg' ); ?></h2>
    2929                                <ul class="topic-info">
    3030                                        <?php bb_base_single_topic_description(); ?>
    … …  
    5959
    6060                        <div>
    61                                 <h2><?php _e( 'Forums', 'bbporg'); ?></h2>
     61                                <h2><?php esc_html_e( 'Forums', 'bbporg' ); ?></h2>
    6262                                <?php echo do_shortcode( '[bbp-forum-index]' ); ?>
    6363                        </div>
    … …  
    6565
    6666                        <div>
    67                                 <h2><?php _e( 'Views', 'bbporg'); ?></h2>
     67                                <h2><?php esc_html_e( 'Views', 'bbporg' ); ?></h2>
    6868                                <ul>
    6969
    … …  
    7878
    7979                        <div>
    80                                 <h2><?php _e( 'Feeds', 'bbporg'); ?></h2>
     80                                <h2><?php esc_html_e( 'Feeds', 'bbporg' ); ?></h2>
    8181                                <ul>
    8282                                        <li><a class="feed" href="<?php bbp_forums_url(); ?>feed/" title="<?php esc_attr_e( 'All Recent Posts', 'bborg' ); ?>"><?php esc_html_e( 'All Recent Posts', 'bborg' ); ?></a></li>
    … …  
    8686
    8787                        <div class="bbp-topic-tag-cloud">
    88                                 <h2><?php _e( 'Tags', 'bbporg'); ?></h2>
     88                                <h2><?php esc_html_e( 'Tags', 'bbporg' ); ?></h2>
    8989                                <?php echo do_shortcode( '[bbp-topic-tags]' ); ?>
    9090                        </div>
    … …  
    9595
    9696                <div class="feature">
    97                         <h2><?php _e('WordPress', 'bbporg'); ?></h2>
     97                        <h2><?php esc_html_e( 'WordPress', 'bbporg' ); ?></h2>
    9898                        <p><a href="https://wordpress.org"><img width="78" height="58" alt="" src="<?php echo esc_url( get_template_directory_uri() . '/images/wordpress.gif' ); ?>"/></a><?php esc_html_e( 'The world&#8217;s most powerful web publishing software.', 'bborg' ); ?></p>
    9999                </div>
    100100                <div class="feature">
    101                         <h2><?php _e('bbPress', 'bbporg'); ?></h2>
     101                        <h2><?php esc_html_e( 'bbPress', 'bbporg' ); ?></h2>
    102102                        <p><a href="https://bbpress.org"><img width="78" height="58" alt="" src="<?php echo esc_url( get_template_directory_uri() . '/images/bbpress.gif' ); ?>"/></a><?php esc_html_e( 'Simple and elegant forum software from the creators of WordPress.', 'bborg' ); ?></p>
    103103                </div>
    104104                <div style="margin-right: 0pt;" class="feature">
    105                         <h2><?php _e('BuddyPress', 'bbporg'); ?></h2>
     105                        <h2><?php esc_html_e( 'BuddyPress', 'bbporg' ); ?></h2>
    106106                        <p><a href="https://buddypress.org"><img width="78" height="58" alt="" src="<?php echo esc_url( get_template_directory_uri() . '/images/buddypress.gif' ); ?>"/></a><?php esc_html_e( 'Create a fully featured niche social-network with a few easy clicks.', 'bborg' ); ?></p>
    107107                </div>
    … …  
    110110
    111111                <div>
    112                         <h2><?php _e( 'Categories', 'bbporg'); ?></h2>
     112                        <h2><?php esc_html_e( 'Categories', 'bbporg' ); ?></h2>
    113113                        <ul>
    114114                                <?php wp_list_categories( array( 'title_li' => false ) ); ?>
    … …  
    117117
    118118                <div>
    119                         <h2><?php _e( 'Tags', 'bbporg'); ?></h2>
     119                        <h2><?php esc_html_e( 'Tags', 'bbporg' ); ?></h2>
    120120                        <?php wp_tag_cloud(); ?>
    121121                </div>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/single.php

    r14281 r15179  
    33        <h2 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h2>
    44        <cite><?php
    5                 /* translators: 1: post date, 2: post author */
    6                 printf( __( 'Published on %1$s by %2$s', 'bborg' ),
    7                         get_the_time( 'F jS, Y' ),
    8                         get_the_author_link()
     5                printf(
     6                        /* translators: 1: Publication date, 2: Author link. */
     7                        esc_html__( 'Published on %1$s by %2$s', 'bborg' ),
     8                        esc_html( get_the_time( 'F jS, Y' ) ),
     9                        wp_kses_post( get_the_author_link() )
    910                );
    1011        ?></cite>
    … …  
    1718<?php endwhile; else : ?>
    1819
    19         <p><em><?php _e( 'Sorry, no posts matched your criteria.', 'bborg' ); ?></em></p>
     20        <p><em><?php esc_html_e( 'Sorry, no posts matched your criteria.', 'bborg' ); ?></em></p>
    2021
    2122<?php endif; ?>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bbpress-org/bbpress/form-topic.php

    r11022 r15179  
    2222                                        <?php
    2323                                                if ( bbp_is_topic_edit() )
    24                                                         printf( __( 'Now Editing &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_topic_title() );
     24                                                        /* translators: %s: Topic title. */
     25                                                        printf( esc_html__( 'Now Editing &ldquo;%s&rdquo;', 'bbpress' ), esc_html( bbp_get_topic_title() ) );
    2526                                                else
    26                                                         bbp_is_single_forum() ? printf( __( 'Create New Topic in &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_forum_title() ) : _e( 'Create New Topic', 'bbpress' );
     27                                                        /* translators: %s: Forum title. */
     28                                                        bbp_is_single_forum() ? printf( esc_html__( 'Create New Topic in &ldquo;%s&rdquo;', 'bbpress' ), esc_html( bbp_get_forum_title() ) ) : esc_html_e( 'Create New Topic', 'bbpress' );
    2729                                        ?>
    2830
    … …  
    3436
    3537                                        <div class="bbp-template-notice">
    36                                                 <p><?php _e( 'If asking for help, please include your WordPress version, bbPress version, and a link to your site.',                              'bbporg' ); ?></p>
    37                                                 <p><?php _e( 'If you are using a non-bundled theme, confirm your issue still happens with Twenty Twelve, Twenty Thirteen, etc...',                'bbporg' ); ?></p>
    38                                                 <p><?php _e( 'If you found a bug, please create a <a href="https://bbpress.trac.wordpress.org/">trac ticket</a> with detailed duplication steps.', 'bbporg' ); ?></p>
    39                                                 <p><?php _e( 'Posts with 3 or more links will be manually approved by our forum moderators.',                                                      'bbporg' ); ?></p>
     38                                                <p><?php esc_html_e( 'If asking for help, please include your WordPress version, bbPress version, and a link to your site.', 'bbporg' ); ?></p>
     39                                                <p><?php esc_html_e( 'If you are using a non-bundled theme, confirm your issue still happens with Twenty Twelve, Twenty Thirteen, etc...', 'bbporg' ); ?></p>
     40                                                <p><?php echo wp_kses_post( __( 'If you found a bug, please create a <a href="https://bbpress.trac.wordpress.org/">trac ticket</a> with detailed duplication steps.', 'bbporg' ) ); ?></p>
     41                                                <p><?php esc_html_e( 'Posts with 3 or more links will be manually approved by our forum moderators.', 'bbporg' ); ?></p>
    4042                                        </div>
    4143
    … …  
    4547
    4648                                        <div class="bbp-template-notice">
    47                                                 <p><?php _e( 'This forum is marked as closed to new topics, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></p>
     49                                                <p><?php esc_html_e( 'This forum is marked as closed to new topics, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></p>
    4850                                        </div>
    4951
    … …  
    5355
    5456                                        <div class="bbp-template-notice">
    55                                                 <p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
     57                                                <p><?php esc_html_e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
    5658                                        </div>
    5759
    … …  
    6769
    6870                                        <p>
    69                                                 <label for="bbp_topic_title"><?php printf( __( 'Topic Title (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br />
     71                                                <?php /* translators: %d: Maximum title length. */ ?>
     72                                                <label for="bbp_topic_title"><?php printf( esc_html__( 'Topic Title (Maximum Length: %d):', 'bbpress' ), (int) bbp_get_title_max_length() ); ?></label><br />
    7073                                                <input type="text" id="bbp_topic_title" value="<?php bbp_form_topic_title(); ?>" size="40" name="bbp_topic_title" maxlength="<?php bbp_title_max_length(); ?>" />
    7174                                        </p>
    … …  
    7881
    7982                                                <p>
    80                                                         <label for="bbp_reply_content"><?php _e( 'Reply:', 'bbpress' ); ?></label><br />
     83                                                        <label for="bbp_reply_content"><?php esc_html_e( 'Reply:', 'bbpress' ); ?></label><br />
    8184                                                        <textarea id="bbp_topic_content" name="bbp_topic_content" cols="60" rows="6"><?php bbp_form_topic_content(); ?></textarea>
    8285                                                </p>
    … …  
    9396
    9497                                                <p class="form-allowed-tags">
    95                                                         <label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />
     98                                                        <label><?php echo wp_kses_post( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:', 'bbpress' ) ); ?></label><br />
    9699                                                        <code><?php bbp_allowed_tags(); ?></code>
    97100                                                </p>
    … …  
    102105
    103106                                        <p>
    104                                                 <label for="bbp_topic_tags"><?php _e( 'Topic Tags:', 'bbpress' ); ?></label><br />
     107                                                <label for="bbp_topic_tags"><?php esc_html_e( 'Topic Tags:', 'bbpress' ); ?></label><br />
    105108                                                <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />
    106109                                        </p>
    … …  
    113116
    114117                                                <p>
    115                                                         <label for="bbp_forum_id"><?php _e( 'Forum:', 'bbpress' ); ?></label><br />
     118                                                        <label for="bbp_forum_id"><?php esc_html_e( 'Forum:', 'bbpress' ); ?></label><br />
    116119                                                        <?php bbp_dropdown( array( 'selected' => bbp_get_form_topic_forum() ) ); ?>
    117120                                                </p>
    … …  
    127130                                                <p>
    128131
    129                                                         <label for="bbp_stick_topic"><?php _e( 'Topic Type:', 'bbpress' ); ?></label><br />
     132                                                        <label for="bbp_stick_topic"><?php esc_html_e( 'Topic Type:', 'bbpress' ); ?></label><br />
    130133
    131134                                                        <?php bbp_topic_type_select(); ?>
    … …  
    146149                                                        <?php if ( bbp_is_topic_edit() && ( get_the_author_meta( 'ID' ) != bbp_get_current_user_id() ) ) : ?>
    147150
    148                                                                 <label for="bbp_topic_subscription"><?php _e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
     151                                                                <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
    149152
    150153                                                        <?php else : ?>
    151154
    152                                                                 <label for="bbp_topic_subscription"><?php _e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>
     155                                                                <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>
    153156
    154157                                                        <?php endif; ?>
    … …  
    166169                                                        <legend>
    167170                                                                <input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php bbp_form_topic_log_edit(); ?> />
    168                                                                 <label for="bbp_log_topic_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />
     171                                                                <label for="bbp_log_topic_edit"><?php esc_html_e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />
    169172                                                        </legend>
    170173
    171174                                                        <div>
    172                                                                 <label for="bbp_topic_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br />
     175                                                                <label for="bbp_topic_edit_reason"><?php printf( esc_html__( 'Optional reason for editing:', 'bbpress' ), esc_html( bbp_get_current_user_name() ) ); ?></label><br />
    173176                                                                <input type="text" value="<?php bbp_form_topic_edit_reason(); ?>" size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" />
    174177                                                        </div>
    … …  
    185188                                                <?php do_action( 'bbp_theme_before_topic_form_submit_button' ); ?>
    186189
    187                                                 <button type="submit" id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
     190                                                <button type="submit" id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php esc_html_e( 'Submit', 'bbpress' ); ?></button>
    188191
    189192                                                <?php do_action( 'bbp_theme_after_topic_form_submit_button' ); ?>
    … …  
    208211        <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
    209212                <div class="bbp-template-notice">
    210                         <p><?php printf( __( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title() ); ?></p>
     213                        <?php /* translators: %s: Forum title. */ ?>
     214                        <p><?php printf( esc_html__( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), esc_html( bbp_get_forum_title() ) ); ?></p>
    211215                </div>
    212216        </div>
    … …  
    216220        <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
    217221                <div class="bbp-template-notice">
    218                         <p><?php is_user_logged_in() ? _e( 'You cannot create new topics at this time.', 'bbpress' ) : _e( 'You must be logged in to create new topics.', 'bbpress' ); ?></p>
     222                        <p><?php is_user_logged_in() ? esc_html_e( 'You cannot create new topics at this time.', 'bbpress' ) : esc_html_e( 'You must be logged in to create new topics.', 'bbpress' ); ?></p>
    219223                </div>
    220224        </div>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bbpress-org/header-front.php

    r15170 r15179  
    11<?php if ( is_front_page() ) : ?>
    22        <div id="headline"><div id="headline-inner">
    3                 <h2 class="graphic home"><?php _e( 'Meet bbPress', 'bbporg' ); ?></h2>
    4                 <p><?php _e( 'Forum software from the creators of WordPress. Asyncronous discussion, user profiles, subscriptions, and more!', 'bbporg' ); ?></p>
     3                <h2 class="graphic home"><?php esc_html_e( 'Meet bbPress', 'bbporg' ); ?></h2>
     4                <p><?php esc_html_e( 'Forum software from the creators of WordPress. Asyncronous discussion, user profiles, subscriptions, and more!', 'bbporg' ); ?></p>
    55                <div>
    6                         <a href="//bbpress.org/download/" id="big-demo-button" class="button"><?php _e( 'Download &rarr;', 'bbporg' ); ?></a>
     6                        <a href="//bbpress.org/download/" id="big-demo-button" class="button"><?php esc_html_e( 'Download &rarr;', 'bbporg' ); ?></a>
    77                        <img src="<?php echo esc_url( get_theme_file_uri( 'images/screenshots.png' ) . '?v=6' ); ?>" srcset="<?php echo esc_url( get_theme_file_uri( 'images/screenshots.png' ) . '?v=6' ); ?> 1x, <?php echo esc_url( get_theme_file_uri( 'images/screenshots-2x.png' ) . '?v=6' ); ?> 2x" alt="">
    88                </div>
    … …  
    1212        <div id="showcase"><div id="showcase-inner">
    1313                <div class="feature">
    14                         <h2><?php _e( 'Simple Setup', 'bbporg' ); ?></h2>
     14                        <h2><?php esc_html_e( 'Simple Setup', 'bbporg' ); ?></h2>
    1515                        <p>
    1616                                <a href="//bbpress.org/about/simple/"><img src="<?php echo esc_url( get_theme_file_uri( 'images/feature_forums.gif' ) ); ?>" alt="<?php esc_attr_e( 'Simple Setup', 'bbporg' ); ?>" width="156" height="58"></a>
    17                                 <span><?php _e( 'Easy to setup. <br>Easy to moderate. <br>Fast, and clean.', 'bbporg' ); ?></span>
     17                                <span><?php echo wp_kses_post( __( 'Easy to setup. <br>Easy to moderate. <br>Fast, and clean.', 'bbporg' ) ); ?></span>
    1818                        </p>
    1919                </div>
    2020                <div class="feature">
    21                         <h2><?php _e( 'Fully Integrated', 'bbporg' ); ?></h2>
     21                        <h2><?php esc_html_e( 'Fully Integrated', 'bbporg' ); ?></h2>
    2222                        <p>
    2323                                <a href="//bbpress.org/about/integration/"><img src="<?php echo esc_url( get_theme_file_uri( 'images/feature_integration.gif' ) ); ?>" alt="<?php esc_attr_e( 'Fully Integrated', 'bbporg' ); ?>" width="156" height="116"></a>
    24                                 <span><?php _e( 'One central account. <br>One unified admin area. <br>One click install.', 'bbporg' ); ?></span>
     24                                <span><?php echo wp_kses_post( __( 'One central account. <br>One unified admin area. <br>One click install.', 'bbporg' ) ); ?></span>
    2525                        </p>
    2626                </div>
    2727                <div class="feature" style="margin:0;">
    28                         <h2><?php _e( 'Single Installation', 'bbporg' ); ?></h2>
     28                        <h2><?php esc_html_e( 'Single Installation', 'bbporg' ); ?></h2>
    2929                        <p>
    3030                                <a href="//bbpress.org/about/installation/"><img src="<?php echo esc_url( get_theme_file_uri( 'images/feature_installation.gif' ) ); ?>" alt="<?php esc_attr_e( 'Single Installation', 'bbporg' ); ?>" width="156" height="116"></a>
    31                                 <span><?php _e( 'Simple step-by-step <br>installation walks you <br>through your options.', 'bbporg' ); ?></span>
     31                                <span><?php echo wp_kses_post( __( 'Simple step-by-step <br>installation walks you <br>through your options.', 'bbporg' ) ); ?></span>
    3232                        </p>
    3333                </div>
    3434                <div class="feature">
    35                         <h2><?php _e( 'Multisite Forums', 'bbporg' ); ?></h2>
     35                        <h2><?php esc_html_e( 'Multisite Forums', 'bbporg' ); ?></h2>
    3636                        <p>
    3737                                <a href="//bbpress.org/about/multisite/"><img src="<?php echo esc_url( get_theme_file_uri( 'images/feature_blogs.gif' ) ); ?>" alt="<?php esc_attr_e( 'Multisite Forums', 'bbporg' ); ?>" width="156" height="116"></a>
    38                                 <span><?php _e( 'Divide your site<br> into sections. Allow your <br>users to create content.', 'bbporg' ); ?></span>
     38                                <span><?php echo wp_kses_post( __( 'Divide your site<br> into sections. Allow your <br>users to create content.', 'bbporg' ) ); ?></span>
    3939                        </p>
    4040                </div>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bbpress-org/page-plugins.php

    r15170 r15179  
    1616                                                <?php
    1717                                                        /* translators: 1: starting number of plugins, 2: ending number, 3: total number */
    18                                                         printf( __( 'Viewing %1$s to %2$s (%3$s)', 'bbporg' ),
     18                                                        printf(
     19                                                                /* translators: 1: First plugin number, 2: Last plugin number, 3: Total number of plugins. */
     20                                                                esc_html__( 'Viewing %1$s to %2$s (%3$s)', 'bbporg' ),
    1921                                                                number_format_i18n( $from_num ),
    2022                                                                number_format_i18n( $to_num ),
    … …  
    5153                                        <div class="plugin-meta">
    5254                                                <?php if ( ! empty( $plugin->version ) ) : ?>
    53                                                         <div><?php printf( __( 'Version: %s', 'bbporg' ), esc_html( $plugin->version ) ); ?></div>
     55                                                        <?php /* translators: %s: Plugin version. */ ?>
     56                                                        <div><?php printf( esc_html__( 'Version: %s', 'bbporg' ), esc_html( $plugin->version ) ); ?></div>
    5457                                                <?php endif; ?>
    5558                                                <?php if ( ! empty( $plugin->requires ) ) : ?>
    56                                                         <div><?php printf( __( 'Requires: %s', 'bbporg' ), esc_html( $plugin->requires ) ); ?></div>
     59                                                        <?php /* translators: %s: Minimum WordPress version. */ ?>
     60                                                        <div><?php printf( esc_html__( 'Requires: %s', 'bbporg' ), esc_html( $plugin->requires ) ); ?></div>
    5761                                                <?php endif; ?>
    5862                                                <?php if ( ! empty( $plugin->tested ) ) : ?>
    59                                                         <div><?php printf( __( 'Compatible up to: %s', 'bbporg' ), esc_html( $plugin->tested ) ); ?></div>
     63                                                        <?php /* translators: %s: Highest tested WordPress version. */ ?>
     64                                                        <div><?php printf( esc_html__( 'Compatible up to: %s', 'bbporg' ), esc_html( $plugin->tested ) ); ?></div>
    6065                                                <?php endif; ?>
    61                                                 <div><?php printf( __( 'Rating: %s', 'bbporg' ), $plugin->rating_html ); // raw html - do not escape ?></div>
     66                                                <?php /* translators: %s: Star rating markup. */ ?>
     67                                                <div><?php printf( esc_html__( 'Rating: %s', 'bbporg' ), wp_kses_post( $plugin->rating_html ) ); ?></div>
    6268                                        </div>
    6369
    … …  
    7581                                                <?php
    7682                                                        /* translators: 1: starting number of plugins, 2: ending number, 3: total number */
    77                                                         printf( __( 'Viewing %1$s to %2$s (%3$s)', 'bbporg' ),
     83                                                        printf(
     84                                                                /* translators: 1: First plugin number, 2: Last plugin number, 3: Total number of plugins. */
     85                                                                esc_html__( 'Viewing %1$s to %2$s (%3$s)', 'bbporg' ),
    7886                                                                number_format_i18n( $from_num ),
    7987                                                                number_format_i18n( $to_num ),
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bbpress-org/sidebar.php

    r15170 r15179  
    1717
    1818                        <div>
    19                                 <h2><?php _e( 'Forum Info', 'bbporg' ); ?></h2>
     19                                <h2><?php esc_html_e( 'Forum Info', 'bbporg' ); ?></h2>
    2020                                <ul class="forum-info">
    2121                                        <?php bb_base_single_forum_description(); ?>
    … …  
    2626
    2727                        <div>
    28                                 <h2><?php _e( 'Forum Feeds', 'bbporg' ); ?></h2>
     28                                <h2><?php esc_html_e( 'Forum Feeds', 'bbporg' ); ?></h2>
    2929                                <ul>
    30                                         <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/"><?php _e( 'Recent Posts', 'bbporg' ); ?></a></li>
    31                                         <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/?type=topic"><?php _e( 'Recent Topics', 'bbporg' ); ?></a></li>
     30                                        <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/"><?php esc_html_e( 'Recent Posts', 'bbporg' ); ?></a></li>
     31                                        <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/?type=topic"><?php esc_html_e( 'Recent Topics', 'bbporg' ); ?></a></li>
    3232                                </ul>
    3333                        </div>
    … …  
    3636
    3737                        <div>
    38                                 <h2><?php _e( 'Topic Info', 'bbporg' ); ?></h2>
     38                                <h2><?php esc_html_e( 'Topic Info', 'bbporg' ); ?></h2>
    3939                                <ul class="topic-info">
    4040                                        <?php bb_base_single_topic_description(); ?>
    … …  
    6969
    7070                        <div>
    71                                 <h2><?php _e( 'Forums', 'bbporg' ); ?></h2>
     71                                <h2><?php esc_html_e( 'Forums', 'bbporg' ); ?></h2>
    7272                                <?php echo do_shortcode( '[bbp-forum-index]' ); ?>
    7373                        </div>
    … …  
    7575
    7676                        <div>
    77                                 <h2><?php _e( 'Views', 'bbporg' ); ?></h2>
     77                                <h2><?php esc_html_e( 'Views', 'bbporg' ); ?></h2>
    7878                                <ul>
    7979
    … …  
    8888
    8989                        <div>
    90                                 <h2><?php _e( 'Feeds', 'bbporg' ); ?></h2>
     90                                <h2><?php esc_html_e( 'Feeds', 'bbporg' ); ?></h2>
    9191                                <ul>
    92                                         <li><a class="feed" href="<?php bbp_forums_url(); ?>feed/"><?php _e( 'All Recent Posts', 'bbporg' ); ?></a></li>
    93                                         <li><a class="feed" href="<?php bbp_topics_url(); ?>feed/"><?php _e( 'All Recent Topics', 'bbporg' ); ?></a></li>
     92                                        <li><a class="feed" href="<?php bbp_forums_url(); ?>feed/"><?php esc_html_e( 'All Recent Posts', 'bbporg' ); ?></a></li>
     93                                        <li><a class="feed" href="<?php bbp_topics_url(); ?>feed/"><?php esc_html_e( 'All Recent Topics', 'bbporg' ); ?></a></li>
    9494                                </ul>
    9595                        </div>
    9696
    9797                        <div class="bbp-topic-tag-cloud">
    98                                 <h2><?php _e( 'Tags', 'bbporg' ); ?></h2>
     98                                <h2><?php esc_html_e( 'Tags', 'bbporg' ); ?></h2>
    9999                                <?php echo do_shortcode( '[bbp-topic-tags]' ); ?>
    100100                        </div>
    … …  
    107107
    108108                <div>
    109                         <h2><?php _e( 'Legacy', 'bbporg' ); ?></h2>
     109                        <h2><?php esc_html_e( 'Legacy', 'bbporg' ); ?></h2>
    110110                        <ul>
    111111                                <li><a href="<?php echo esc_url( get_permalink( 116247 ) ); ?>"><?php esc_html_e( 'Plugins for bbPress 1.1', 'bbporg' ); ?></a></li>
    … …  
    116116
    117117                <div>
    118                         <h2><?php _e( 'Categories', 'bbporg' ); ?></h2>
     118                        <h2><?php esc_html_e( 'Categories', 'bbporg' ); ?></h2>
    119119                        <ul>
    120120                                <?php wp_list_categories( array( 'title_li' => false ) ); ?>
    … …  
    123123
    124124                <div>
    125                         <h2><?php _e( 'Tags', 'bbporg' ); ?></h2>
     125                        <h2><?php esc_html_e( 'Tags', 'bbporg' ); ?></h2>
    126126                        <?php wp_tag_cloud(); ?>
    127127                </div>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bporg-developer/header.php

    r12530 r15179  
    3333<header id="masthead" class="site-header<?php if ( is_front_page() ) { echo ' home'; } ?>" role="banner">
    3434        <?php if ( get_query_var( 'is_handbook' ) ) : ?>
    35         <a href="#" id="secondary-toggle" onclick="return false;"><strong><?php _e( 'Menu', 'bporg-developer' ); ?></strong></a>
     35        <a href="#" id="secondary-toggle" onclick="return false;"><strong><?php esc_html_e( 'Menu', 'bporg-developer' ); ?></strong></a>
    3636        <?php endif; ?>
    3737        <div class="site-branding">
    … …  
    6969                        <div id="inner-search-icon-container">
    7070                                <div id="inner-search-icon">
    71                                         <div class="dashicons dashicons-search"><span class="screen-reader-text"><?php _e( 'Search', 'bporg-developer' ); ?></span></div>
     71                                        <div class="dashicons dashicons-search"><span class="screen-reader-text"><?php esc_html_e( 'Search', 'bporg-developer' ); ?></span></div>
    7272                                </div>
    7373                        </div>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bporg-developer/page-reference-landing.php

    r15170 r15179  
    2020                        <div class="reference-landing">
    2121                                <div class="search-guide section clear">
    22                                         <h4 class="ref-intro"><?php _e( 'Want to know what&#39;s going on inside BuddyPress? Search the Code Reference for more information about BuddyPress&#39; functions, classes, methods, and hooks.', 'bporg-developer' ); ?></h4>
    23                                         <h3 class="search-intro"><?php _e( 'Try it out:', 'bporg-developer' ); ?></h3>
     22                                        <h4 class="ref-intro"><?php esc_html_e( 'Want to know what&#39;s going on inside BuddyPress? Search the Code Reference for more information about BuddyPress&#39; functions, classes, methods, and hooks.', 'bporg-developer' ); ?></h4>
     23                                        <h3 class="search-intro"><?php esc_html_e( 'Try it out:', 'bporg-developer' ); ?></h3>
    2424                                        <?php get_search_form(); ?>
    2525                                </div><!-- /search-guide -->
    2626
    2727                                <div class="topic-guide section">
    28                                         <h4><?php _e( 'Or browse through topics:', 'bporg-developer' ); ?></h4>
     28                                        <h4><?php esc_html_e( 'Or browse through topics:', 'bporg-developer' ); ?></h4>
    2929                                        <ul class="unordered-list horizontal-list no-bullets">
    3030                                                <li><a href="<?php echo esc_url( get_post_type_archive_link( 'wp-parser-function' ) ); ?>"><?php esc_html_e( 'Functions', 'bporg-developer' ); ?></a></li>
    … …  
    3939                                        <?php if ( $version && ! is_wp_error( $version ) ) : ?>
    4040                        <div class="widget box gray">
    41                             <h3 class="widget-title"><?php printf( __( 'New &amp; Updated in BuddyPress %s:', 'bporg-developer' ), substr( $version->name, 0, -2 ) ); ?></h3>
     41                                                        <?php /* translators: %s: BuddyPress version. */ ?>
     42                                                        <h3 class="widget-title"><?php printf( esc_html__( 'New &amp; Updated in BuddyPress %s:', 'bporg-developer' ), esc_html( substr( $version->name, 0, -2 ) ) ); ?></h3>
    4243                            <div class="widget-content">
    4344                                <ul class="unordered-list no-bullets">
    … …  
    6566
    6667                                    <?php endwhile; ?>
    67                                     <li class="view-all-new-in"><a href="<?php echo esc_attr( get_term_link( $version, 'wp-parser-since' ) ); ?>"><?php _e( 'View all&hellip;', 'bporg-developer' ); ?></a></li>
     68                                                                        <li class="view-all-new-in"><a href="<?php echo esc_url( get_term_link( $version, 'wp-parser-since' ) ); ?>"><?php esc_html_e( 'View all&hellip;', 'bporg-developer' ); ?></a></li>
    6869                                </ul>
    6970                            </div>
    … …  
    7273                    <?php if ( has_nav_menu( 'reference-home-api' ) ) : ?>
    7374                        <div class="widget box gray">
    74                             <h3 class="widget-title"><?php _e( 'API', 'bporg-developer' ); ?></h3>
     75                                                        <h3 class="widget-title"><?php esc_html_e( 'API', 'bporg-developer' ); ?></h3>
    7576                            <div class="widget-content">
    7677                                <?php wp_nav_menu(
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bporg-developer/reference/template-source.php

    r9131 r15179  
    1313        <hr />
    1414        <section class="source-content">
    15                 <h3><?php _e( 'Source', 'bporg-developer' ); ?></h3>
     15                <h3><?php esc_html_e( 'Source', 'bporg-developer' ); ?></h3>
    1616                <p>
    17                         <?php printf( __( 'File: %s', 'bporg-developer' ),
     17                        <?php
     18                        printf(
     19                                /* translators: %s: Source file link. */
     20                                esc_html__( 'File: %s', 'bporg-developer' ),
    1821                                '<a href="' . esc_url( get_source_file_archive_link( $source_file ) ) . '">' . esc_html( $source_file ) . '</a>'
    1922                        ); ?>
    … …  
    2629                        <p class="source-code-links">
    2730                                <span>
    28                                         <a href="#" class="show-complete-source"><?php _e( 'Expand full source code', 'bporg-developer' ); ?></a>
    29                                         <a href="#" class="less-complete-source"><?php _e( 'Collapse full source code', 'bporg-developer' ); ?></a>
     31                                        <a href="#" class="show-complete-source"><?php esc_html_e( 'Expand full source code', 'bporg-developer' ); ?></a>
     32                                        <a href="#" class="less-complete-source"><?php esc_html_e( 'Collapse full source code', 'bporg-developer' ); ?></a>
    3033                                </span>
    31                                 <span><a href="<?php bporg_developer_source_file_link(); ?>"><?php _e( 'View on Trac', 'bporg-developer' ); ?></a></span>
     34                                <span><a href="<?php bporg_developer_source_file_link(); ?>"><?php esc_html_e( 'View on Trac', 'bporg-developer' ); ?></a></span>
    3235                        </p>
    3336                <?php else : ?>
    3437                        <p>
    35                                 <a href="<?php bporg_developer_source_file_link(); ?>"><?php _e( 'View on Trac', 'bporg-developer' ); ?></a>
     38                                <a href="<?php bporg_developer_source_file_link(); ?>"><?php esc_html_e( 'View on Trac', 'bporg-developer' ); ?></a>
    3639                        </p>
    3740                <?php endif; ?>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/buddypress-org/bbpress/form-topic.php

    r11022 r15179  
    2222                                        <?php
    2323                                                if ( bbp_is_topic_edit() )
    24                                                         printf( __( 'Now Editing &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_topic_title() );
     24                                                        /* translators: %s: Topic title. */
     25                                                        printf( esc_html__( 'Now Editing &ldquo;%s&rdquo;', 'bbpress' ), esc_html( bbp_get_topic_title() ) );
    2526                                                else
    26                                                         bbp_is_single_forum() ? printf( __( 'Create New Topic in &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_forum_title() ) : _e( 'Create New Topic', 'bbpress' );
     27                                                        /* translators: %s: Forum title. */
     28                                                        bbp_is_single_forum() ? printf( esc_html__( 'Create New Topic in &ldquo;%s&rdquo;', 'bbpress' ), esc_html( bbp_get_forum_title() ) ) : esc_html_e( 'Create New Topic', 'bbpress' );
    2729                                        ?>
    2830
    … …  
    3436
    3537                                        <div class="bbp-template-notice">
    36                                                 <p><?php _e( 'If asking for help, please include your WordPress version, BuddyPress version, and a link to your site.',                              'bporg' ); ?></p>
    37                                                 <p><?php _e( 'If you are using a non-bundled theme, confirm your issue still happens with Twenty Twelve, Twenty Thirteen, etc...',                    'bporg' ); ?></p>
    38                                                 <p><?php _e( 'If you found a bug, please create a <a href="https://buddypress.trac.wordpress.org/">trac ticket</a> with detailed duplication steps.', 'bporg' ); ?></p>
    39                                                 <p><?php _e( 'Posts with 3 or more links will be manually approved by our forum moderators.',                                                        'bporg' ); ?></p>
     38                                                <p><?php esc_html_e( 'If asking for help, please include your WordPress version, BuddyPress version, and a link to your site.', 'bporg' ); ?></p>
     39                                                <p><?php esc_html_e( 'If you are using a non-bundled theme, confirm your issue still happens with Twenty Twelve, Twenty Thirteen, etc...', 'bporg' ); ?></p>
     40                                                <p><?php echo wp_kses_post( __( 'If you found a bug, please create a <a href="https://buddypress.trac.wordpress.org/">trac ticket</a> with detailed duplication steps.', 'bporg' ) ); ?></p>
     41                                                <p><?php esc_html_e( 'Posts with 3 or more links will be manually approved by our forum moderators.', 'bporg' ); ?></p>
    4042                                        </div>
    4143
    … …  
    4547
    4648                                        <div class="bbp-template-notice">
    47                                                 <p><?php _e( 'This forum is marked as closed to new topics, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></p>
     49                                                <p><?php esc_html_e( 'This forum is marked as closed to new topics, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></p>
    4850                                        </div>
    4951
    … …  
    5355
    5456                                        <div class="bbp-template-notice">
    55                                                 <p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
     57                                                <p><?php esc_html_e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
    5658                                        </div>
    5759
    … …  
    6769
    6870                                        <p>
    69                                                 <label for="bbp_topic_title"><?php printf( __( 'Topic Title (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br />
     71                                                <?php /* translators: %d: Maximum title length. */ ?>
     72                                                <label for="bbp_topic_title"><?php printf( esc_html__( 'Topic Title (Maximum Length: %d):', 'bbpress' ), (int) bbp_get_title_max_length() ); ?></label><br />
    7073                                                <input type="text" id="bbp_topic_title" value="<?php bbp_form_topic_title(); ?>" size="40" name="bbp_topic_title" maxlength="<?php bbp_title_max_length(); ?>" />
    7174                                        </p>
    … …  
    7881
    7982                                                <p>
    80                                                         <label for="bbp_reply_content"><?php _e( 'Reply:', 'bbpress' ); ?></label><br />
     83                                                        <label for="bbp_reply_content"><?php esc_html_e( 'Reply:', 'bbpress' ); ?></label><br />
    8184                                                        <textarea id="bbp_topic_content" name="bbp_topic_content" cols="60" rows="6"><?php bbp_form_topic_content(); ?></textarea>
    8285                                                </p>
    … …  
    9396
    9497                                                <p class="form-allowed-tags">
    95                                                         <label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />
     98                                                        <label><?php echo wp_kses_post( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:', 'bbpress' ) ); ?></label><br />
    9699                                                        <code><?php bbp_allowed_tags(); ?></code>
    97100                                                </p>
    … …  
    102105
    103106                                        <p>
    104                                                 <label for="bbp_topic_tags"><?php _e( 'Topic Tags:', 'bbpress' ); ?></label><br />
     107                                                <label for="bbp_topic_tags"><?php esc_html_e( 'Topic Tags:', 'bbpress' ); ?></label><br />
    105108                                                <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />
    106109                                        </p>
    … …  
    113116
    114117                                                <p>
    115                                                         <label for="bbp_forum_id"><?php _e( 'Forum:', 'bbpress' ); ?></label><br />
     118                                                        <label for="bbp_forum_id"><?php esc_html_e( 'Forum:', 'bbpress' ); ?></label><br />
    116119                                                        <?php bbp_dropdown( array( 'selected' => bbp_get_form_topic_forum() ) ); ?>
    117120                                                </p>
    … …  
    127130                                                <p>
    128131
    129                                                         <label for="bbp_stick_topic"><?php _e( 'Topic Type:', 'bbpress' ); ?></label><br />
     132                                                        <label for="bbp_stick_topic"><?php esc_html_e( 'Topic Type:', 'bbpress' ); ?></label><br />
    130133
    131134                                                        <?php bbp_topic_type_select(); ?>
    … …  
    146149                                                        <?php if ( bbp_is_topic_edit() && ( get_the_author_meta( 'ID' ) != bbp_get_current_user_id() ) ) : ?>
    147150
    148                                                                 <label for="bbp_topic_subscription"><?php _e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
     151                                                                <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
    149152
    150153                                                        <?php else : ?>
    151154
    152                                                                 <label for="bbp_topic_subscription"><?php _e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>
     155                                                                <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>
    153156
    154157                                                        <?php endif; ?>
    … …  
    166169                                                        <legend>
    167170                                                                <input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php bbp_form_topic_log_edit(); ?> />
    168                                                                 <label for="bbp_log_topic_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />
     171                                                                <label for="bbp_log_topic_edit"><?php esc_html_e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />
    169172                                                        </legend>
    170173
    171174                                                        <div>
    172                                                                 <label for="bbp_topic_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br />
     175                                                                <label for="bbp_topic_edit_reason"><?php printf( esc_html__( 'Optional reason for editing:', 'bbpress' ), esc_html( bbp_get_current_user_name() ) ); ?></label><br />
    173176                                                                <input type="text" value="<?php bbp_form_topic_edit_reason(); ?>" size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" />
    174177                                                        </div>
    … …  
    185188                                                <?php do_action( 'bbp_theme_before_topic_form_submit_button' ); ?>
    186189
    187                                                 <button type="submit" id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
     190                                                <button type="submit" id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php esc_html_e( 'Submit', 'bbpress' ); ?></button>
    188191
    189192                                                <?php do_action( 'bbp_theme_after_topic_form_submit_button' ); ?>
    … …  
    208211        <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
    209212                <div class="bbp-template-notice">
    210                         <p><?php printf( __( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title() ); ?></p>
     213                        <?php /* translators: %s: Forum title. */ ?>
     214                        <p><?php printf( esc_html__( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), esc_html( bbp_get_forum_title() ) ); ?></p>
    211215                </div>
    212216        </div>
    … …  
    216220        <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
    217221                <div class="bbp-template-notice">
    218                         <p><?php is_user_logged_in() ? _e( 'You cannot create new topics at this time.', 'bbpress' ) : _e( 'You must be logged in to create new topics.', 'bbpress' ); ?></p>
     222                        <p><?php is_user_logged_in() ? esc_html_e( 'You cannot create new topics at this time.', 'bbpress' ) : esc_html_e( 'You must be logged in to create new topics.', 'bbpress' ); ?></p>
    219223                </div>
    220224        </div>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/buddypress-org/footer.php

    r14285 r15179  
     1<?php
     2/**
     3 * The template for displaying the footer.
     4 *
     5 * @package buddypress-org
     6 */
     7
     8?>
    19                        </div>
    210                </div>
    … …  
    614                        <div class="links">
    715                                <p>
    8                                         <a href="https://wordpress.org"><?php _e( 'WordPress.org', 'bporg' ); ?></a>
    9                                         <a href="https://bbpress.org"><?php _e( 'bbPress.org', 'bporg' ); ?></a>
    10                                         <a href="https://buddypress.org"><?php _e( 'BuddyPress.org', 'bporg' ); ?></a>
    11                                         <a href="https://ma.tt"><?php _e( 'Matt', 'bporg' ); ?></a>
    12                                         <a href="<?php bloginfo( 'rss2_url' ); ?>"><?php _e( 'Blog RSS', 'bporg' ); ?></a>
     16                                        <a href="https://wordpress.org"><?php esc_html_e( 'WordPress.org', 'bporg' ); ?></a>
     17                                        <a href="https://bbpress.org"><?php esc_html_e( 'bbPress.org', 'bporg' ); ?></a>
     18                                        <a href="https://buddypress.org"><?php esc_html_e( 'BuddyPress.org', 'bporg' ); ?></a>
     19                                        <a href="https://ma.tt"><?php esc_html_e( 'Matt', 'bporg' ); ?></a>
     20                                        <a href="<?php bloginfo( 'rss2_url' ); ?>"><?php esc_html_e( 'Blog RSS', 'bporg' ); ?></a>
    1321                                </p>
    1422                        </div>
    1523                        <div class="details">
    1624                                <p>
    17                                         <a href="https://buddypress.org/about/gpl/"><?php _e( 'GPL', 'bporg' ); ?></a>
    18                                         <a href="https://buddypress.org/contact/"><?php _e( 'Contact Us', 'bporg' ); ?></a>
    19                                         <a href="https://wordpress.org/about/privacy/"><?php _e('Privacy', 'bbporg'); ?></a>
    20                                         <a href="https://buddypress.org/terms/"><?php _e( 'Terms of Service', 'bporg' ); ?></a>
    21                                         <a href="https://x.com/buddypressdev"><?php _e( 'X', 'bporg' ); ?></a>
     25                                        <a href="https://buddypress.org/about/gpl/"><?php esc_html_e( 'GPL', 'bporg' ); ?></a>
     26                                        <a href="https://buddypress.org/contact/"><?php esc_html_e( 'Contact Us', 'bporg' ); ?></a>
     27                                        <a href="https://wordpress.org/about/privacy/"><?php esc_html_e( 'Privacy', 'bbporg' ); ?></a>
     28                                        <a href="https://buddypress.org/terms/"><?php esc_html_e( 'Terms of Service', 'bporg' ); ?></a>
     29                                        <a href="https://x.com/buddypressdev"><?php esc_html_e( 'X', 'bporg' ); ?></a>
    2230                                </p>
    2331                        </div>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/buddypress-org/header-front.php

    r15170 r15179  
    22
    33        <div id="headline"><div id="headline-inner">
    4                 <h2 class="graphic home"><?php _e( 'Meet BuddyPress', 'bporg' ); ?></h2>
    5                 <p><?php _e( 'The open source community platform of choice worldwide — from creators & small businesses to enterprises & governments.', 'bporg' ); ?></p>
     4                <h2 class="graphic home"><?php esc_html_e( 'Meet BuddyPress', 'bporg' ); ?></h2>
     5                <p><?php esc_html_e( 'The open source community platform of choice worldwide — from creators & small businesses to enterprises & governments.', 'bporg' ); ?></p>
    66                <div>
    7                         <a href="<?php bloginfo( 'url' ); ?>/download/" id="big-demo-button" class="button"><?php _e( 'Download &rarr;', 'bporg' ); ?></a>
     7                        <a href="<?php bloginfo( 'url' ); ?>/download/" id="big-demo-button" class="button"><?php esc_html_e( 'Download &rarr;', 'bporg' ); ?></a>
    88                        <img src="<?php echo esc_url( get_theme_file_uri( 'images/screenshots.png' ) . '?v=6' ); ?>" srcset="<?php echo esc_url( get_theme_file_uri( 'images/screenshots.png' ) . '?v=6' ); ?> 1x, <?php echo esc_url( get_theme_file_uri( 'images/screenshots-2x.png' ) . '?v=6' ); ?> 2x" alt="">
    99                </div>
    … …  
    1313        <div id="showcase"><div id="showcase-inner">
    1414                <div class="feature">
    15                         <h2><?php _e( 'Profiles', 'bporg' ); ?></h2>
     15                        <h2><?php esc_html_e( 'Profiles', 'bporg' ); ?></h2>
    1616                        <p>
    1717                                <a href="//buddypress.org/about/profiles/"><img src="<?php echo esc_url( get_theme_file_uri( 'images/feature_profiles.gif' ) ); ?>" alt="" width="156" height="116"></a>
    18                                 <span><?php _e( 'Custom profile fields.<br> Visibility levels.<br>Common field types.', 'bporg' ); ?></span>
     18                                <span><?php echo wp_kses_post( __( 'Custom profile fields.<br> Visibility levels.<br>Common field types.', 'bporg' ) ); ?></span>
    1919                        </p>
    2020                </div>
    2121                <div class="feature">
    22                         <h2><?php _e( 'Settings', 'bporg' ); ?></h2>
     22                        <h2><?php esc_html_e( 'Settings', 'bporg' ); ?></h2>
    2323                        <p>
    2424                                <a href="//buddypress.org/about/settings/"><img src="<?php echo esc_url( get_theme_file_uri( 'images/feature_settings.gif' ) ); ?>" alt="" width="156" height="116"></a>
    25                                 <span><?php _e( 'Manage account settings. <br>Email notifications. <br>Email and Password.', 'bporg' ); ?></span>
     25                                <span><?php echo wp_kses_post( __( 'Manage account settings. <br>Email notifications. <br>Email and Password.', 'bporg' ) ); ?></span>
    2626                        </p>
    2727                </div>
    2828                <div class="feature">
    29                         <h2><?php _e( 'Groups', 'bporg' ); ?></h2>
     29                        <h2><?php esc_html_e( 'Groups', 'bporg' ); ?></h2>
    3030                        <p>
    3131                                <a href="//buddypress.org/about/groups/"><img src="<?php echo esc_url( get_theme_file_uri( 'images/feature_groups.gif' ) ); ?>" alt="" width="156" height="116"></a>
    32                                 <span><?php _e( 'Extensible user groups. <br>Allow your users to <br>create micro-communities.', 'bporg' ); ?></span>
     32                                <span><?php echo wp_kses_post( __( 'Extensible user groups. <br>Allow your users to <br>create micro-communities.', 'bporg' ) ); ?></span>
    3333                        </p>
    3434                </div>
    3535                <div class="feature">
    36                         <h2><?php _e( 'Activity Streams', 'bporg' ); ?></h2>
     36                        <h2><?php esc_html_e( 'Activity Streams', 'bporg' ); ?></h2>
    3737                        <p>
    3838                                <a href="//buddypress.org/about/activity/"><img src="<?php echo esc_url( get_theme_file_uri( 'images/feature_activity.gif' ) ); ?>" alt="" width="156" height="116"></a>
    39                                 <span><?php _e( 'For members and groups. <br>Sitewide directory <br>and single threads.', 'bporg' ); ?></span>
     39                                <span><?php echo wp_kses_post( __( 'For members and groups. <br>Sitewide directory <br>and single threads.', 'bporg' ) ); ?></span>
    4040                        </p>
    4141                </div>
    4242                <div class="feature">
    43                         <h2><?php _e( 'Notifications', 'bporg' ); ?></h2>
     43                        <h2><?php esc_html_e( 'Notifications', 'bporg' ); ?></h2>
    4444                        <p>
    4545                                <a href="//buddypress.org/about/notifications/"><img src="<?php echo esc_url( get_theme_file_uri( 'images/feature_notifications.gif' ) ); ?>" alt="" width="156" height="116"></a>
    46                                 <span><?php _e( 'Get notified.<br> Smart read/unread. <br>Fully integrated.', 'bporg' ); ?></span>
     46                                <span><?php echo wp_kses_post( __( 'Get notified.<br> Smart read/unread. <br>Fully integrated.', 'bporg' ) ); ?></span>
    4747                        </p>
    4848                </div>
    4949                <div class="feature">
    50                         <h2><?php _e( 'Friendships', 'bporg' ); ?></h2>
     50                        <h2><?php esc_html_e( 'Friendships', 'bporg' ); ?></h2>
    5151                        <p>
    5252                                <a href="//buddypress.org/about/friends/"><img src="<?php echo esc_url( get_theme_file_uri( 'images/feature_friends.gif' ) ); ?>" alt="" width="156" height="116"></a>
    53                                 <span><?php _e( "Friendship connections. <br>It's always about <br>who you know!", 'bporg' ); ?></span>
     53                                <span><?php echo wp_kses_post( __( 'Friendship connections. <br>It&#8217;s always about <br>who you know!', 'bporg' ) ); ?></span>
    5454                        </p>
    5555                </div>
    5656                <div class="feature">
    57                         <h2><?php _e( 'Private Messaging', 'bporg' ); ?></h2>
     57                        <h2><?php esc_html_e( 'Private Messaging', 'bporg' ); ?></h2>
    5858                        <p>
    5959                                <a href="//buddypress.org/about/private-messaging/"><img src="<?php echo esc_url( get_theme_file_uri( 'images/feature_pms.gif' ) ); ?>" alt="" width="156" height="116"></a>
    60                                 <span><?php _e( 'Private conversations <br>with several members <br>at one time.', 'bporg' ); ?></span>
     60                                <span><?php echo wp_kses_post( __( 'Private conversations <br>with several members <br>at one time.', 'bporg' ) ); ?></span>
    6161                        </p>
    6262                </div>
    6363                <div class="feature">
    64                         <h2><?php _e( '...and more!', 'bporg' ); ?></h2>
     64                        <h2><?php esc_html_e( '...and more!', 'bporg' ); ?></h2>
    6565                        <p>
    6666                                <a href="//buddypress.org/about/more/"><img src="<?php echo esc_url( get_theme_file_uri( 'images/feature_more.gif' ) ); ?>" alt="" width="156" height="116"></a>
    67                                 <span><?php _e( 'Extend BuddyPress <br>with hundreds of <br>third party components.', 'bporg' ); ?></span>
     67                                <span><?php echo wp_kses_post( __( 'Extend BuddyPress <br>with hundreds of <br>third party components.', 'bporg' ) ); ?></span>
    6868                        </p>
    6969                </div>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/buddypress-org/header-nav.php

    r14293 r15179  
    1414                <li class="menu-item<?php if ( true === $_is_about ) : ?> current <?php endif; ?>">
    1515                        <a href="https://buddypress.org/about/">
    16                                 <?php _e( 'About', 'bborg' ); ?>
     16                                <?php esc_html_e( 'About', 'bborg' ); ?>
    1717                        </a>
    1818                </li>
    1919                <li class="menu-item<?php if ( true === $_is_news ) : ?> current <?php endif; ?>">
    2020                        <a href="https://buddypress.org/blog/">
    21                                 <?php _e( 'News', 'bborg' ); ?>
     21                                <?php esc_html_e( 'News', 'bborg' ); ?>
    2222                        </a>
    2323                </li>
    2424                <li class="menu-item<?php if ( true === $_is_codex ) : ?> current <?php endif; ?>">
    2525                        <a href="https://codex.buddypress.org/">
    26                                 <?php _e( 'Codex', 'bborg' ); ?>
     26                                <?php esc_html_e( 'Codex', 'bborg' ); ?>
    2727                        </a>
    2828                </li>
    2929                <li class="menu-item">
    3030                        <a href="https://developer.buddypress.org">
    31                                 <?php _e( 'Develop', 'bborg' ); ?>
     31                                <?php esc_html_e( 'Develop', 'bborg' ); ?>
    3232                        </a>
    3333                </li>
    3434                <li class="menu-item">
    3535                        <a href="https://buddypress.trac.wordpress.org">
    36                                 <?php _e( 'Make', 'bborg' ); ?>
     36                                <?php esc_html_e( 'Make', 'bborg' ); ?>
    3737                        </a>
    3838                </li>
    3939                <li class="menu-item<?php if ( true === $_is_bbpress ) : ?> current <?php endif; ?>">
    4040                        <a href="https://buddypress.org/support/">
    41                                 <?php _e( 'Forums', 'bborg' ); ?>
     41                                <?php esc_html_e( 'Forums', 'bborg' ); ?>
    4242                        </a>
    4343                </li>
    4444                <li class="menu-item <?php if ( true === $_is_download ) : ?> current <?php endif; ?>">
    4545                        <a href="https://buddypress.org/download/">
    46                                 <?php _e( 'Download', 'bborg' ); ?>
     46                                <?php esc_html_e( 'Download', 'bborg' ); ?>
    4747                        </a>
    4848                </li>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/buddypress-org/sidebar.php

    r14401 r15179  
    2424
    2525                        <div>
    26                                 <h2><?php _e( 'Forum Info', 'bporg' ); ?></h2>
     26                                <h2><?php esc_html_e( 'Forum Info', 'bporg' ); ?></h2>
    2727                                <ul class="forum-info">
    2828                                        <?php bb_base_single_forum_description(); ?>
    … …  
    3333
    3434                        <div>
    35                                 <h2><?php _e( 'Forum Feeds', 'bporg' ); ?></h2>
     35                                <h2><?php esc_html_e( 'Forum Feeds', 'bporg' ); ?></h2>
    3636                                <ul>
    37                                         <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/"><?php _e( 'Recent Posts', 'bporg' ); ?></a></li>
    38                                         <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/?type=topic"><?php _e( 'Recent Topics', 'bporg' ); ?></a></li>
     37                                        <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/"><?php esc_html_e( 'Recent Posts', 'bporg' ); ?></a></li>
     38                                        <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/?type=topic"><?php esc_html_e( 'Recent Topics', 'bporg' ); ?></a></li>
    3939                                </ul>
    4040                        </div>
    … …  
    4343
    4444                        <div>
    45                                 <h2><?php _e( 'Topic Info', 'bporg' ); ?></h2>
     45                                <h2><?php esc_html_e( 'Topic Info', 'bporg' ); ?></h2>
    4646                                <ul class="topic-info">
    4747                                        <?php bb_base_single_topic_description(); ?>
    … …  
    7676
    7777                        <div>
    78                                 <h2><?php _e( 'Forums', 'bporg' ); ?></h2>
     78                                <h2><?php esc_html_e( 'Forums', 'bporg' ); ?></h2>
    7979                                <?php echo do_shortcode( '[bbp-forum-index]' ); ?>
    8080                        </div>
    … …  
    8282
    8383                        <div>
    84                                 <h2><?php _e( 'Views', 'bporg' ); ?></h2>
     84                                <h2><?php esc_html_e( 'Views', 'bporg' ); ?></h2>
    8585                                <ul>
    8686
    … …  
    9595
    9696                        <div>
    97                                 <h2><?php _e( 'Feeds', 'bporg' ); ?></h2>
     97                                <h2><?php esc_html_e( 'Feeds', 'bporg' ); ?></h2>
    9898                                <ul>
    99                                         <li><a class="feed" href="<?php bbp_forums_url(); ?>feed/"><?php _e( 'All Recent Posts', 'bporg' ); ?></a></li>
    100                                         <li><a class="feed" href="<?php bbp_topics_url(); ?>feed/"><?php _e( 'All Recent Topics', 'bporg' ); ?></a></li>
     99                                        <li><a class="feed" href="<?php bbp_forums_url(); ?>feed/"><?php esc_html_e( 'All Recent Posts', 'bporg' ); ?></a></li>
     100                                        <li><a class="feed" href="<?php bbp_topics_url(); ?>feed/"><?php esc_html_e( 'All Recent Topics', 'bporg' ); ?></a></li>
    101101                                </ul>
    102102                        </div>
    103103
    104104                        <div class="bbp-topic-tag-cloud">
    105                                 <h2><?php _e( 'Tags', 'bporg' ); ?></h2>
     105                                <h2><?php esc_html_e( 'Tags', 'bporg' ); ?></h2>
    106106                                <?php echo do_shortcode( '[bbp-topic-tags]' ); ?>
    107107                        </div>
    … …  
    114114
    115115                <div>
    116                         <h2><?php _e( 'Legacy', 'bporg' ); ?></h2>
     116                        <h2><?php esc_html_e( 'Legacy', 'bporg' ); ?></h2>
    117117                        <ul>
    118                                 <li><a href="https://buddypress.org/support/forum/plugin-forums/"><?php _e( 'Legacy Plugin Forums', 'bporg' ); ?></a></li>
     118                                <li><a href="https://buddypress.org/support/forum/plugin-forums/"><?php esc_html_e( 'Legacy Plugin Forums', 'bporg' ); ?></a></li>
    119119                        </ul>
    120120                </div>
    … …  
    123123
    124124                <div>
    125                         <h2><?php _e( 'Categories', 'bporg' ); ?></h2>
     125                        <h2><?php esc_html_e( 'Categories', 'bporg' ); ?></h2>
    126126                        <ul>
    127127                                <?php wp_list_categories( array( 'title_li' => false ) ); ?>
    … …  
    130130
    131131                <div>
    132                         <h2><?php _e( 'Tags', 'bporg' ); ?></h2>
     132                        <h2><?php esc_html_e( 'Tags', 'bporg' ); ?></h2>
    133133                        <?php wp_tag_cloud(); ?>
    134134                </div>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-bbpress-org/footer.php

    r14291 r15179  
    88                        <div class="links">
    99                                <p>
    10                                         <a href="https://wordpress.org"><?php _e( 'WordPress.org', 'bbporg'); ?></a>
    11                                         <a href="https://bbpress.org"><?php _e( 'bbPress.org', 'bbporg'); ?></a>
    12                                         <a href="https://buddypress.org"><?php _e( 'BuddyPress.org', 'bbporg'); ?></a>
    13                                         <a href="https://ma.tt"><?php _e( 'Matt', 'bbporg' ); ?></a>
    14                                         <a href="<?php bloginfo( 'rss2_url' ); ?>" title="<?php esc_attr_e( 'RSS Feed for Articles', 'bbporg' ); ?>"><?php _e( 'Blog RSS', 'bbporg' ); ?></a>
     10                                        <a href="https://wordpress.org"><?php esc_html_e( 'WordPress.org', 'bbporg' ); ?></a>
     11                                        <a href="https://bbpress.org"><?php esc_html_e( 'bbPress.org', 'bbporg' ); ?></a>
     12                                        <a href="https://buddypress.org"><?php esc_html_e( 'BuddyPress.org', 'bbporg' ); ?></a>
     13                                        <a href="https://ma.tt"><?php esc_html_e( 'Matt', 'bbporg' ); ?></a>
     14                                        <a href="<?php bloginfo( 'rss2_url' ); ?>" title="<?php esc_attr_e( 'RSS Feed for Articles', 'bbporg' ); ?>"><?php esc_html_e( 'Blog RSS', 'bbporg' ); ?></a>
    1515                                </p>
    1616                        </div>
    1717                        <div class="details">
    1818                                <p>
    19                                         <a href="https://bbpress.org/about/gpl/"><?php _e('GPL', 'bbporg'); ?></a>
    20                                         <a href="https://bbpress.org/contact/"><?php _e('Contact Us', 'bbporg'); ?></a>
    21                                         <a href="https://wordpress.org/about/privacy/"><?php _e('Privacy', 'bbporg'); ?></a>
    22                                         <a href="https://bbpress.org/terms/"><?php _e('Terms of Service', 'bbporg'); ?></a>
    23                                         <a href="https://x.com/bbpress"><?php _e( 'X', 'bbporg'); ?></a>
     19                                        <a href="https://bbpress.org/about/gpl/"><?php esc_html_e( 'GPL', 'bbporg' ); ?></a>
     20                                        <a href="https://bbpress.org/contact/"><?php esc_html_e( 'Contact Us', 'bbporg' ); ?></a>
     21                                        <a href="https://wordpress.org/about/privacy/"><?php esc_html_e( 'Privacy', 'bbporg' ); ?></a>
     22                                        <a href="https://bbpress.org/terms/"><?php esc_html_e( 'Terms of Service', 'bbporg' ); ?></a>
     23                                        <a href="https://x.com/bbpress"><?php esc_html_e( 'X', 'bbporg' ); ?></a>
    2424                                </p>
    2525                        </div>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-bbpress-org/index.php

    r14291 r15179  
    33                        <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    44                        <cite><?php
    5                                 /* translators: 1: post date, 2: post author */
    6                                 printf( __( 'Published on %1$s by %2$s', 'bbporg' ),
    7                                         get_the_time( 'F jS, Y' ),
    8                                         get_the_author_link()
     5                                printf(
     6                                        /* translators: 1: Publication date, 2: Author link. */
     7                                        esc_html__( 'Published on %1$s by %2$s', 'bbporg' ),
     8                                        esc_html( get_the_time( 'F jS, Y' ) ),
     9                                        wp_kses_post( get_the_author_link() )
    910                                );
    1011                        ?></cite>
    … …  
    1314
    1415<?php else : ?>
    15                         <p><em><?php _e( 'Sorry, no posts matched your criteria.' ); ?></em></p>
     16                        <p><em><?php esc_html_e( 'Sorry, no posts matched your criteria.' ); ?></em></p>
    1617<?php endif; ?>
    1718                        <?php posts_nav_link(' &#8212; ', __('Newer &rarr;'), __('&larr; Older') ); ?>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/activity-entry.php

    r442 r15179  
    2929
    3030                        <div class="activity-inreplyto">
    31                                 <strong><?php _e( 'In reply to', 'buddypress' ) ?></strong> - <?php bp_activity_parent_content() ?> &middot;
    32                                 <a href="<?php bp_activity_thread_permalink() ?>" class="view" title="<?php esc_attr_e( 'Permalink', 'buddypress' ) ?>"><?php _e( 'View', 'buddypress' ) ?></a>
     31                                <strong><?php esc_html_e( 'In reply to', 'buddypress' ); ?></strong> - <?php bp_activity_parent_content(); ?> &middot;
     32                                <a href="<?php bp_activity_thread_permalink(); ?>" class="view" title="<?php esc_attr_e( 'Permalink', 'buddypress' ); ?>"><?php esc_html_e( 'View', 'buddypress' ); ?></a>
    3333                        </div>
    3434
    … …  
    4040                                <?php if ( !bp_get_activity_is_favorite() ) : ?>
    4141
    42                                         <a href="<?php bp_activity_favorite_link() ?>" class="button fav" title="<?php esc_attr_e( 'Mark as Favorite', 'buddypress' ) ?>"><?php _e( 'Favorite', 'buddypress' ) ?></a>
     42                                        <a href="<?php bp_activity_favorite_link(); ?>" class="button fav" title="<?php esc_attr_e( 'Mark as Favorite', 'buddypress' ); ?>"><?php esc_html_e( 'Favorite', 'buddypress' ); ?></a>
    4343
    4444                                <?php else : ?>
    4545
    46                                         <a href="<?php bp_activity_unfavorite_link() ?>" class="button unfav" title="<?php esc_attr_e( 'Remove Favorite', 'buddypress' ) ?>"><?php _e( 'Remove Favorite', 'buddypress' ) ?></a>
     46                                        <a href="<?php bp_activity_unfavorite_link(); ?>" class="button unfav" title="<?php esc_attr_e( 'Remove Favorite', 'buddypress' ); ?>"><?php esc_html_e( 'Remove Favorite', 'buddypress' ); ?></a>
    4747
    4848                                <?php endif; ?>
    … …  
    5151                        <?php if ( bp_get_activity_type() == 'new_forum_topic' || bp_get_activity_type() == 'new_forum_reply' ) : ?>
    5252
    53                                 <a href="<?php bp_activity_thread_permalink() ?>" class="button view-thread"><?php _e( 'View Topic' ); ?></a>
     53                                <a href="<?php bp_activity_thread_permalink(); ?>" class="button view-thread"><?php esc_html_e( 'View Topic' ); ?></a>
    5454
    5555                        <?php else : ?>
    … …  
    5757                                <?php if ( is_user_logged_in() && bp_activity_can_comment() ) : ?>
    5858
    59                                         <a href="<?php bp_activity_comment_link() ?>" class="button acomment-reply" id="acomment-comment-<?php bp_activity_id() ?>"><?php _e( 'Comment', 'buddypress' ) ?> (<span><?php bp_activity_comment_count() ?></span>)</a>
     59                                        <a href="<?php bp_activity_comment_link(); ?>" class="button acomment-reply" id="acomment-comment-<?php bp_activity_id(); ?>"><?php esc_html_e( 'Comment', 'buddypress' ); ?> (<span><?php bp_activity_comment_count(); ?></span>)</a>
    6060
    6161                                <?php endif; ?>
    … …  
    8888                                                <textarea id="ac-input-<?php bp_activity_id() ?>" class="ac-input" name="ac_input_<?php bp_activity_id() ?>"></textarea>
    8989                                        </div>
    90                                         <input type="submit" name="ac_form_submit" value="<?php esc_attr_e( 'Post', 'buddypress' ) ?> &rarr;" /> &nbsp; <?php _e( 'or press esc to cancel.', 'buddypress' ) ?>
     90                                        <input type="submit" name="ac_form_submit" value="<?php esc_attr_e( 'Post', 'buddypress' ); ?> &rarr;" /> &nbsp; <?php esc_html_e( 'or press esc to cancel.', 'buddypress' ); ?>
    9191                                        <input type="hidden" name="comment_form_id" value="<?php bp_activity_id() ?>" />
    9292                                </div>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/footer.php

    r14286 r15179  
    1111                        <div class="links">
    1212                                <p>
    13                                         <a href="https://wordpress.org"><?php _e( 'WordPress.org', 'bporg' ); ?></a>
    14                                         <a href="https://bbpress.org"><?php _e( 'bbPress.org', 'bporg' ); ?></a>
    15                                         <a href="https://buddypress.org"><?php _e( 'BuddyPress.org', 'bporg' ); ?></a>
    16                                         <a href="https://ma.tt"><?php _e( 'Matt', 'bporg' ); ?></a>
    17                                         <a href="<?php bloginfo( 'rss2_url' ); ?>"><?php _e( 'Blog RSS', 'bporg' ); ?></a>
     13                                        <a href="https://wordpress.org"><?php esc_html_e( 'WordPress.org', 'bporg' ); ?></a>
     14                                        <a href="https://bbpress.org"><?php esc_html_e( 'bbPress.org', 'bporg' ); ?></a>
     15                                        <a href="https://buddypress.org"><?php esc_html_e( 'BuddyPress.org', 'bporg' ); ?></a>
     16                                        <a href="https://ma.tt"><?php esc_html_e( 'Matt', 'bporg' ); ?></a>
     17                                        <a href="<?php bloginfo( 'rss2_url' ); ?>"><?php esc_html_e( 'Blog RSS', 'bporg' ); ?></a>
    1818                                </p>
    1919                        </div>
    2020                        <div class="details">
    2121                                <p>
    22                                         <a href="https://buddypress.org/about/gpl/"><?php _e( 'GPL', 'bporg' ); ?></a>
    23                                         <a href="https://buddypress.org/contact/"><?php _e( 'Contact Us', 'bporg' ); ?></a>
    24                                         <a href="https://wordpress.org/about/privacy/"><?php _e('Privacy', 'bbporg'); ?></a>
    25                                         <a href="https://buddypress.org/terms/"><?php _e( 'Terms of Service', 'bporg' ); ?></a>
    26                                         <a href="https://x.com/buddypressdev"><?php _e( 'X', 'bporg' ); ?></a>
     22                                        <a href="https://buddypress.org/about/gpl/"><?php esc_html_e( 'GPL', 'bporg' ); ?></a>
     23                                        <a href="https://buddypress.org/contact/"><?php esc_html_e( 'Contact Us', 'bporg' ); ?></a>
     24                                        <a href="https://wordpress.org/about/privacy/"><?php esc_html_e( 'Privacy', 'bbporg' ); ?></a>
     25                                        <a href="https://buddypress.org/terms/"><?php esc_html_e( 'Terms of Service', 'bporg' ); ?></a>
     26                                        <a href="https://x.com/buddypressdev"><?php esc_html_e( 'X', 'bporg' ); ?></a>
    2727                                </p>
    2828                        </div>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/header-nav.php

    r14286 r15179  
    1414                <li class="menu-item<?php if ( true === $_is_about ) : ?> current <?php endif; ?>">
    1515                        <a href="https://buddypress.org/about/">
    16                                 <?php _e( 'About', 'bborg' ); ?>
     16                                <?php esc_html_e( 'About', 'bborg' ); ?>
    1717                        </a>
    1818                </li>
    1919                <li class="menu-item<?php if ( true === $_is_news ) : ?> current <?php endif; ?>">
    2020                        <a href="https://buddypress.org/blog/">
    21                                 <?php _e( 'News', 'bborg' ); ?>
     21                                <?php esc_html_e( 'News', 'bborg' ); ?>
    2222                        </a>
    2323                </li>
    2424                <li class="menu-item<?php if ( true === $_is_codex ) : ?> current <?php endif; ?>">
    2525                        <a href="https://codex.buddypress.org/">
    26                                 <?php _e( 'Codex', 'bborg' ); ?>
     26                                <?php esc_html_e( 'Codex', 'bborg' ); ?>
    2727                        </a>
    2828                </li>
    2929                <li class="menu-item">
    3030                        <a href="https://developer.buddypress.org">
    31                                 <?php _e( 'Develop', 'bborg' ); ?>
     31                                <?php esc_html_e( 'Develop', 'bborg' ); ?>
    3232                        </a>
    3333                </li>
    3434                <li class="menu-item">
    3535                        <a href="https://buddypress.trac.wordpress.org">
    36                                 <?php _e( 'Make', 'bborg' ); ?>
     36                                <?php esc_html_e( 'Make', 'bborg' ); ?>
    3737                        </a>
    3838                </li>
    3939                <li class="menu-item<?php if ( true === $_is_bbpress ) : ?> current <?php endif; ?>">
    4040                        <a href="https://buddypress.org/support/">
    41                                 <?php _e( 'Forums', 'bborg' ); ?>
     41                                <?php esc_html_e( 'Forums', 'bborg' ); ?>
    4242                        </a>
    4343                </li>
    4444                <li class="menu-item <?php if ( true === $_is_download ) : ?> current <?php endif; ?>">
    4545                        <a href="https://buddypress.org/download/">
    46                                 <?php _e( 'Download', 'bborg' ); ?>
     46                                <?php esc_html_e( 'Download', 'bborg' ); ?>
    4747                        </a>
    4848                </li>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/index.php

    r14286 r15179  
    33                        <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    44                        <cite><?php
    5                                 /* translators: 1: post date, 2: post author */
    6                                 printf( __( 'Published on %1$s by %2$s', 'bporg' ),
    7                                         get_the_time( 'F jS, Y' ),
    8                                         get_the_author_link()
     5                                printf(
     6                                        /* translators: 1: Publication date, 2: Author link. */
     7                                        esc_html__( 'Published on %1$s by %2$s', 'bporg' ),
     8                                        esc_html( get_the_time( 'F jS, Y' ) ),
     9                                        wp_kses_post( get_the_author_link() )
    910                                );
    1011                        ?></cite>
    … …  
    1314
    1415<?php else : ?>
    15                         <p><em><?php _e( 'Sorry, no posts matched your criteria.' ); ?></em></p>
     16                        <p><em><?php esc_html_e( 'Sorry, no posts matched your criteria.' ); ?></em></p>
    1617<?php endif; ?>
    1718                        <?php posts_nav_link(' &#8212; ', __('Newer &rarr;'), __('&larr; Older') ); ?>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/widgets/inbox.php

    r10135 r15179  
    1010            extract( $args );
    1111                echo $before_widget;
    12                 echo $before_title . __( 'Inbox', 'bp-follow' ) . ' &middot <a href="' . esc_url( $bp->loggedin_user->domain . 'messages/inbox/' ) . '">View All</a>' . $after_title; ?>
     12                echo wp_kses_post( $before_title ) . esc_html__( 'Inbox', 'bp-follow' ) . ' &middot <a href="' . esc_url( $bp->loggedin_user->domain . 'messages/inbox/' ) . '">View All</a>' . wp_kses_post( $after_title ); ?>
    1313
    1414                <?php if ( bp_has_message_threads( 'per_page=5&max=5' ) ) : ?>
    … …  
    2121                                                <div class="details">
    2222                                                        <a class="title" href="<?php bp_message_thread_view_link() ?>" title="<?php esc_attr_e( "View Message", "buddypress" ); ?>"><?php bp_message_thread_subject() ?></a>
    23                                                         <div class="meta"><?php _e( 'From:', 'buddypress' ); ?> <?php bp_message_thread_from() ?> &middot; <?php bp_message_thread_last_post_date() ?></div>
     23                                                        <div class="meta"><?php esc_html_e( 'From:', 'buddypress' ); ?> <?php bp_message_thread_from(); ?> &middot; <?php bp_message_thread_last_post_date(); ?></div>
    2424                                                </div>
    2525                                        </li>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/widgets/login.php

    r15170 r15179  
    1414                        <?php
    1515                                echo $before_widget;
    16                                 echo $before_title . __( 'Logged In As', 'bp-follow' ) . $after_title; ?>
     16                                echo wp_kses_post( $before_title ) . esc_html__( 'Logged In As', 'bp-follow' ) . wp_kses_post( $after_title );
     17                        ?>
    1718
    1819                        <?php do_action( 'bp_before_sidebar_me' ) ?>
    … …  
    4142                        <?php
    4243                                echo $before_widget;
    43                                 echo $before_title . __( 'Log In', 'bp-follow' ) . $after_title; ?>
     44                                echo wp_kses_post( $before_title ) . esc_html__( 'Log In', 'bp-follow' ) . wp_kses_post( $after_title );
     45                        ?>
    4446
    4547                        <p id="login-text">
    46                                 <?php _e( 'To start connecting please log in first.', 'buddypress' ) ?>
     48                                <?php esc_html_e( 'To start connecting please log in first.', 'buddypress' ); ?>
    4749                                <?php if ( bp_get_signup_allowed() ) : ?>
    4850                                        <?php
    … …  
    5456
    5557                        <form name="login-form" id="sidebar-login-form" class="standard-form" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
    56                                 <label><?php _e( 'Username', 'buddypress' ) ?><br />
     58                                <label><?php esc_html_e( 'Username', 'buddypress' ); ?><br />
    5759                                <input type="text" name="log" id="sidebar-user-login" class="input" value="<?php echo attribute_escape(stripslashes($user_login)); ?>" /></label>
    5860
    59                                 <label><?php _e( 'Password', 'buddypress' ) ?><br />
     61                                <label><?php esc_html_e( 'Password', 'buddypress' ); ?><br />
    6062                                <input type="password" name="pwd" id="sidebar-user-pass" class="input" value="" /></label>
    6163
    62                                 <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="sidebar-rememberme" value="forever" /> <?php _e( 'Remember Me', 'buddypress' ) ?></label></p>
     64                                <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="sidebar-rememberme" value="forever" /> <?php esc_html_e( 'Remember Me', 'buddypress' ); ?></label></p>
    6365
    6466                                <?php do_action( 'bp_sidebar_login_form' ) ?>
  • sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/downloads/rosetta-downloads.php

    r14603 r15179  
    140140                ?>
    141141                <div class="wrap">
    142                         <h2><?php _e( 'Download Stats', 'rosetta' ); ?></h2>
     142                        <h2><?php esc_html_e( 'Download Stats', 'rosetta' ); ?></h2>
    143143                        <p>
    144144                                <?php
    145145                                printf(
    146                                         __( 'This page shows the <a href="%s">Download Counter</a> number &mdash; total downloads of WordPress %s &mdash; broken down by locale.', 'rosetta' ),
     146                                        /* translators: 1: Download counter URL, 2: WordPress version. */
     147                                        wp_kses_post( __( 'This page shows the <a href="%1$s">Download Counter</a> number &mdash; total downloads of WordPress %2$s &mdash; broken down by locale.', 'rosetta' ) ),
    147148                                        'https://wordpress.org/download/counter/',
    148149                                        esc_html( WP_CORE_STABLE_BRANCH )
    … …  
    154155                                <thead>
    155156                                        <tr>
    156                                                 <th scope="col"><?php _e( 'Locale', 'rosetta' ); ?></th>
    157                                                 <th scope="col" style="text-align:right"><?php _e( 'Release Package', 'rosetta' ); ?></th>
    158                                                 <th scope="col" style="text-align:right"><?php _e( 'Language Pack', 'rosetta' ); ?></th>
     157                                                <th scope="col"><?php esc_html_e( 'Locale', 'rosetta' ); ?></th>
     158                                                <th scope="col" style="text-align:right"><?php esc_html_e( 'Release Package', 'rosetta' ); ?></th>
     159                                                <th scope="col" style="text-align:right"><?php esc_html_e( 'Language Pack', 'rosetta' ); ?></th>
    159160                                        </tr>
    160161                                </thead>
    … …  
    163164                                        <tr>
    164165                                                <td>
    165                                                         <strong><?php _ex( 'All', 'locales', 'rosetta' ); ?></strong>
     166                                                        <strong><?php echo esc_html_x( 'All', 'locales', 'rosetta' ); ?></strong>
    166167                                                </td>
    167168                                                <td style="text-align:right">
    … …  
    177178                                <tfoot>
    178179                                        <tr>
    179                                                 <th scope="col" style="width:80px"><?php _e( 'Locale', 'rosetta' ); ?></th>
    180                                                 <th scope="col" style="text-align:right"><?php _e( 'Release Package', 'rosetta' ); ?></th>
    181                                                 <th scope="col" style="text-align:right"><?php _e( 'Language Pack', 'rosetta' ); ?></th>
     180                                                <th scope="col" style="width:80px"><?php esc_html_e( 'Locale', 'rosetta' ); ?></th>
     181                                                <th scope="col" style="text-align:right"><?php esc_html_e( 'Release Package', 'rosetta' ); ?></th>
     182                                                <th scope="col" style="text-align:right"><?php esc_html_e( 'Language Pack', 'rosetta' ); ?></th>
    182183                                        </tr>
    183184                                </tfoot>
  • sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/roles/class-translation-editors-list-table.php

    r6684 r15179  
    107107         */
    108108        public function no_items() {
    109                 _e( 'No translation editors were found.', 'rosetta' );
     109                esc_html_e( 'No translation editors were found.', 'rosetta' );
    110110        }
    111111
    … …  
    270270                if ( $this->user_can_promote ) {
    271271                        ?>
    272                         <label class="screen-reader-text" for="cb-select-<?php echo $user->ID; ?>"><?php _e( 'Select translation editor', 'rosetta' ); ?></label>
     272                        <label class="screen-reader-text" for="cb-select-<?php echo (int) $user->ID; ?>"><?php esc_html_e( 'Select translation editor', 'rosetta' ); ?></label>
    273273                        <input id="cb-select-<?php echo $user->ID; ?>" type="checkbox" name="translation-editors[]" value="<?php echo $user->ID; ?>">
    274274                        <?php
    … …  
    327327
    328328                if ( empty( $project_access_list ) ) {
    329                         _e( 'No projects', 'rosetta' );
     329                        esc_html_e( 'No projects', 'rosetta' );
    330330                        return;
    331331                }
    332332
    333333                if ( in_array( 'all', $project_access_list, true ) ) {
    334                         _e( 'All projects', 'rosetta' );
     334                        esc_html_e( 'All projects', 'rosetta' );
    335335                        return;
    336336                }
  • sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/roles/views/cross-locale-pte.php

    r4929 r15179  
     1<?php
     2/**
     3 * Admin view listing cross-locale project translation editors.
     4 *
     5 * @package Rosetta
     6 */
     7
     8?>
    19<div class="wrap">
    210        <h2>
    3                 <?php _e( 'Cross-Locale PTEs', 'rosetta' ); ?>
     11                <?php esc_html_e( 'Cross-Locale PTEs', 'rosetta' ); ?>
    412        </h2>
    513
    614        <?php echo $feedback_message; ?>
    715
    8         <p><?php _e( 'This is the list of our current Cross-Locale PTEs.', 'rosetta' ); ?></p>
     16        <p><?php esc_html_e( 'This is the list of our current Cross-Locale PTEs.', 'rosetta' ); ?></p>
    917        <table class="wp-list-table widefat fixed striped translation-editors">
    1018                <thead>
    … …  
    4149
    4250        <?php if ( current_user_can( Rosetta_Roles::MANAGE_TRANSLATION_EDITORS_CAP ) ) : ?>
    43                 <h3><?php _e( 'Add Cross-Locale PTE', 'rosetta' ); ?></h3>
    44                 <p><?php _e( 'Enter the email address or username of an existing user on wordpress.org.', 'rosetta' ); ?></p>
     51                <h3><?php esc_html_e( 'Add Cross-Locale PTE', 'rosetta' ); ?></h3>
     52                <p><?php esc_html_e( 'Enter the email address or username of an existing user on wordpress.org.', 'rosetta' ); ?></p>
    4553                <form action="" method="post">
    4654                        <table class="form-table">
    4755                                <tr>
    48                                         <th scope="row"><label for="user"><?php _e( 'E-mail or Username', 'rosetta' ); ?></label></th>
     56                                        <th scope="row"><label for="user"><?php esc_html_e( 'E-mail or Username', 'rosetta' ); ?></label></th>
    4957                                        <td><input type="text" class="regular-text" name="user" id="user"></td>
    5058                                </tr>
  • sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/roles/views/edit-cross-locale-pte.php

    r11376 r15179  
     1<?php
     2/**
     3 * Admin view for editing a cross-locale project translation editor.
     4 *
     5 * @package Rosetta
     6 */
     7
     8?>
    19<div class="wrap">
    2         <h2><?php _e( 'Edit Cross-Locale PTE', 'rosetta' ); ?></h2>
     10        <h2><?php esc_html_e( 'Edit Cross-Locale PTE', 'rosetta' ); ?></h2>
    311
    412        <?php echo $feedback_message; ?>
    … …  
    715                printf(
    816                        /* translators: %s: WP.org profile link */
    9                         __( 'You are currently editing the user %s.', 'rosetta' ),
     17                        esc_html__( 'You are currently editing the user %s.', 'rosetta' ),
    1018                        sprintf( '<a href="%1$s">%2$s</a>',
    1119                                'https://profiles.wordpress.org/' . $user->user_nicename . '/',
    … …  
    2028                                <tr>
    2129                                        <th scope="row">
    22                                                 <?php _e( 'Add cross-locale PTE access for:', 'rosetta' ); ?><br>
     30                                                <?php esc_html_e( 'Add cross-locale PTE access for:', 'rosetta' ); ?><br>
    2331                                        </th>
    2432                                        <td>
    2533                                                <fieldset id="projects">
    26                                                         <legend class="screen-reader-text"><span><?php _e( 'Add cross-locale PTE access for:', 'rosetta' ); ?></span></legend>
     34                                                        <legend class="screen-reader-text"><span><?php esc_html_e( 'Add cross-locale PTE access for:', 'rosetta' ); ?></span></legend>
    2735
    2836                                                        <ul id="projects-list" class="projects-list">
    2937                                                                <li id="project-loading" class="loading">
    30                                                                         <?php _e( 'Loading&hellip;', 'rosetta' ); ?>
     38                                                                        <?php esc_html_e( 'Loading&hellip;', 'rosetta' ); ?>
    3139                                                                </li>
    3240                                                        </ul>
    3341                                                </fieldset>
    34                                                 <p class="description"><?php _e( 'Each project includes sub projects and newly-added sub projects.', 'rosetta' ); ?></p>
     42                                                <p class="description"><?php esc_html_e( 'Each project includes sub projects and newly-added sub projects.', 'rosetta' ); ?></p>
    3543                                        </td>
    3644                                </tr>
  • sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/roles/views/edit-translation-editor.php

    r11376 r15179  
     1<?php
     2/**
     3 * Admin view for editing a translation editor.
     4 *
     5 * @package Rosetta
     6 */
     7
     8?>
    19<div class="wrap">
    2         <h2><?php _e( 'Edit Translation Editor', 'rosetta' ); ?></h2>
     10        <h2><?php esc_html_e( 'Edit Translation Editor', 'rosetta' ); ?></h2>
    311
    412        <?php echo $feedback_message; ?>
    … …  
    816                printf(
    917                        /* translators: %s: WP.org profile link */
    10                         __( 'You are currently editing the user %s.', 'rosetta' ),
     18                        esc_html__( 'You are currently editing the user %s.', 'rosetta' ),
    1119                        sprintf( '<a href="%1$s">%2$s</a>',
    1220                                'https://profiles.wordpress.org/' . $user->user_nicename . '/',
    … …  
    2129                                <tr>
    2230                                        <th scope="row">
    23                                                 <?php _e( 'Add editor access for:', 'rosetta' ); ?><br>
     31                                                <?php esc_html_e( 'Add editor access for:', 'rosetta' ); ?><br>
    2432                                        </th>
    2533                                        <td>
    2634                                                <fieldset id="projects">
    27                                                         <legend class="screen-reader-text"><span><?php _e( 'Add editor access for:', 'rosetta' ); ?></span></legend>
     35                                                        <legend class="screen-reader-text"><span><?php esc_html_e( 'Add editor access for:', 'rosetta' ); ?></span></legend>
    2836
    2937                                                        <ul id="projects-list" class="projects-list">
    3038                                                                <li id="project-all" class="active">
    3139                                                                        <label>
    32                                                                                 <input type="checkbox"<?php checked( in_array( 'all', $project_access_list ) ); ?>> <?php _e( 'All projects', 'rosetta' ); ?>
     40                                                                                <input type="checkbox"<?php checked( in_array( 'all', $project_access_list ) ); ?>> <?php esc_html_e( 'All projects', 'rosetta' ); ?>
    3341                                                                        </label>
    3442                                                                        <div class="sub-projects-wrapper">
    35                                                                                 <?php _e( 'The translation editor has validation permissions for all projects, including newly-added projects.', 'rosetta' ); ?>
     43                                                                                <?php esc_html_e( 'The translation editor has validation permissions for all projects, including newly-added projects.', 'rosetta' ); ?>
    3644                                                                        </div>
    3745                                                                </li>
    3846                                                                <li id="project-loading" class="loading">
    39                                                                         <?php _e( 'Loading&hellip;', 'rosetta' ); ?>
     47                                                                        <?php esc_html_e( 'Loading&hellip;', 'rosetta' ); ?>
    4048                                                                </li>
    4149                                                        </ul>
    4250                                                </fieldset>
    43                                                 <p class="description"><?php _e( 'Each project includes sub projects and newly-added sub projects.', 'rosetta' ); ?></p>
     51                                                <p class="description"><?php esc_html_e( 'Each project includes sub projects and newly-added sub projects.', 'rosetta' ); ?></p>
    4452                                        </td>
    4553                                </tr>
  • sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/roles/views/translation-editors.php

    r2750 r15179  
    22        <h2>
    33                <?php
    4                 _e( 'Translation Editors', 'rosetta' );
     4                esc_html_e( 'Translation Editors', 'rosetta' );
    55
    66                if ( ! empty( $_REQUEST['s'] ) ) {
    7                         echo '<span class="subtitle">' . sprintf( __( 'Search results for &#8220;%s&#8221;', 'rosetta' ), esc_html( wp_unslash( $_REQUEST['s'] ) ) ) . '</span>';
     7                        /* translators: %s: Search term. */
     8                        echo '<span class="subtitle">' . sprintf( esc_html__( 'Search results for &#8220;%s&#8221;', 'rosetta' ), esc_html( wp_unslash( $_REQUEST['s'] ) ) ) . '</span>'; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Escaped for display.
    89                }
    910                ?>
    … …  
    2425
    2526        <?php if ( current_user_can( Rosetta_Roles::MANAGE_TRANSLATION_EDITORS_CAP ) ) : ?>
    26                 <h3><?php _e( 'Add Translation Editor', 'rosetta' ); ?></h3>
    27                 <p><?php _e( 'Enter the email address or username of an existing user on wordpress.org.', 'rosetta' ); ?></p>
     27                <h3><?php esc_html_e( 'Add Translation Editor', 'rosetta' ); ?></h3>
     28                <p><?php esc_html_e( 'Enter the email address or username of an existing user on wordpress.org.', 'rosetta' ); ?></p>
    2829                <form action="" method="post">
    2930                        <table class="form-table">
    3031                                <tr>
    31                                         <th scope="row"><label for="user"><?php _e( 'E-mail or Username', 'rosetta' ); ?></label></th>
     32                                        <th scope="row"><label for="user"><?php esc_html_e( 'E-mail or Username', 'rosetta' ); ?></label></th>
    3233                                        <td><input type="text" class="regular-text" name="user" id="user"></td>
    3334                                </tr>
    3435                                <tr>
    35                                         <th scope="row"><label for="user"><?php _e( 'Add editor access for:', 'rosetta' ); ?></label></th>
     36                                        <th scope="row"><label for="user"><?php esc_html_e( 'Add editor access for:', 'rosetta' ); ?></label></th>
    3637                                        <td>
    3738                                                <fieldset>
    38                                                         <legend class="screen-reader-text"><?php _e( 'Add editor access for:', 'rosetta' ); ?></legend>
     39                                                        <legend class="screen-reader-text"><?php esc_html_e( 'Add editor access for:', 'rosetta' ); ?></legend>
    3940                                                        <label for="custom-projects">
    40                                                                 <input type="radio" name="projects" value="custom" id="custom-projects" checked> <?php _e( 'Custom &ndash; After the user is added you will be redirected to set the projects.', 'rosetta' ); ?>
     41                                                                <input type="radio" name="projects" value="custom" id="custom-projects" checked> <?php esc_html_e( 'Custom &ndash; After the user is added you will be redirected to set the projects.', 'rosetta' ); ?>
    4142                                                        </label>
    4243                                                        <br>
    4344                                                        <label for="all-projects" >
    44                                                                 <input type="radio" name="projects" value="all" id="all-projects"> <?php _e( 'All projects &ndash; If selected, translation editor will have validation permissions for all projects, including newly-added projects.', 'rosetta' ); ?>
     45                                                                <input type="radio" name="projects" value="all" id="all-projects"> <?php esc_html_e( 'All projects &ndash; If selected, translation editor will have validation permissions for all projects, including newly-added projects.', 'rosetta' ); ?>
    4546                                                        </label>
    4647                                                </fieldset>
  • sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/showcase/rosetta-showcase.php

    r15170 r15179  
    126126                $url = get_post_meta( $post->ID, '_rosetta_showcase_url', true );
    127127                ?>
    128                 <p><label for="rosetta_showcase_url"><?php _e( 'URL', 'rosetta' ); ?></label>
     128                <p><label for="rosetta_showcase_url"><?php esc_html_e( 'URL', 'rosetta' ); ?></label>
    129129                        <input style="margin-left: 0; width: 98%" name="rosetta_showcase_url" id="rosetta_showcase_url" type="text" value="<?php echo esc_url( $url ); ?>" /></p>
    130                 <label for="excerpt"><?php _e( 'Description', 'rosetta' ); ?></label>
    131                 <textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt"><?php echo $post->post_excerpt; // textarea_escaped ?></textarea>
     130                <label for="excerpt"><?php esc_html_e( 'Description', 'rosetta' ); ?></label>
     131                <textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt"><?php echo $post->post_excerpt; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- The classic editor supplies an edit-context post; format_to_edit() has already escaped the excerpt for this textarea. ?></textarea>
    132132                <?php
    133133        }
  • sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/404.php

    r2249 r15179  
    33<div id="headline">
    44        <div class="wrapper">
    5                 <h2><?php _e( 'Page Not Found', 'rosetta' ); ?></h2>
     5                <h2><?php esc_html_e( 'Page Not Found', 'rosetta' ); ?></h2>
    66        </div>
    77</div>
    … …  
    1010        <div class="wrapper">
    1111                <div class="col-12" role="main">
    12                         <p class="intro"><?php _e( 'The page you were looking for could not be found. I&#8217;m sorry, it&#8217;s not your fault&hellip; probably.', 'rosetta' ); ?></p>
     12                        <p class="intro"><?php esc_html_e( 'The page you were looking for could not be found. I&#8217;m sorry, it&#8217;s not your fault&hellip; probably.', 'rosetta' ); ?></p>
    1313                </div>
    1414        </div>
  • sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/archive.php

    r2249 r15179  
     1<?php
     2/**
     3 * The template for displaying archive pages.
     4 *
     5 * @package Rosetta
     6 */
     7
     8?>
    19<?php get_header(); ?>
    210
    … …  
    917                                $blog_url = home_url( '/#blog' );
    1018                                if ( 'page' === get_option( 'show_on_front' ) ) {
    11                                         $blog_url = get_permalink( get_option('page_for_posts' ) );
     19                                        $blog_url = get_permalink( get_option( 'page_for_posts' ) );
    1220                                }
    1321                                ?>
    14                                 <p><a href="<?php echo esc_url( $blog_url ); ?>"><?php _e( '&laquo; Back to blog', 'rosetta' ); ?></a></p>
     22                                <p><a href="<?php echo esc_url( $blog_url ); ?>"><?php esc_html_e( '&laquo; Back to blog', 'rosetta' ); ?></a></p>
    1523
    1624                                <table class="widefat" >
    … …  
    1826                                        $i = 0;
    1927                                        if ( have_posts() ) :
    20                                                 while ( have_posts() ) : the_post();
     28                                                while ( have_posts() ) :
     29                                                        the_post();
    2130                                                        $i++;
    2231                                                        ?>
    23                                                         <tr <?php if ( $i % 2 ) echo ' class="alt" '; ?>>
     32                                                        <tr
     33                                                        <?php
     34                                                        if ( $i % 2 ) {
     35                                                                echo ' class="alt" ';}
     36                                                        ?>
     37                                                        >
    2438                                                                <th>
    25                                                                         <?php the_date( '','<span class="date">', '</span>' ); ?>
     39                                                                        <?php the_date( '', '<span class="date">', '</span>' ); ?>
    2640                                                                </th>
    2741                                                                <td>
    28                                                                         <a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
     42                                                                        <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
    2943                                                                </td>
    3044                                                        </tr>
    … …  
    3347                                        else :
    3448                                                ?>
    35                                                 <p><?php _e( 'Sorry, no posts matched your criteria.', 'rosetta' ); ?></p>
     49                                                <p><?php esc_html_e( 'Sorry, no posts matched your criteria.', 'rosetta' ); ?></p>
    3650                                                <?php
    3751                                        endif;
    … …  
    4660        </div>
    4761
    48 <?php get_footer();
     62<?php
     63get_footer();
  • sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/comments.php

    r1615 r15179  
    11<?php
     2/**
     3 * The template for displaying comments.
     4 *
     5 * @package Rosetta
     6 */
     7
    28/*
    39 * If the current post is protected by a password and
    … …  
    1521                <h2 class="comments-title">
    1622                        <?php
    17                                 printf( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'rosetta' ),
    18                                         number_format_i18n( get_comments_number() ), get_the_title() );
     23                                printf(
     24                                        /* translators: 1: Number of comments, 2: Post title. */
     25                                        esc_html( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'rosetta' ) ), // phpcs:ignore WordPress.WP.I18n.MissingSingularPlaceholder -- The singular form carries no count.
     26                                        esc_html( number_format_i18n( get_comments_number() ) ),
     27                                        esc_html( get_the_title() )
     28                                );
    1929                        ?>
    2030                </h2>
    … …  
    2232                <ol class="comment-list">
    2333                        <?php
    24                                 wp_list_comments( array(
    25                                         'style'       => 'ol',
    26                                         'short_ping'  => true,
    27                                         'avatar_size' => 56,
    28                                 ) );
     34                                wp_list_comments(
     35                                        array(
     36                                                'style'       => 'ol',
     37                                                'short_ping'  => true,
     38                                                'avatar_size' => 56,
     39                                        )
     40                                );
    2941                        ?>
    3042                </ol>
    … …  
    3446        <?php
    3547                // If comments are closed and there are comments, let's leave a little note, shall we?
    36                 if ( ! comments_open() && get_comments_number() ) :
    37         ?>
    38                 <p class="no-comments"><?php _e( 'Comments are closed.', 'rosetta' ); ?></p>
     48        if ( ! comments_open() && get_comments_number() ) :
     49                ?>
     50                <p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'rosetta' ); ?></p>
    3951        <?php endif; ?>
    4052
  • sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/contact.php

    r2249 r15179  
    4848        if ( $error ) {
    4949                ?>
    50                 <h3 id="return"><?php _e( 'Error', 'rosetta' ); ?></h3>
    51                 <p class="error"><?php _e( 'There seems to have been a problem with the information you entered. Please fix the field indicated and resubmit.', 'rosetta' ); ?></p>
     50                <h3 id="return"><?php esc_html_e( 'Error', 'rosetta' ); ?></h3>
     51                <p class="error"><?php esc_html_e( 'There seems to have been a problem with the information you entered. Please fix the field indicated and resubmit.', 'rosetta' ); ?></p>
    5252                <form id="contactme" method="post" action="/contact/#return">
    5353                        <table id="form">
    … …  
    5656                                        <tr class="error">
    5757                                                <td class="label">
    58                                                         <label for="your_name"><?php _e( 'Your Name:', 'rosetta' ); ?> </label>
     58                                                        <label for="your_name"><?php esc_html_e( 'Your Name:', 'rosetta' ); ?> </label>
    5959                                                </td>
    6060                                                <td>
    6161                                                        <span><input name="your_name" type="text" id="your_name" value="<?php echo esc_attr( $_POST['your_name'] ); ?>" /></span>
    62                                                         <?php _e( 'Let us know your name.', 'rosetta' ); ?>
    63                                                 </td>
    64                                         </tr>
    65                                 <?php } else { ?>
    66                                         <tr>
    67                                                 <td class="label">
    68                                                         <label for="your_name"><?php _e( 'Your Name:', 'rosetta' ); ?></label>
     62                                                        <?php esc_html_e( 'Let us know your name.', 'rosetta' ); ?>
     63                                                </td>
     64                                        </tr>
     65                                <?php } else { ?>
     66                                        <tr>
     67                                                <td class="label">
     68                                                        <label for="your_name"><?php esc_html_e( 'Your Name:', 'rosetta' ); ?></label>
    6969                                                </td>
    7070                                                <td>
    … …  
    7777                                        <tr class="error">
    7878                                                <td class="label">
    79                                                         <label for="your_email"><?php _e( 'Your Email:', 'rosetta' ); ?></label>
     79                                                        <label for="your_email"><?php esc_html_e( 'Your Email:', 'rosetta' ); ?></label>
    8080                                                </td>
    8181                                                <td>
    8282                                                        <span><input name="your_email" type="text" id="your_email" value="<?php echo esc_attr( $_POST['your_email'] ); ?>" /></span>
    83                                                         <?php _e( 'Your email address did not appear to be valid. Please check it.', 'rosetta' ); ?>
    84                                                 </td>
    85                                         </tr>
    86                                 <?php } else { ?>
    87                                         <tr>
    88                                                 <td class="label">
    89                                                         <label for="your_email"><?php _e( 'Your Email:', 'rosetta' ); ?></label>
     83                                                        <?php esc_html_e( 'Your email address did not appear to be valid. Please check it.', 'rosetta' ); ?>
     84                                                </td>
     85                                        </tr>
     86                                <?php } else { ?>
     87                                        <tr>
     88                                                <td class="label">
     89                                                        <label for="your_email"><?php esc_html_e( 'Your Email:', 'rosetta' ); ?></label>
    9090                                                </td>
    9191                                                <td>
    … …  
    9797                                <tr>
    9898                                        <td class="label">
    99                                                 <label for="blog_url"><?php _e( 'URI of your blog:', 'rosetta' ); ?></label>
     99                                                <label for="blog_url"><?php esc_html_e( 'URI of your blog:', 'rosetta' ); ?></label>
    100100                                        </td>
    101101                                        <td>
    … …  
    107107                                        <tr class="error">
    108108                                                <td class="label">
    109                                                         <label for="subject"><?php _e( 'What&rsquo;s this about?', 'rosetta' ); ?></label>
     109                                                        <label for="subject"><?php esc_html_e( 'What&rsquo;s this about?', 'rosetta' ); ?></label>
    110110                                                </td>
    111111                                                <td>
    112112                                                        <span><input name="subject" type="text" id="subject" value="<?php echo esc_attr( $_POST['subject'] ); ?>" /></span>
    113                                                         <?php _e( 'Write something!', 'rosetta' ); ?>
    114                                                 </td>
    115                                         </tr>
    116                                 <?php } else { ?>
    117                                         <tr>
    118                                                 <td class="label">
    119                                                         <label for="subject"><?php _e('What&rsquo;s this about?', 'rosetta'); ?></label>
     113                                                        <?php esc_html_e( 'Write something!', 'rosetta' ); ?>
     114                                                </td>
     115                                        </tr>
     116                                <?php } else { ?>
     117                                        <tr>
     118                                                <td class="label">
     119                                                        <label for="subject"><?php esc_html_e( 'What&rsquo;s this about?', 'rosetta' ); ?></label>
    120120                                                </td>
    121121                                                <td>
    … …  
    128128                                        <tr class="error">
    129129                                                <td class="label">
    130                                                         <label for="message"><?php _e('Your Message:', 'rosetta'); ?></label>
     130                                                        <label for="message"><?php esc_html_e( 'Your Message:', 'rosetta' ); ?></label>
    131131                                                </td>
    132132                                                <td>
    133133                                                        <span class="message"><textarea name="message" id="message"><?php echo esc_textarea( $_POST['message'] ); ?></textarea></span>
    134                                                         <?php _e( 'Say something!', 'rosetta' ); ?>
    135                                                 </td>
    136                                         </tr>
    137                                 <?php } else { ?>
    138                                         <tr>
    139                                                 <td class="label">
    140                                                         <label for="message"><?php _e( 'Your Message:', 'rosetta' ); ?></label>
     134                                                        <?php esc_html_e( 'Say something!', 'rosetta' ); ?>
     135                                                </td>
     136                                        </tr>
     137                                <?php } else { ?>
     138                                        <tr>
     139                                                <td class="label">
     140                                                        <label for="message"><?php esc_html_e( 'Your Message:', 'rosetta' ); ?></label>
    141141                                                </td>
    142142                                                <td>
    … …  
    204204                ?>
    205205                <div id="return">
    206                         <h3><?php _e( 'Submitted!', 'rosetta' ); ?></h3>
    207                         <p><strong><?php _e( 'Thank you!', 'rosetta' ); ?></strong></p>
     206                        <h3><?php esc_html_e( 'Submitted!', 'rosetta' ); ?></h3>
     207                        <p><strong><?php esc_html_e( 'Thank you!', 'rosetta' ); ?></strong></p>
    208208                </div>
    209209                <?php
    … …  
    213213
    214214        if ( false !== strpos( get_the_content(), 'The contents of this page are filled automatically' ) ) : ?>
    215                 <p><?php _e( 'You can contact translators and this site administrators via this form:', 'rosetta'); ?></p>
     215                <p><?php esc_html_e( 'You can contact translators and this site administrators via this form:', 'rosetta' ); ?></p>
    216216                <?php /* translators: feel free to add links to places, where one can get support in your language. */ ?>
    217                 <p><?php _e( '<strong>Please, do not post support requests here!</strong> They will probably be ignored.', 'rosetta' ); ?></p>
     217                <p><?php echo wp_kses_post( __( '<strong>Please, do not post support requests here!</strong> They will probably be ignored.', 'rosetta' ) ); ?></p>
    218218        <?php else: ?>
    219219                <?php the_content(); ?>
    … …  
    224224                        <tr>
    225225                                <td class="label">
    226                                         <label for="your_name"><?php _e( 'Your Name:', 'rosetta' ); ?></label> <?php _e( '(required)', 'rosetta' ); ?>
     226                                        <label for="your_name"><?php esc_html_e( 'Your Name:', 'rosetta' ); ?></label> <?php esc_html_e( '(required)', 'rosetta' ); ?>
    227227                                </td>
    228228                                <td>
    … …  
    232232                        <tr>
    233233                                <td class="label">
    234                                         <label for="your_email"><?php _e( 'Your Email:', 'rosetta' ); ?></label> <?php _e( '(required)', 'rosetta' ); ?>
     234                                        <label for="your_email"><?php esc_html_e( 'Your Email:', 'rosetta' ); ?></label> <?php esc_html_e( '(required)', 'rosetta' ); ?>
    235235                                </td>
    236236                                <td>
    … …  
    240240                        <tr>
    241241                                <td class="label">
    242                                         <label for="blog_url"><?php _e( 'URI of your blog:', 'rosetta' ); ?></label>
     242                                        <label for="blog_url"><?php esc_html_e( 'URI of your blog:', 'rosetta' ); ?></label>
    243243                                </td>
    244244                                <td>
    … …  
    248248                        <tr>
    249249                                <td class="label">
    250                                         <label for="subject"><?php _e( 'What&rsquo;s this about?', 'rosetta' ); ?></label> <?php _e( '(required)', 'rosetta' ); ?>
     250                                        <label for="subject"><?php esc_html_e( 'What&rsquo;s this about?', 'rosetta' ); ?></label> <?php esc_html_e( '(required)', 'rosetta' ); ?>
    251251                                </td>
    252252                                <td>
    … …  
    256256                        <tr>
    257257                                <td class="label">
    258                                         <label for="message"><?php _e( 'Tell us something:', 'rosetta' ); ?></label> <?php _e( '(required)', 'rosetta' ); ?>
     258                                        <label for="message"><?php esc_html_e( 'Tell us something:', 'rosetta' ); ?></label> <?php esc_html_e( '(required)', 'rosetta' ); ?>
    259259                                </td>
    260260                                <td>
  • sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/download.php

    r2249 r15179  
    2323                        rosetta_release_row( null, null, null, true );
    2424?>
    25                         <h3 id="latest"><?php _e( 'Latest release', 'rosetta' ); ?></h3>
     25                        <h3 id="latest"><?php esc_html_e( 'Latest release', 'rosetta' ); ?></h3>
    2626                        <table class="releases latest">
    2727                                <?php echo rosetta_release_row( $releases['latest'], 'alt' ); ?>
    … …  
    3636                        rosetta_release_row( null, null, null, true );
    3737?>
    38                         <h3><?php printf( __( '%s Branch', 'rosetta' ), $branch );?></h3>
     38                        <?php /* translators: %s: Branch number. */ ?>
     39                        <h3><?php printf( esc_html__( '%s Branch', 'rosetta' ), esc_html( $branch ) ); ?></h3>
    3940                        <table class="releases">
    4041<?php
    … …  
    5152                if ( ! empty( $releases['betas'] ) ):
    5253?>
    53                         <h3 id="betas"><?php _e( 'Beta &amp; RC releases', 'rosetta' ); ?></h3>
     54                        <h3 id="betas"><?php esc_html_e( 'Beta &amp; RC releases', 'rosetta' ); ?></h3>
    5455                        <table id="beta" class="releases">
    5556<?php
    … …  
    6768        else: # no releases
    6869?>
    69         <p><?php _e( 'There are no releases, yet.', 'rosetta' ); ?></p>
     70        <p><?php esc_html_e( 'There are no releases, yet.', 'rosetta' ); ?></p>
    7071<?php endif; # if releases?>
    7172                        </div>
  • sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/front-page.php

    r15170 r15179  
    7474                <div class="section">
    7575                        <div class="col-12">
    76                                 <h3><?php _e( 'Showcase', 'rosetta' ); ?></h3>
     76                                <h3><?php esc_html_e( 'Showcase', 'rosetta' ); ?></h3>
    7777                                <ul id="showcase">
    7878<?php
    … …  
    9494                <?php echo esc_html( $item->post_title ); ?>
    9595                <br />
    96                 <a class="showcase-url" href="<?php echo esc_url( $url ); ?>" rel="nofollow"><?php _e( 'Visit the site &rarr;', 'rosetta' ); ?></a>
     96                <a class="showcase-url" href="<?php echo esc_url( $url ); ?>" rel="nofollow"><?php esc_html_e( 'Visit the site &rarr;', 'rosetta' ); ?></a>
    9797        </li>
    9898<?php
    … …  
    109109                        <div class="section">
    110110                                <div class="col-12">
    111                                         <h3><?php _e('Showcase', 'rosetta'); ?></h3>
     111                                        <h3><?php esc_html_e( 'Showcase', 'rosetta' ); ?></h3>
    112112                                        <span id="showcase-front-slate">You can <a href="<?php echo esc_url( admin_url( 'edit.php?post_type=showcase' ) ); ?>">add notable sites</a> in your language and screenshot and description of random three of them will show here.</span>
    113113                                </div>
    … …  
    135135                        <div id="blog" class="section">
    136136                                <div class="col-9">
    137                                         <h3><?php _e('Blog', 'rosetta'); ?></h3>
     137                                        <h3><?php esc_html_e( 'Blog', 'rosetta' ); ?></h3>
    138138<?php
    139139        query_posts( 'showposts=5' );
  • sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/functions.php

    r6044 r15179  
    4343                '<p>%s</p>',
    4444                /* translators: feel free to add links to places, where one can get support in your language. */
    45                 __( '<strong>Please, do not post support requests here!</strong> They will probably be ignored.', 'rosetta' )
     45                wp_kses_post( __( '<strong>Please, do not post support requests here!</strong> They will probably be ignored.', 'rosetta' ) )
    4646        );
    4747}
  • sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/inc/template-tags.php

    r1615 r15179  
    55function rosetta_entry_meta() {
    66        if ( is_sticky() && is_home() && ! is_paged() ) {
    7                 printf( '<span class="sticky-post">%s</span> ', __( 'Featured', 'rosetta' ) );
     7                printf( '<span class="sticky-post">%s</span> ', esc_html__( 'Featured', 'rosetta' ) );
    88        }
    99
    … …  
    2222        printf(
    2323                /* translators: 1: post date 2: post author */
    24                 __( 'Posted on %1$s by %2$s.', 'rosetta' ),
     24                esc_html__( 'Posted on %1$s by %2$s.', 'rosetta' ),
    2525                $time_string,
    2626                $author_string
    … …  
    3737                printf(
    3838                        /* translators: %s: list of categories */
    39                         __( 'Filed under %s.', 'rosetta' ),
     39                        esc_html__( 'Filed under %s.', 'rosetta' ),
    4040                        $categories_string
    4141                );
  • sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/index.php

    r2249 r15179  
    2424                                <?php endwhile;
    2525                        else: ?>
    26                                 <p><?php _e( 'Sorry, no posts matched your criteria.', 'rosetta' ); ?></p>
     26                                <p><?php esc_html_e( 'Sorry, no posts matched your criteria.', 'rosetta' ); ?></p>
    2727                        <?php endif; ?>
    2828
  • sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/sidebar-blog.php

    r1641 r15179  
    1 <h4><?php _e( 'Categories', 'rosetta' ); ?></h4>
     1<?php
     2/**
     3 * The sidebar shown on blog pages.
     4 *
     5 * @package Rosetta
     6 */
     7
     8?>
     9<h4><?php esc_html_e( 'Categories', 'rosetta' ); ?></h4>
    210<ul>
    311        <?php wp_list_categories( 'title_li=&show_count=1&orderby=count&order=DESC&number=10' ); ?>
    412</ul>
    513
    6 <h4><?php _e( 'Blog Archives', 'rosetta' ); ?></h4>
     14<h4><?php esc_html_e( 'Blog Archives', 'rosetta' ); ?></h4>
    715<ul>
    816        <?php wp_get_archives( 'type=monthly&limit=12' ); ?>
  • sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/sidebar-page.php

    r6044 r15179  
    55        ?>
    66        <p class="download-meta">
    7                 <a class="button download-button button-large button-large" href="<?php echo $latest_release['zip_url']; ?>" role="button">
     7                <a class="button download-button button-large button-large" href="<?php echo esc_url( $latest_release['zip_url'] ); ?>" role="button">
    88                        <strong><?php
    9                                 echo apply_filters( 'no_orphans',
    10                                         sprintf(
    11                                                 __( 'Download WordPress %s', 'rosetta' ),
    12                                                 $latest_release['version']
     9                                echo wp_kses_post(
     10                                        apply_filters(
     11                                                'no_orphans',
     12                                                sprintf(
     13                                                        /* translators: %s: WordPress version. */
     14                                                        esc_html__( 'Download WordPress %s', 'rosetta' ),
     15                                                        esc_html( $latest_release['version'] )
     16                                                )
    1317                                        )
    1418                                );
    1519                        ?></strong>
    1620                </a>
    17                 <span><?php printf( __( '.zip &mdash; %s MB', 'rosetta' ), $latest_release['zip_size_mb'] ); ?></span>
     21                <?php /* translators: %s: File size in megabytes. */ ?>
     22                <span><?php printf( esc_html__( '.zip &mdash; %s MB', 'rosetta' ), esc_html( $latest_release['zip_size_mb'] ) ); ?></span>
    1823        </p>
    1924
    2025        <p class="download-tar">
    21                 <a href="<?php echo $latest_release['targz_url']; ?>"><?php printf(
    22                         __( 'Download .tar.gz &mdash; %s MB', 'rosetta' ),
    23                         $latest_release['tar_size_mb'] );
    24                 ?></a>
     26                <?php /* translators: %s: File size in megabytes. */ ?>
     27                <a href="<?php echo esc_url( $latest_release['targz_url'] ); ?>"><?php printf( esc_html__( 'Download .tar.gz &mdash; %s MB', 'rosetta' ), esc_html( $latest_release['tar_size_mb'] ) ); ?></a>
    2528        </p>
    2629        <?php
    … …  
    2831?>
    2932
    30 <h3><?php _e( 'Resources', 'rosetta' ); ?></h3>
     33<h3><?php esc_html_e( 'Resources', 'rosetta' ); ?></h3>
    3134
    32 <p><?php _e( 'For help with installing or using WordPress, consult our documentation in your language.', 'rosetta' ); ?></p>
     35<p><?php esc_html_e( 'For help with installing or using WordPress, consult our documentation in your language.', 'rosetta' ); ?></p>
    3336
    3437<?php
  • sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/single.php

    r2249 r15179  
    3535                                endwhile;
    3636                        else: ?>
    37                                 <p><?php _e( 'Sorry, no posts matched your criteria.', 'rosetta' ); ?></p>
     37                                <p><?php esc_html_e( 'Sorry, no posts matched your criteria.', 'rosetta' ); ?></p>
    3838                        <?php endif; ?>
    3939
  • sites/trunk/jobs.wordpress.net/public_html/wp-content/plugins/jobswp/jobswp-captcha.php

    r14952 r15179  
    191191        public static function add_notice( $type ) {
    192192                if ( 'verify' == $type ) {
    193                         echo ' <strong><em>' . __( 'Note that you must also fill out the captcha field.', 'jobswp' ) . '</em></strong>';
     193                        echo ' <strong><em>' . esc_html__( 'Note that you must also fill out the captcha field.', 'jobswp' ) . '</em></strong>';
    194194                }
    195195        }
  • sites/trunk/jobs.wordpress.net/public_html/wp-content/plugins/jobswp/jobswp-moderation.php

    r15157 r15179  
    104104                        echo '</table>';
    105105                } else {
    106                         echo __( 'No similar jobs found.', 'jobswp' );
     106                        echo esc_html__( 'No similar jobs found.', 'jobswp' );
    107107                }
    108108        }
  • sites/trunk/jobs.wordpress.net/public_html/wp-content/plugins/jobswp/jobswp-template.php

    r15157 r15179  
    174174 * Returns the appropriate field value markup for use in appropriate form field.
    175175 *
     176 * Returns a complete attribute pair (`value='…'`), or selected() output for the
     177 * select fields, meant to be echoed between attributes inside a tag rather than
     178 * inside an attribute's quotes. The value is run through esc_attr(). Returns
     179 * nothing when there is no submitted value. The job description is not handled
     180 * here because it carries HTML; see jobswp_field_description_value().
     181 *
    176182 * @param string $field Field name/key
    177183 * @param string $option_value Related value, if appropriate. (e.g. the other
    … …  
    182188        $val = '';
    183189
    184         if ( $_POST && isset( $_POST[ $field ] ) && ! empty( $_POST[ $field ] ) ) {
    185                 // Allow certain HTML in job_description field
    186                 if ( 'job_description' == $field )
    187                         $val = stripslashes( wp_filter_kses( trim( $_POST[ $field ] ) ) );
    188                 else
    189                         $val = esc_attr( trim( strip_tags( stripslashes( $_POST[ $field ] ) ) ) );
     190        if ( $_POST && isset( $_POST[ $field ] ) && ! empty( $_POST[ $field ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Display-only form redisplay.
     191                // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.ValidatedSanitizedInput -- Slashes are stripped and the value is escaped on the same line.
     192                $val = esc_attr( trim( strip_tags( stripslashes( $_POST[ $field ] ) ) ) );
    190193        }
    191194
    … …  
    194197                if ( in_array( $field, array( 'category', 'howtoapply_method', 'jobtype' ) ) )
    195198                        return selected( $val, $option_value, false );
    196                 elseif ( 'job_description' == $field )
    197                         return $val;
    198199                else
    199200                        return "value='$val'";
    200201        }
     202}
     203
     204/**
     205 * Returns the submitted job description, with its allowed HTML preserved.
     206 *
     207 * The return value is kses-filtered HTML meant for an element body. It carries
     208 * unescaped quotes, so unlike jobswp_field_value() it must never be printed
     209 * into an attribute.
     210 *
     211 * @return string
     212 */
     213function jobswp_field_description_value() {
     214        $field = 'job_description';
     215
     216        if ( $_POST && isset( $_POST[ $field ] ) && ! empty( $_POST[ $field ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Display-only form redisplay.
     217                // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.ValidatedSanitizedInput -- wp_filter_kses() unslashes and kses-filters the value, then re-slashes it; the outer stripslashes() undoes that.
     218                return stripslashes( wp_filter_kses( trim( $_POST[ $field ] ) ) );
     219        }
     220
     221        return '';
    201222}
    202223
  • sites/trunk/jobs.wordpress.net/public_html/wp-content/plugins/jobswp/jobswp.php

    r15157 r15179  
    165165         */
    166166        public function wp_kses_allowed_html( $allowedtags, $content ) {
     167                // Interface text needs links that are not permitted in job descriptions.
     168                if ( 'jobswp-ui' === $content ) {
     169                        return array(
     170                                'a'      => array(
     171                                        'href'  => true,
     172                                        'rel'   => true,
     173                                        'title' => true,
     174                                ),
     175                                'em'     => array(),
     176                                'strong' => array(),
     177                        );
     178                }
     179
    167180                // Add permissable tags
    168181                $allowedtags['ol'] = array();
    … …  
    484497                $post_id = isset( $_GET['post'] ) ? absint( $_GET['post'] ) : null;
    485498
    486                 if ( ! $post_id )
    487                         wp_die( __( 'No job specified to close.', 'jobswp' ) );
     499                if ( ! $post_id ) {
     500                        wp_die( esc_html__( 'No job specified to close.', 'jobswp' ) );
     501                }
    488502
    489503                check_admin_referer( 'close-job-post_' . $post_id );
    … …  
    491505                $post = get_post( $post_id );
    492506
    493                 if ( ! $post )
    494                         wp_die( __( 'The job you are trying to close no longer exists.', 'jobswp' ) );
     507                if ( ! $post ) {
     508                        wp_die( esc_html__( 'The job you are trying to close no longer exists.', 'jobswp' ) );
     509                }
    495510
    496511                $post_type = $post->post_type;
    497512                $post_type_object = get_post_type_object( $post_type );
    498513
    499                 if ( ! $post_type_object )
    500                         wp_die( __( 'Unknown post type.' ) );
    501 
    502                 if ( ! current_user_can( 'delete_post', $post_id ) )
    503                         wp_die( __( 'You are not allowed to close this job.', 'jobswp' ) );
     514                if ( ! $post_type_object ) {
     515                        wp_die( esc_html__( 'Unknown post type.' ) );
     516                }
     517
     518                if ( ! current_user_can( 'delete_post', $post_id ) ) {
     519                        wp_die( esc_html__( 'You are not allowed to close this job.', 'jobswp' ) );
     520                }
    504521
    505522                if ( $user_id = wp_check_post_lock( $post_id ) ) {
    … …  
    509526                }
    510527
    511                 if ( ! $this->close_job( $post ) )
    512                         wp_die( __( 'Error in closing job.', 'jobswp' ) );
     528                if ( ! $this->close_job( $post ) ) {
     529                        wp_die( esc_html__( 'Error in closing job.', 'jobswp' ) );
     530                }
    513531
    514532                // Redirect back to jobs listing
    … …  
    545563
    546564                echo '<div class="updated"><p>';
    547                 _e( 'Job closed.', 'jobswp' );
     565                esc_html_e( 'Job closed.', 'jobswp' );
    548566                echo '</p></div>';
    549567        }
  • sites/trunk/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-list.php

    r15170 r15179  
    2828                echo "<div class='no-job'>";
    2929                echo sprintf(
    30                         __( 'There are no jobs in this category. If you\'re hiring, you can <a href="%s">post a new job</a>.', 'jobswp' ),
     30                        /* translators: %s: Post a job URL. */
     31                        wp_kses( __( 'There are no jobs in this category. If you&#8217;re hiring, you can <a href="%s">post a new job</a>.', 'jobswp' ), 'jobswp-ui' ),
    3132                        '/post-a-job'
    3233                );
    … …  
    5051                        $link .= '>';
    5152                        $link .= 'Show all '.apply_filters( 'list_terms', $category->name, $category ) . ' jobs &raquo;</a>';           
    52                         echo wp_kses_post( $link );
     53                        echo wp_kses( $link, 'jobswp-ui' );
    5354                        echo '</p>';
    5455                } else {
  • sites/trunk/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-post-job-success.php

    r9478 r15179  
     1<?php
     2/**
     3 * Confirmation shown after a job has been submitted.
     4 *
     5 * @package jobswp
     6 */
     7
     8?>
    19<div class="notice notice-success">
    2         <h2><?php _e( 'Thank you for submitting your job posting!', 'jobswp' ); ?></h2>
     10        <h2><?php esc_html_e( 'Thank you for submitting your job posting!', 'jobswp' ); ?></h2>
    311
    4         <p><?php printf( __( 'Your job posting will be reviewed in the next 24-48 hours to ensure it meets the criteria listed in our <a href="%s">FAQ</a>. After approval, your posting will stay on the job board for a total of 21 days.',
    5         'jobswp' ),
    6         '/faq/' ); ?></p>
     12        <p>
     13                <?php
     14                printf(
     15                        /* translators: %s: FAQ URL. */
     16                        wp_kses( __( 'Your job posting will be reviewed in the next 24-48 hours to ensure it meets the criteria listed in our <a href="%s">FAQ</a>. After approval, your posting will stay on the job board for a total of 21 days.', 'jobswp' ), 'jobswp-ui' ),
     17                        '/faq/'
     18                );
     19                ?>
     20        </p>
    721
    8         <p><?php printf( __( '<strong>Important!</strong> Take note of the following job token. It is your only means of removing the job from the site in a <em>timely</em> fashion prior to its automatic expiration. (Otherwise, you would have to make a request via the feedback form which could take 24-48 hours or longer to honor). The token is used on the <a href="%s">job removal page</a>.', 'jobswp' ),
     22        <p>
     23        <?php
     24        printf(
     25                /* translators: %s: Remove a job URL. */
     26                wp_kses( __( '<strong>Important!</strong> Take note of the following job token. It is your only means of removing the job from the site in a <em>timely</em> fashion prior to its automatic expiration. (Otherwise, you would have to make a request via the feedback form which could take 24-48 hours or longer to honor). The token is used on the <a href="%s">job removal page</a>.', 'jobswp' ), 'jobswp-ui' ),
    927                '/remove-a-job/'
    1028        ); ?></p>
    1129
    12         <p class="job-token"><?php printf( __( 'Your job token is: %s', 'jobswp' ), esc_html( $_POST['job_token'] ) ); ?></p>
     30        <p class="job-token">
     31                <?php
     32                /* translators: %s: Job token. */
     33                printf( esc_html__( 'Your job token is: %s', 'jobswp' ), esc_html( wp_unslash( $_POST['job_token'] ?? '' ) ) ); // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Display-only form redisplay; the value is escaped with esc_html() at output.
     34                ?>
     35        </p>
    1336
    14         <p><?php printf( __( 'If you would like to modify your posting, or you are having problems removing the job using the job token, please contact us using our <a href="%s">feedback form</a>. Be sure to specify the email address you supplied in your job posting.',
    15         'jobswp' ),
    16         '/feedback/' ); ?></p>
     37        <p>
     38                <?php
     39                printf(
     40                        /* translators: %s: Feedback form URL. */
     41                        wp_kses( __( 'If you would like to modify your posting, or you are having problems removing the job using the job token, please contact us using our <a href="%s">feedback form</a>. Be sure to specify the email address you supplied in your job posting.', 'jobswp' ), 'jobswp-ui' ),
     42                        '/feedback/'
     43                );
     44                ?>
     45        </p>
    1746
    18         <p><?php _e( "Below you'll find a preview of your job posting.", 'jobswp' ); ?></p>
     47        <p><?php esc_html_e( 'Below you&#8217;ll find a preview of your job posting.', 'jobswp' ); ?></p>
    1948</div>
  • sites/trunk/jobs.wordpress.net/public_html/wp-content/themes/jobswp/content-post-job.php

    r15170 r15179  
    1 <div class="items-required">* <?php _e( 'Items are required.', 'jobswp' ); ?></div>
     1<?php
     2/**
     3 * The form for posting a job.
     4 *
     5 * @package jobswp
     6 */
     7
     8?>
     9<div class="items-required">* <?php esc_html_e( 'Items are required.', 'jobswp' ); ?></div>
    210
    311<?php if ( isset( $_POST['errors'] ) ) : ?>
    412
    513        <div class="notice notice-error">
    6                 <?php if ( is_string( $_POST['errors'] ) )
    7                         echo sprintf( __( '<strong>ERROR:</strong> %s', 'jobswp' ), esc_html( $_POST['errors'] ) );
    8                 else
    9                         _e( '<strong>ERROR:</strong> One or more required fields are missing a value.', 'jobswp' );
     14                <?php
     15                if ( is_string( $_POST['errors'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Display-only form redisplay; the value is only type-checked here and escaped at output.
     16                        /* translators: %s: Error message. */
     17                        printf( wp_kses_post( __( '<strong>ERROR:</strong> %s', 'jobswp' ) ), esc_html( wp_unslash( $_POST['errors'] ) ) ); // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Display-only form redisplay; the value is escaped with esc_html() at output.
     18                } else {
     19                        echo wp_kses_post( __( '<strong>ERROR:</strong> One or more required fields are missing a value.', 'jobswp' ) );
     20                }
    1021                ?>
    1122                <?php do_action( 'jobswp_notice', 'error' ); ?>
    … …  
    1627        <div class="notice notice-info">
    1728                <div>
    18                 <?php _e( 'Please review the data you submitted for accuracy. Make any necessary corrections, then re-submit this form.', 'jobswp' ); ?>
     29                <?php esc_html_e( 'Please review the data you submitted for accuracy. Make any necessary corrections, then re-submit this form.', 'jobswp' ); ?>
    1930                <?php do_action( 'jobswp_notice', 'verify' ); ?>
    2031                </div>
    … …  
    2637
    2738<div class="post-job-contact-info">
    28         <h3 class="post-field-section-header"><?php _e( 'Job Poster Contact Information', 'jobswp' ); ?></h3>
    29         <div class="post-field-section-subheader"><?php _e( '(this information is not publicly displayed)', 'jobswp' ); ?></div>
     39        <h3 class="post-field-section-header"><?php esc_html_e( 'Job Poster Contact Information', 'jobswp' ); ?></h3>
     40        <div class="post-field-section-subheader"><?php esc_html_e( '(this information is not publicly displayed)', 'jobswp' ); ?></div>
    3041
    3142        <?php jobswp_text_field( 'first_name', __( 'First Name', 'jobswp' ), true ); ?>
    … …  
    3849<div class="post-job-company-info">
    3950
    40         <h3 class="post-field-section-header"><?php _e( 'Company Information', 'jobswp' ); ?></h3>
    41         <div class="post-field-section-subheader"><?php _e( '(publicly displayed)', 'jobswp' ); ?></div>
     51        <h3 class="post-field-section-header"><?php esc_html_e( 'Company Information', 'jobswp' ); ?></h3>
     52        <div class="post-field-section-subheader"><?php esc_html_e( '(publicly displayed)', 'jobswp' ); ?></div>
    4253
    4354        <?php jobswp_text_field( 'company', __( 'Company Name', 'jobswp' ), true ); ?>
    … …  
    4657
    4758        <div class="post-job-input">
    48                 <label for="howtoapply"><?php _e( 'How to Apply', 'jobswp' ); ?>* <span><?php _e( '(also specify)', 'jobswp' ); ?></span></label>
     59                <label for="howtoapply"><?php esc_html_e( 'How to Apply', 'jobswp' ); ?>* <span><?php esc_html_e( '(also specify)', 'jobswp' ); ?></span></label>
    4960                <div class="howtoapply-inputs">
    5061                        <select name="howtoapply_method" id="howtoapply_method" class="<?php echo esc_attr( jobswp_required_field_classes( 'howtoapply_method' ) ); ?>" required>
    5162                                <option value="" selected="selected" disabled="disabled"></option>
    52                                 <option value="email" <?php echo jobswp_field_value( 'howtoapply_method', 'email' ); ?>><?php _e( 'Email Address', 'jobswp' ); ?></option>
    53                                 <option value="phone" <?php echo jobswp_field_value( 'howtoapply_method', 'phone' ); ?>><?php _e( 'Phone Number', 'jobswp' ); ?></option>
    54                                 <option value="web" <?php echo jobswp_field_value( 'howtoapply_method', 'web' ); ?>><?php _e( 'Online Form', 'jobswp' ); ?></option>
     63                                <option value="email" <?php echo jobswp_field_value( 'howtoapply_method', 'email' ); ?>><?php esc_html_e( 'Email Address', 'jobswp' ); ?></option>
     64                                <option value="phone" <?php echo jobswp_field_value( 'howtoapply_method', 'phone' ); ?>><?php esc_html_e( 'Phone Number', 'jobswp' ); ?></option>
     65                                <option value="web" <?php echo jobswp_field_value( 'howtoapply_method', 'web' ); ?>><?php esc_html_e( 'Online Form', 'jobswp' ); ?></option>
    5566                        </select> :
    5667                        <input type="text" name="howtoapply" id="howtoapply" class="<?php echo esc_attr( jobswp_required_field_classes( 'howtoapply' ) ); ?>" <?php echo jobswp_field_value( 'howtoapply' ); ?> />
    … …  
    5869
    5970                <div class="job-help-text">
    60                         <?php _e( 'If choosing "Email Address", use an email address you are comfortable exposing to any visitor of the site. It need not match the private email address asked for in the Contact Information section.', 'jobswp' ); ?>
     71                        <?php esc_html_e( 'If choosing "Email Address", use an email address you are comfortable exposing to any visitor of the site. It need not match the private email address asked for in the Contact Information section.', 'jobswp' ); ?>
    6172                </div>
    6273        </div>
    … …  
    6778
    6879<div class="post-job-job-info">
    69         <h3 class="post-field-section-header"><?php _e( 'Job Details', 'jobswp' ); ?></h3>
     80        <h3 class="post-field-section-header"><?php esc_html_e( 'Job Details', 'jobswp' ); ?></h3>
    7081
    7182        <div class="post-job-half">
    … …  
    8091
    8192                <div class="post-job-input">
    82                         <label for="category"><?php _e( 'Category', 'jobswp' ); ?>*</label>
    83                         <select name="category" id="category" class="<?php echo jobswp_required_field_classes( 'category' ); ?>" required>
     93                        <label for="category"><?php esc_html_e( 'Category', 'jobswp' ); ?>*</label>
     94                        <select name="category" id="category" class="<?php echo esc_attr( jobswp_required_field_classes( 'category' ) ); ?>" required>
    8495                                <option value="" selected="selected" disabled="disabled"></option>
    8596                                <?php foreach ( Jobs_Dot_WP::get_job_categories() as $cat ) : ?>
    86                                         <?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- jobswp_field_value() returns selected() markup. ?>
    8797                                        <option value="<?php echo esc_attr( $cat->slug ); ?>" <?php echo jobswp_field_value( 'category', esc_attr( $cat->slug ) ); ?>><?php echo esc_html( $cat->name ); ?></option>
    8898                                <?php endforeach; ?>
    … …  
    91101
    92102                <div class="post-job-input">
    93                         <label for="jobtype"><?php _e( 'Job Type', 'jobswp' ); ?>*</label>
     103                        <label for="jobtype"><?php esc_html_e( 'Job Type', 'jobswp' ); ?>*</label>
    94104                        <select name="jobtype" id="jobtype" class="<?php echo esc_attr( jobswp_required_field_classes( 'jobtype' ) ); ?>" required>
    95105                                <option value="" selected="selected" disabled="disabled"></option>
    96                                 <option value="ft" <?php echo jobswp_field_value( 'jobtype', 'ft' ); ?>><?php _e( 'Full Time', 'jobswp' ); ?></option>
    97                                 <option value="pt" <?php echo jobswp_field_value( 'jobtype', 'pt' ); ?>><?php _e( 'Part Time', 'jobswp' ); ?></option>
    98                                 <option value="ppt" <?php echo jobswp_field_value( 'jobtype', 'ppt' ); ?>><?php _e( 'Project', 'jobswp' ); ?></option>
     106                                <option value="ft" <?php echo jobswp_field_value( 'jobtype', 'ft' ); ?>><?php esc_html_e( 'Full Time', 'jobswp' ); ?></option>
     107                                <option value="pt" <?php echo jobswp_field_value( 'jobtype', 'pt' ); ?>><?php esc_html_e( 'Part Time', 'jobswp' ); ?></option>
     108                                <option value="ppt" <?php echo jobswp_field_value( 'jobtype', 'ppt' ); ?>><?php esc_html_e( 'Project', 'jobswp' ); ?></option>
    99109                        </select>
    100110                </div>
    … …  
    106116
    107117                <div class="post-job-input">
    108                         <label for="job_description"><?php _e( 'Job Description', 'jobswp' ); ?>*</label>
    109                         <textarea name="job_description" id="job_description" rows="10" class="<?php echo jobswp_required_field_classes( 'job_description' ); ?>"><?php echo jobswp_field_value( 'job_description' ); ?></textarea>
    110                         <p><?php echo sprintf( __( 'Line and paragraph breaks are automatic. <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <code>%s</code>', 'jobswp' ), jobswp_allowed_tags() ); ?></p>
    111                         <p><?php _e( 'All job postings are moderated prior to appearing on the site.', 'jobswp' ); ?></p>
     118                        <label for="job_description"><?php esc_html_e( 'Job Description', 'jobswp' ); ?>*</label>
     119                        <textarea name="job_description" id="job_description" rows="10" class="<?php echo esc_attr( jobswp_required_field_classes( 'job_description' ) ); ?>"><?php echo jobswp_field_description_value(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Filtered with wp_filter_kses() for this textarea body. ?></textarea>
     120                        <?php /* translators: %s: List of allowed HTML tags. */ ?>
     121                        <p><?php printf( wp_kses_post( __( 'Line and paragraph breaks are automatic. <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <code>%s</code>', 'jobswp' ) ), esc_html( jobswp_allowed_tags() ) ); ?></p>
     122                        <p><?php esc_html_e( 'All job postings are moderated prior to appearing on the site.', 'jobswp' ); ?></p>
    112123
    113                         <p><?php _e( 'Please review your job posting for accuracy. Once submitted, you will not be able to make any changes unless you do so by submitting a contact form request which can take 24 hours or longer to fulfill.', 'jobswp' ); ?></p>
     124                        <p><?php esc_html_e( 'Please review your job posting for accuracy. Once submitted, you will not be able to make any changes unless you do so by submitting a contact form request which can take 24 hours or longer to fulfill.', 'jobswp' ); ?></p>
    114125                </div>
    115126
    … …  
    128139                <input type="hidden" name="verify" value="1" />
    129140                <div class="notice notice-info accept">
    130                         <p><?php _e( 'By submitting a job to this site you acknowledge the following:', 'jobswp' ); ?></p>
     141                        <p><?php esc_html_e( 'By submitting a job to this site you acknowledge the following:', 'jobswp' ); ?></p>
    131142                        <ul>
    132143                                <li>
    133144                                        <?php
    134145                                        /* translators: %s: URL of the FAQ page. */
    135                                         printf( wp_kses_post( __( 'You have read the <a href="%s">FAQ</a> and understand everything listed, especially pertaining to what is unacceptable for a job posting.', 'jobswp' ) ), esc_url( home_url( '/faq/' ) ) );
     146                                        printf( wp_kses( __( 'You have read the <a href="%s">FAQ</a> and understand everything listed, especially pertaining to what is unacceptable for a job posting.', 'jobswp' ), 'jobswp-ui' ), esc_url( home_url( '/faq/' ) ) );
    136147                                        ?>
    137148                                </li>
    138                                 <li><?php _e( 'If you provided a contact email address as your method of contact for job seekers, that email address will be made publicly available and you will likely receive a lot of email.', 'jobswp' );?></li>
    139                                 <li><?php _e( 'Upon successful submission, you will not be able to make any edits. Proofread everything again to make sure it&#8217;s what you want.', 'jobswp' ); ?></li>
    140                                 <li><?php _e( 'It rests on you to vet applicants in whatever manner you see fit. We make absolutely no claims or guarantees as to the identity, capabilities, or reliability of applicants. <strong>Hire at your own risk.</strong>', 'jobswp' ); ?></li>
    141                                 <li><?php _e( 'Upon successful submission, you will be immediately presented with a job token. <strong>MAKE NOTE OF THE TOKEN</strong>. It is your only means of removing the job from the site in a <em>timely</em> fashion.', 'jobswp' ); ?></li>
     149                                <li><?php esc_html_e( 'If you provided a contact email address as your method of contact for job seekers, that email address will be made publicly available and you will likely receive a lot of email.', 'jobswp' ); ?></li>
     150                                <li><?php esc_html_e( 'Upon successful submission, you will not be able to make any edits. Proofread everything again to make sure it&#8217;s what you want.', 'jobswp' ); ?></li>
     151                                <li><?php echo wp_kses_post( __( 'It rests on you to vet applicants in whatever manner you see fit. We make absolutely no claims or guarantees as to the identity, capabilities, or reliability of applicants. <strong>Hire at your own risk.</strong>', 'jobswp' ) ); ?></li>
     152                                <li><?php echo wp_kses_post( __( 'Upon successful submission, you will be immediately presented with a job token. <strong>MAKE NOTE OF THE TOKEN</strong>. It is your only means of removing the job from the site in a <em>timely</em> fashion.', 'jobswp' ) ); ?></li>
    142153                        </ul>
    143154                        <p>
    144                                 <input type="checkbox" name="accept" id="accept" value="1" required /><label for="accept"><?php _e( 'I agree to the terms stated above.', 'jobswp' ); ?>*</label>
     155                                <input type="checkbox" name="accept" id="accept" value="1" required /><label for="accept"><?php esc_html_e( 'I agree to the terms stated above.', 'jobswp' ); ?>*</label>
    145156                        </p>
    146157                </div>
  • sites/trunk/jobs.wordpress.net/public_html/wp-content/themes/jobswp/inc/template-tags.php

    r14812 r15179  
    3232        ?>
    3333        <nav role="navigation" id="<?php echo esc_attr( $nav_id ); ?>" class="<?php echo $nav_class; ?>">
    34                 <h1 class="screen-reader-text"><?php _e( 'Post navigation', 'jobswp' ); ?></h1>
     34                <h1 class="screen-reader-text"><?php esc_html_e( 'Post navigation', 'jobswp' ); ?></h1>
    3535
    3636        <?php if ( is_single() ) : // navigation links for single posts ?>
    … …  
    6969        <li id="comment-<?php comment_ID(); ?>" <?php comment_class(); ?>>
    7070                <div class="comment-body">
    71                         <?php _e( 'Pingback:', 'jobswp' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( 'Edit', 'jobswp' ), '<span class="edit-link">', '</span>' ); ?>
     71                                        <?php esc_html_e( 'Pingback:', 'jobswp' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( 'Edit', 'jobswp' ), '<span class="edit-link">', '</span>' ); ?>
    7272                </div>
    7373
    … …  
    7979                                <div class="comment-author vcard">
    8080                                        <?php if ( 0 != $args['avatar_size'] ) echo get_avatar( $comment, $args['avatar_size'] ); ?>
    81                                         <?php printf( __( '%s <span class="says">says:</span>', 'jobswp' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>
     81                                        <?php /* translators: %s: Comment author link. */ ?>
     82                                        <?php printf( wp_kses_post( __( '%s <span class="says">says:</span>', 'jobswp' ) ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>
    8283                                </div><!-- .comment-author -->
    8384
    … …  
    8586                                        <a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
    8687                                                <time datetime="<?php comment_time( 'c' ); ?>">
    87                                                         <?php printf( _x( '%1$s at %2$s', '1: date, 2: time', 'jobswp' ), get_comment_date(), get_comment_time() ); ?>
     88                                                        <?php /* translators: 1: Comment date, 2: Comment time. */ ?>
     89                                                        <?php printf( esc_html_x( '%1$s at %2$s', '1: date, 2: time', 'jobswp' ), esc_html( get_comment_date() ), esc_html( get_comment_time() ) ); ?>
    8890                                                </time>
    8991                                        </a>
    … …  
    9294
    9395                                <?php if ( '0' == $comment->comment_approved ) : ?>
    94                                 <p class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'jobswp' ); ?></p>
     96                                <p class="comment-awaiting-moderation"><?php esc_html_e( 'Your comment is awaiting moderation.', 'jobswp' ); ?></p>
    9597                                <?php endif; ?>
    9698                        </footer><!-- .comment-meta -->
  • sites/trunk/jobs.wordpress.net/public_html/wp-content/themes/jobswp/no-results.php

    r8232 r15179  
    1111<section class="no-results not-found">
    1212        <header class="page-header">
    13                 <h1 class="page-title"><?php _e( 'Nothing Found', 'jobswp' ); ?></h1>
     13                <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'jobswp' ); ?></h1>
    1414        </header><!-- .page-header -->
    1515
    … …  
    1717                <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
    1818
    19                         <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'jobswp' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
     19                        <?php /* translators: %1$s: New post URL. */ ?>
     20                        <p><?php printf( wp_kses( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'jobswp' ), 'jobswp-ui' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
    2021
    2122                <?php elseif ( is_search() ) : ?>
    2223
    23                         <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'jobswp' ); ?></p>
     24                        <p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'jobswp' ); ?></p>
    2425                        <?php get_search_form(); ?>
    2526
    2627                <?php else : ?>
    2728
    28                         <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'jobswp' ); ?></p>
     29                        <p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'jobswp' ); ?></p>
    2930                        <?php get_search_form(); ?>
    3031
  • sites/trunk/jobs.wordpress.net/public_html/wp-content/themes/jobswp/page-remove-a-job.php

    r14757 r15179  
    2525                                <div class="notice notice-error">
    2626                                        <?php if ( is_string( $_POST['errors'] ) ) {
    27                                                 echo sprintf( __( '<strong>ERROR:</strong> %s', 'jobswp' ), esc_html( $_POST['errors'] ) );
     27                                                /* translators: %s: Error message. */
     28                                                printf( wp_kses_post( __( '<strong>ERROR:</strong> %s', 'jobswp' ) ), esc_html( wp_unslash( $_POST['errors'] ) ) ); // phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Display-only form redisplay; the value is escaped with esc_html() at output.
    2829                                        } else {
    29                                                 _e( '<strong>ERROR:</strong> One or more required fields are missing a value.', 'jobswp' );
     30                                                echo wp_kses_post( __( '<strong>ERROR:</strong> One or more required fields are missing a value.', 'jobswp' ) );
    3031                                        } ?>
    3132                                        <?php do_action( 'jobswp_notice', 'error' ); ?>
    … …  
    3536                        <div class="entry-content">
    3637                                <div class="notice notice-success">
    37                                         <strong><?php _e( 'Your job posting has been successfully removed.', 'jobswp' ); ?></strong>
     38                                        <strong><?php esc_html_e( 'Your job posting has been successfully removed.', 'jobswp' ); ?></strong>
    3839                                </div>
    3940                        </div>
  • sites/trunk/jobs.wordpress.net/public_html/wp-content/themes/jobswp/searchform.php

    r14757 r15179  
    88<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
    99        <label>
    10                 <span class="screen-reader-text"><?php _ex( 'Search for:', 'label', 'jobswp' ); ?></span>
     10                <span class="screen-reader-text"><?php echo esc_html_x( 'Search for:', 'label', 'jobswp' ); ?></span>
    1111                <input type="search" class="search-field" placeholder="<?php echo esc_attr_x( 'What kind of job are you looking for?', 'placeholder', 'jobswp' ); ?>" value="<?php echo esc_attr( get_search_query() ); ?>" name="s" title="<?php echo esc_attr_x( 'Find Jobs:', 'label', 'jobswp' ); ?>">
    1212        </label>
  • sites/trunk/jobs.wordpress.net/public_html/wp-content/themes/jobswp/sidebar.php

    r14842 r15179  
    1010
    1111                        <aside id="cats" class="widget">
    12                                 <h3 class="widget-title"><?php _e( 'Position Types', 'jobswp' ); ?></h3>
     12                                <h3 class="widget-title"><?php esc_html_e( 'Position Types', 'jobswp' ); ?></h3>
    1313                                <a href="#" class="menu-jobs-toggle"></a>
    1414                                <ul class="menu-jobs">
    15                                         <li class="job-cat-item job-cat-item-all"><a href="/" title="<?php esc_attr_e( 'View all job openings', 'jobswp' ); ?>"><?php _e( 'All Openings', 'jobswp' ) ?></a></li>
     15                                        <li class="job-cat-item job-cat-item-all"><a href="/" title="<?php esc_attr_e( 'View all job openings', 'jobswp' ); ?>"><?php esc_html_e( 'All Openings', 'jobswp' ); ?></a></li>
    1616                                <?php Jobs_Dot_WP::list_job_categories(); ?>
    1717                                </ul>
  • sites/trunk/phpcs.xml.dist

    r15171 r15179  
    148148                                <!-- Returns esc_url( $url ); see themes/pub/wporg-login/functions.php. -->
    149149                                <element value="wporg_login_wordpress_url"/>
     150                                <!-- Returns selected() markup or an esc_attr()'d value attribute; see jobs.wordpress.net plugins/jobswp/jobswp-template.php. -->
     151                                <element value="jobswp_field_value"/>
    150152                        </property>
    151153                </properties>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/admin-notices.php

    r12929 r15179  
    8787                        printf(
    8888                                /* translators: 1: example landing page title that includes post type name, 2: comma-separated list of acceptable post slugs */
    89                                 __( '<strong>Welcome to your new handbook!</strong> It is recommended that the first post you create is the landing page for the handbook. You can title it anything you like (suggestions: <code>%1$s</code> or <code>Welcome</code>). However, you must ensure that it has one of the following slugs: %2$s. The slug will ultimately be omitted from the page&#8216;s permalink URL, but will still appear in the permalinks for sub-pages.', 'wporg' ),
     89                                wp_kses_post( __( '<strong>Welcome to your new handbook!</strong> It is recommended that the first post you create is the landing page for the handbook. You can title it anything you like (suggestions: <code>%1$s</code> or <code>Welcome</code>). However, you must ensure that it has one of the following slugs: %2$s. The slug will ultimately be omitted from the page&#8216;s permalink URL, but will still appear in the permalinks for sub-pages.', 'wporg' ) ),
    9090                                WPorg_Handbook::get_name( $current_screen->post_type ),
    9191                                implode( ', ', $suggested_slugs )
    … …  
    127127                printf(
    128128                        /* translators: 1: example landing page title that includes post type name, 2: comma-separated list of acceptable post slugs */
    129                         __( '<strong>Warning:</strong> A landing page for this handbook has not been created or is not published. You can title it anything you like (suggestions: <code>%1$s</code> or <code>Welcome</code>). However, you must ensure that it has one of the following slugs: %2$s. The slug will ultimately be omitted from the page&#8216;s permalink URL, but will still appear in the permalinks for its sub-pages. Without this page your handbook&#8216;s URL will show a seemingly random handbook page.', 'wporg' ),
     129                        wp_kses_post( __( '<strong>Warning:</strong> A landing page for this handbook has not been created or is not published. You can title it anything you like (suggestions: <code>%1$s</code> or <code>Welcome</code>). However, you must ensure that it has one of the following slugs: %2$s. The slug will ultimately be omitted from the page&#8216;s permalink URL, but will still appear in the permalinks for its sub-pages. Without this page your handbook&#8216;s URL will show a seemingly random handbook page.', 'wporg' ) ),
    130130                        WPorg_Handbook::get_name( $handbook_post_type ),
    131131                        implode( ', ', $suggested_slugs )
    … …  
    173173                        printf(
    174174                                /* translators: 1: URL to remote manifest. 2: cron interval. */
    175                                 __( '<strong>This is an imported handbook!</strong> This handbook is imported according to a <a href="%1$s">remote manifest</a>. Any local changes will be overwritten during the next import, so make any changes at the remote location. Import interval: <strong>%2$s</strong>.', 'wporg' ),
     175                                wp_kses_post( __( '<strong>This is an imported handbook!</strong> This handbook is imported according to a <a href="%1$s">remote manifest</a>. Any local changes will be overwritten during the next import, so make any changes at the remote location. Import interval: <strong>%2$s</strong>.', 'wporg' ) ),
    176176                                $handbook_config['manifest'],
    177177                                $interval_display
    … …  
    224224                        printf(
    225225                                /* translators: %s: cron interval. */
    226                                 __( '<strong>Misconfigured cron interval!</strong> This imported handbook has a misconfigured cron interval. The config defines an interval of <strong>%s</strong>, which has not been defined. The fallback import interval shown in a notice above includes the default cron interval currently in use.', 'wporg' ),
     226                                wp_kses_post( __( '<strong>Misconfigured cron interval!</strong> This imported handbook has a misconfigured cron interval. The config defines an interval of <strong>%s</strong>, which has not been defined. The fallback import interval shown in a notice above includes the default cron interval currently in use.', 'wporg' ) ),
    227227                                $interval_display
    228228                        );
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/handbook.php

    r15020 r15179  
    225225                } elseif ( is_admin() && ( $config['manifest'] ?: false ) ) {
    226226                        add_action( 'admin_notices', function () {
    227                                 echo '<div class="notice notice-error"><p>' . __( 'Error: The <strong>WPORG Markdown Importer</strong> plugin needs to be activated in order to allow importing of handbooks.', 'wporg' ) . '</p></div>';
     227                                echo '<div class="notice notice-error"><p>' . wp_kses_post( __( 'Error: The <strong>WPORG Markdown Importer</strong> plugin needs to be activated in order to allow importing of handbooks.', 'wporg' ) ) . '</p></div>';
    228228                        } );
    229229                }
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/navigation.php

    r15107 r15179  
    379379
    380380                <nav class="handbook-navigation" role="navigation">
    381                         <h1 class="screen-reader-text"><?php _e( 'Handbook navigation', 'wporg' ); ?></h1>
     381                        <h1 class="screen-reader-text"><?php esc_html_e( 'Handbook navigation', 'wporg' ); ?></h1>
    382382                        <div class="nav-links">
    383383
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/watchlist.php

    r15170 r15179  
    161161                        if ( $watchlist && in_array( get_current_user_id(), $watchlist ) ) {
    162162                                printf(
    163                                         __( '<a href="%s" title="%s">Unwatch</a>', 'wporg' ),
     163                                        '<a href="%s" title="%s">%s</a>',
    164164                                        esc_url( wp_nonce_url( admin_url( 'admin-post.php?action=wporg_watchlist&post_id=' . $post->ID ), 'unwatch-' . $post->ID ) ),
    165                                         esc_attr__( 'Stop getting notified about changes to this page', 'wporg' )
     165                                        esc_attr__( 'Stop getting notified about changes to this page', 'wporg' ),
     166                                        esc_html__( 'Unwatch', 'wporg' )
    166167                                );
    167168                        } else {
    168169                                printf(
    169                                         __( '<a href="%s" title="%s">Watch</a>', 'wporg' ),
     170                                        '<a href="%s" title="%s">%s</a>',
    170171                                        esc_url( wp_nonce_url( admin_url( 'admin-post.php?action=wporg_watchlist&watch=1&post_id=' . $post->ID ), 'watch-' . $post->ID ) ),
    171                                         esc_attr__( 'Get notified about changes to this page', 'wporg' )
     172                                        esc_attr__( 'Get notified about changes to this page', 'wporg' ),
     173                                        esc_html__( 'Watch', 'wporg' )
    172174                                );
    173175                        }
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/widgets.php

    r12079 r15179  
    5353                <p>
    5454                        <input class="widefat" id="<?php echo esc_attr( $this->get_field_id('show_home') ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'show_home' ) ); ?>" type="checkbox" value="1" <?php echo $checked ?> />
    55                         <label for="<?php echo esc_attr( $this->get_field_id( 'show_home' ) ); ?>"><?php _e( 'List the home page', 'wporg' ); ?></label>
     55                        <label for="<?php echo esc_attr( $this->get_field_id( 'show_home' ) ); ?>"><?php esc_html_e( 'List the home page', 'wporg' ); ?></label>
    5656                </p>
    5757                <?php
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/admin.php

    r15170 r15179  
    107107                        /* translators: %s: URL to settings page for enabling/disabling photo uploads. */
    108108                        sprintf(
    109                                 __( '<strong>Photo uploads are currently disabled for all users!</strong> Uncheck <a href="%s">the setting</a> to re-enable uploading.', 'wporg-photos' ),
     109                                /* translators: %s: Media settings URL. */
     110                                wp_kses_post( __( '<strong>Photo uploads are currently disabled for all users!</strong> Uncheck <a href="%s">the setting</a> to re-enable uploading.', 'wporg-photos' ) ),
    110111                                esc_url( admin_url( 'options-media.php' ) . '#' . Settings::KILLSWITCH_OPTION_NAME )
    111112                        )
    … …  
    188189                                echo '<div class="notice notice-error is-dismissible notice-missing-taxonomies"><p>';
    189190                                printf(
    190                                         __( '<strong>Error:</strong> Photo was not published because the following taxonomies are missing terms: %s', 'wporg-photos' ),
     191                                        /* translators: %s: Missing taxonomy names. */
     192                                        wp_kses_post( __( '<strong>Error:</strong> Photo was not published because the following taxonomies are missing terms: %s', 'wporg-photos' ) ),
    191193                                        '<strong>' . implode( '</strong>, <strong>', $missing_taxonomies ) . '</strong>'
    192194                                );
    … …  
    872874
    873875                if ( ! $shown_photos ) {
    874                         echo '<p>' . __( 'This contributor does not have any other submitted photos.', 'wporg-photos' ) . "</p>\n";
     876                        echo '<p>' . esc_html__( 'This contributor does not have any other submitted photos.', 'wporg-photos' ) . "</p>\n";
    875877                }
    876878
    … …  
    886888                                '<a href="%s">%s</a>',
    887889                                esc_url( $link ),
    888                                 __( "View all photos from this contributor &rarr;", 'wporg-photos' )
     890                                esc_html__( 'View all photos from this contributor &rarr;', 'wporg-photos' )
    889891                        );
    890892                        echo '</div>' . "\n";
    … …  
    12071209                                                /* translators: %s: Linked number of photos submitted by user. */
    12081210                                                printf(
    1209                                                         __( 'Published photos: <strong>%s</strong>', 'wporg-photos' ),
     1211                                                        /* translators: %s: Number of published photos, possibly linked. */
     1212                                                        wp_kses_post( __( 'Published photos: <strong>%s</strong>', 'wporg-photos' ) ),
    12101213                                                        ( 0 === $published_count )
    12111214                                                                ? $published_count
    … …  
    12221225                                                /* translators: %s: Linked number of photos submitted by user that have been rejected. */
    12231226                                                printf(
    1224                                                         __( 'Rejected photos: <strong>%s</strong>', 'wporg-photos' ),
     1227                                                        /* translators: %s: Number of rejected photos, possibly linked. */
     1228                                                        wp_kses_post( __( 'Rejected photos: <strong>%s</strong>', 'wporg-photos' ) ),
    12251229                                                        ( 0 === $rejected_count )
    12261230                                                                ? $rejected_count
    … …  
    12411245                                                printf(
    12421246                                                        /* translators: %s: Count of user's flagged photos possibly linked to listing of their flagged photos. */
    1243                                                         _n( 'Flagged photos: <strong>%s</strong>', 'Flagged photos: <strong>%s</strong>', $flagged_count, 'wporg-photos' ),
     1247                                                        wp_kses_post( _n( 'Flagged photos: <strong>%s</strong>', 'Flagged photos: <strong>%s</strong>', $flagged_count, 'wporg-photos' ) ),
    12441248                                                        $flagged_link ? sprintf( '<a href="%s">%d</a>', esc_url( $flagged_link ), (int) $flagged_count ) : (int) $flagged_count
    12451249                                                );
    … …  
    12521256                                                        'author'      => $author->ID,
    12531257                                                ];
    1254                                                 /* translators: %s: Linked number of photos submitted by user that have been rejected. */
    12551258                                                printf(
    1256                                                         __( 'Pending photos: <strong>%s</strong>', 'wporg-photos' ),
     1259                                                        /* translators: %s: Number of pending photos, possibly linked. */
     1260                                                        wp_kses_post( __( 'Pending photos: <strong>%s</strong>', 'wporg-photos' ) ),
    12571261                                                        ( 0 === $pending_count )
    12581262                                                                ? $pending_count
    … …  
    12621266                                        <li><?php
    12631267                                                /* translators: %s: Date user account was created. */
    1264                                                 printf( __( 'Created: <strong>%s</strong>', 'wporg-photos' ), $account_created ); ?></li>
     1268                                                printf( wp_kses_post( __( 'Created: <strong>%s</strong>', 'wporg-photos' ) ), esc_html( $account_created ) );
     1269                                        ?>
     1270                                                </li>
    12651271                                </ul>
    12661272                        </div>
    … …  
    13001306                                        if ( $rejection_reasons ) {
    13011307                                                echo '<table>';
    1302                                                 echo '<tr><th>' . __( 'Reason', 'wporg-photos' ) . '</th><th>' . __( 'Total', 'wporg-photos' ) . '</th><th>%</th></tr>';
     1308                                                echo '<tr><th>' . esc_html__( 'Reason', 'wporg-photos' ) . '</th><th>' . esc_html__( 'Total', 'wporg-photos' ) . '</th><th>%</th></tr>';
    13031309                                        }
    13041310                                        foreach ( $rejection_reasons as $reason => $count ) {
    … …  
    13211327                                        printf(
    13221328                                                /* translators: %s: Rejection rate as a percentage. */
    1323                                                 __( 'Total rejection rate: %s', 'wporg-photos'),
     1329                                                esc_html__( 'Total rejection rate: %s', 'wporg-photos' ),
    13241330                                                '<strong>' . $rejection_rate .'%</strong>'
    13251331                                        );
    … …  
    13291335                                                echo '<p>';
    13301336                                                /* translators: %s: The number of submission errors. */
    1331                                                 printf( __( 'Submission errors (which are\'t counted as submissions): %s', 'wporg-photos' ), $submission_errors_count );
     1337                                                printf( esc_html__( 'Submission errors (which aren&#8217;t counted as submissions): %s', 'wporg-photos' ), (int) $submission_errors_count );
    13321338                                                echo "</p>\n";
    13331339                                        }
    … …  
    13571363                // Output file hash.
    13581364                if ( $file_hash = get_post_meta( $post_id, Registrations::get_meta_key( 'file_hash' ), true ) ) {
    1359                         printf( $format, 'file-hash', __( 'File hash', 'wporg-photos' ), $file_hash );
     1365                        echo wp_kses_post( sprintf( $format, 'file-hash', esc_html__( 'File hash', 'wporg-photos' ), esc_html( $file_hash ) ) );
    13601366                }
    13611367
    13621368                // Output original filename.
    13631369                if ( $orig_filename = get_post_meta( $post_id, Registrations::get_meta_key( 'original_filename' ), true ) ) {
    1364                         printf( $format, 'original-filename', __( 'Original file name', 'wporg-photos' ), esc_html( $orig_filename ) );
     1370                        echo wp_kses_post( sprintf( $format, 'original-filename', esc_html__( 'Original file name', 'wporg-photos' ), esc_html( $orig_filename ) ) );
    13651371                }
    13661372
    … …  
    14471453                        ! current_user_can( get_post_type_object( 'post' )->cap->create_posts )
    14481454                ) {
    1449                         wp_die( __( 'Sorry, you are not allowed to access the media library.', 'wporg-photos' ) );
     1455                        wp_die( esc_html__( 'Sorry, you are not allowed to access the media library.', 'wporg-photos' ) );
    14501456                }
    14511457        }
    … …  
    16831689                        esc_url( add_query_arg( 'skipphoto', '1' ) ),
    16841690                        esc_attr__( 'Skip this photo and load another.', 'wporg-photos' ),
    1685                         __( 'Skip Photo', 'wporg-photos')
     1691                        esc_html__( 'Skip Photo', 'wporg-photos' )
    16861692                );
    16871693        }
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/flagged.php

    r15118 r15179  
    224224                                ! current_user_can( self::get_capability() )
    225225                        ) {
    226                                 wp_die( __( 'Sorry, you are not allowed to edit this post.', 'wporg-photos' ) );
     226                                wp_die( esc_html__( 'Sorry, you are not allowed to edit this post.', 'wporg-photos' ) );
    227227                        }
    228228                }
    … …  
    395395                                                const optionExists = Array.from(select.options).some(opt => opt.value === post_status);
    396396                                                if (!optionExists) {
    397                                                         const newOption = new Option( "<?php _e( 'Flagged', 'wporg-photos' ); ?>", post_status);
     397                                                        const newOption = new Option( <?php echo wp_json_encode( __( 'Flagged', 'wporg-photos' ) ); ?>, post_status);
    398398                                                        select.add(newOption);
    399399                                                }
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/moderation.php

    r15118 r15179  
    869869                echo '<table id="dashboard-photo-moderators" class="wp-list-table widefat fixed striped table-view-list">';
    870870                echo '<thead><tr>';
    871                 echo '<th>' . __( 'Moderator', 'wporg-photos' ) . '</th>';
     871                echo '<th>' . esc_html__( 'Moderator', 'wporg-photos' ) . '</th>';
    872872                echo '<th class="col-num-approved" title="' . esc_attr__( 'Number of photos approved', 'wporg-photos' ) . '"><span class="dashicons dashicons-thumbs-up"></span></th>';
    873873                echo '<th class="col-num-rejected" title="' . esc_attr__( 'Number of photos rejected', 'wporg-photos' ) . '"><span class="dashicons dashicons-thumbs-down"></span></th>';
    874                 echo '<th class="col-last-mod-date">' . __( 'Last Moderated', 'wporg-photos' ) . '</th>';
     874                echo '<th class="col-last-mod-date">' . esc_html__( 'Last Moderated', 'wporg-photos' ) . '</th>';
    875875                echo '</tr></thead>';
    876876                echo '<tbody>';
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/rejection.php

    r15084 r15179  
    874874
    875875                echo '<div class="misc-pub-section curtime misc-pub-curtime">';
    876                 printf( __( 'Rejected by: %s', 'wporg-photos' ), '<b>' . $rejection_user . '</b>' );
     876                /* translators: %s: Name of the rejecting user. */
     877                printf( esc_html__( 'Rejected by: %s', 'wporg-photos' ), '<b>' . wp_kses_post( $rejection_user ) . '</b>' );
    877878                echo '<br>';
    878                 printf( __( 'Rejected on: %s', 'wporg-photos' ), '<b>' . $rejection_date . '</b>' );
     879                /* translators: %s: Rejection date. */
     880                printf( esc_html__( 'Rejected on: %s', 'wporg-photos' ), '<b>' . esc_html( $rejection_date ) . '</b>' );
    879881                echo '</div>';
    880882        }
    … …  
    10091011                }
    10101012
    1011                 echo '<label for="rejected_reason">' . __( 'Reject due to:', 'wporg-photos' ) . '<br>';
     1013                echo '<label for="rejected_reason">' . esc_html__( 'Reject due to:', 'wporg-photos' ) . '<br>';
    10121014                printf(
    10131015                        '<select id="rejected_reason" name="rejected_reason"%s>',
    … …  
    10301032
    10311033                // Markup for optional note to send to user in rejection email.
    1032                 echo '<label for="moderator_note_to_user" class="moderator_note_to_user' . esc_attr( $note_to_user_label_class ) . '">' . __( '(Optional) Note to user on rejection:', 'wporg-photos' );
    1033                 echo '<p class="description"><em>' . __( 'Included in rejection email.', 'wporg-photos' ) . '</em></p>';
     1034                echo '<label for="moderator_note_to_user" class="moderator_note_to_user' . esc_attr( $note_to_user_label_class ) . '">' . esc_html__( '(Optional) Note to user on rejection:', 'wporg-photos' );
     1035                echo '<p class="description"><em>' . esc_html__( 'Included in rejection email.', 'wporg-photos' ) . '</em></p>';
    10341036                echo '<textarea id="moderator_note_to_user" name="moderator_note_to_user" rows="4"' . disabled( true, $is_disabled, false ) . '>';
    10351037                echo esc_textarea( self::get_moderator_note_to_user( $post, 'reject' ) );
    … …  
    10381040
    10391041                // Markup for optional note sent to user in approval email.
    1040                 echo '<label for="moderator_note_to_user_on_publish" class="moderator_note_to_user_on_publish' . esc_attr( $note_to_user_label_class ) . '">' . __( '(Optional) Note to user on approval:', 'wporg-photos' );
    1041                 echo '<p class="description"><em>' . __( 'Included in approval email.', 'wporg-photos' ) . '</em></p>';
     1042                echo '<label for="moderator_note_to_user_on_publish" class="moderator_note_to_user_on_publish' . esc_attr( $note_to_user_label_class ) . '">' . esc_html__( '(Optional) Note to user on approval:', 'wporg-photos' );
     1043                echo '<p class="description"><em>' . esc_html__( 'Included in approval email.', 'wporg-photos' ) . '</em></p>';
    10421044                echo '<textarea id="moderator_note_to_user_on_publish" name="moderator_note_to_user_on_publish" rows="4"' . disabled( true, $is_disabled, false ) . '>';
    10431045                echo esc_textarea( self::get_moderator_note_to_user( $post, 'publish' ) );
    … …  
    10461048
    10471049                // Markup for optional private note for moderator-eyes only.
    1048                 echo '<label for="moderator_private_note">' . __( '(Optional) Private moderators-only note:', 'wporg-photos' );
     1050                echo '<label for="moderator_private_note">' . esc_html__( '(Optional) Private moderators-only note:', 'wporg-photos' );
    10491051                echo '<textarea id="moderator_private_note" name="moderator_private_note" rows="4">';
    10501052                echo esc_textarea( self::get_moderator_private_note( $post ) );
    … …  
    13691371                echo '<table id="dashboard-photo-rejection-stats" class="wp-list-table widefat fixed striped table-view-list">';
    13701372                echo '<thead><tr>';
    1371                 echo '<th>' . __( 'Rejection reason', 'wporg-photos' ) . '</th>';
     1373                echo '<th>' . esc_html__( 'Rejection reason', 'wporg-photos' ) . '</th>';
    13721374                echo '<th class="col-num col-num-rejected" title="' . esc_attr__( 'Number of photos rejected', 'wporg-photos' ) . '"><span class="dashicons dashicons-thumbs-down"></span></th>';
    13731375                echo '<th class="col-num col-percent-rejected" title="' . esc_attr( 'Percentage of overall rejections', 'wporg-photos' ) . '">%</th>';
    … …  
    13901392                }
    13911393
    1392                 echo '<tr class="row-sum"><td>' . __( 'Total', 'wporg-photos' ) . '</td><td>' . number_format_i18n( $total_rejections ) . '</td><td>100%</td></tr>';
     1394                echo '<tr class="row-sum"><td>' . esc_html__( 'Total', 'wporg-photos' ) . '</td><td>' . esc_html( number_format_i18n( $total_rejections ) ) . '</td><td>100%</td></tr>';
    13931395                echo '</tbody></table>';
    13941396                echo '</div>';
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/settings.php

    r12058 r15179  
    7373                        esc_attr( self::KILLSWITCH_OPTION_NAME ),
    7474                        checked( true, self::is_killswitch_enabled(), false ),
    75                         __( 'Prevents all users from being able to upload any photos', 'wporg-photos' )
     75                        esc_html__( 'Prevents all users from being able to upload any photos', 'wporg-photos' )
    7676                );
    7777        }
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php

    r15170 r15179  
    182182                ?>
    183183                <div class="wrap">
    184                         <h1><?php _e( 'Plugin Tools', 'wporg-plugins' ); ?></h1>
     184                        <h1><?php esc_html_e( 'Plugin Tools', 'wporg-plugins' ); ?></h1>
    185185                        <ul>
    186186                                <?php
    … …  
    589589                        wp_die( sprintf(
    590590                                /* translators: %s: plugin slug */
    591                                 __( 'Error: The plugin %s already exists.', 'wporg-plugins' ),
     591                                esc_html__( 'Error: The plugin %s already exists.', 'wporg-plugins' ),
    592592                                $new_slug
    593593                        ) );
    … …  
    669669                        wp_die( sprintf(
    670670                                /* translators: %s: plugin slug */
    671                                 __( 'Error: The plugin %s already exists.', 'wporg-plugins' ),
     671                                esc_html__( 'Error: The plugin %s already exists.', 'wporg-plugins' ),
    672672                                $original_slug
    673673                        ) );
    … …  
    891891                $user = wp_get_current_user();
    892892                if ( ! $user->exists() ) {
    893                         wp_die( __( 'Sorry, you must be logged in to reply to a comment.', 'wporg-plugins' ) );
     893                        wp_die( esc_html__( 'Sorry, you must be logged in to reply to a comment.', 'wporg-plugins' ) );
    894894                }
    895895
    … …  
    913913
    914914                if ( '' == $comment_content ) {
    915                         wp_die( __( 'ERROR: please type a comment.', 'wporg-plugins' ) );
     915                        wp_die( esc_html__( 'ERROR: please type a comment.', 'wporg-plugins' ) );
    916916                }
    917917
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-status-transitions.php

    r15133 r15179  
    133133
    134134                // ...DIE!!!!!
    135                 wp_die( __( 'You do not have permission to assign this post status to a plugin.', 'wporg-plugins' ), '', array(
    136                         'back_link' => true,
    137                 ) );
     135                wp_die(
     136                        esc_html__( 'You do not have permission to assign this post status to a plugin.', 'wporg-plugins' ),
     137                        '',
     138                        array(
     139                                'back_link' => true,
     140                        )
     141                );
    138142        }
    139143
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-committers.php

    r13871 r15179  
    6060         */
    6161        public function no_items() {
    62                 _e( 'No committers found.', 'wporg-plugins' );
     62                esc_html_e( 'No committers found.', 'wporg-plugins' );
    6363        }
    6464
    … …  
    127127                <tr id="add-committer" class="add-committer wp-hidden-children">
    128128                        <td colspan="2">
    129                                 <button type="button" id="add-committer-toggle" class="button-link"><?php _e( '+ Add New Committer', 'wporg-plugins' ); ?></button>
     129                                <button type="button" id="add-committer-toggle" class="button-link"><?php esc_html_e( '+ Add New Committer', 'wporg-plugins' ); ?></button>
    130130                                <p class="wp-hidden-child">
    131131                                        <?php wp_nonce_field( 'add-committer', '_ajax_nonce', false ); ?>
    … …  
    133133                                        <label>
    134134                                                <input type="text" name="add_committer" class="form-required" value="" aria-required="true" placeholder="<?php esc_attr_e( 'WordPress.org username', 'wporg-plugins' ); ?>">
    135                                                 <span class="screen-reader-text"><?php _e( 'Add a new committer', 'wporg-plugins' ); ?></span>
     135                                                <span class="screen-reader-text"><?php esc_html_e( 'Add a new committer', 'wporg-plugins' ); ?></span>
    136136                                        </label>
    137                                         <input type="button" id="add-committer-submit" class="button" data-wp-lists="add:the-committer-list:add-committer::post_id=<?php echo get_post()->ID; ?>" value="<?php _e( 'Add Committer', 'wporg-plugins' ); ?>">
     137                                        <input type="button" id="add-committer-submit" class="button" data-wp-lists="add:the-committer-list:add-committer::post_id=<?php echo (int) get_post()->ID; ?>" value="<?php esc_attr_e( 'Add Committer', 'wporg-plugins' ); ?>">
    138138                                </p>
    139139                        </td>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-plugin-posts.php

    r15036 r15179  
    334334
    335335                <fieldset class="inline-edit-col-left">
    336                         <legend class="inline-edit-legend"><?php _e( 'Quick Edit', 'wporg-plugins' ); ?></legend>
     336                        <legend class="inline-edit-legend"><?php esc_html_e( 'Quick Edit', 'wporg-plugins' ); ?></legend>
    337337                        <div class="inline-edit-col">
    338338
    339339                        <label>
    340                                 <span class="title"><?php _e( 'Slug', 'wporg-plugins' ); ?></span>
     340                                <span class="title"><?php esc_html_e( 'Slug', 'wporg-plugins' ); ?></span>
    341341                                <span class="input-text-wrap"><input type="text" name="post_name" value="" /></span>
    342342                        </label>
    … …  
    363363
    364364                <p class="submit inline-edit-save">
    365                         <button type="button" class="button cancel alignleft"><?php _e( 'Cancel', 'wporg-plugins' ); ?></button>
     365                        <button type="button" class="button cancel alignleft"><?php esc_html_e( 'Cancel', 'wporg-plugins' ); ?></button>
    366366                        <?php wp_nonce_field( 'inlineeditnonce', '_inline_edit', false ); ?>
    367                         <button type="button" class="button button-primary save alignright"><?php _e( 'Update', 'wporg-plugins' ); ?></button>
     367                        <button type="button" class="button button-primary save alignright"><?php esc_html_e( 'Update', 'wporg-plugins' ); ?></button>
    368368                        <span class="spinner"></span>
    369369                        <input type="hidden" name="post_author" value="" />
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-support-reps.php

    r14362 r15179  
    6060         */
    6161        public function no_items() {
    62                 _e( 'No support reps found.', 'wporg-plugins' );
     62                esc_html_e( 'No support reps found.', 'wporg-plugins' );
    6363        }
    6464
    … …  
    127127                <tr id="add-support-rep" class="add-support-rep wp-hidden-children">
    128128                        <td colspan="2">
    129                                 <button type="button" id="add-support-rep-toggle" class="button-link"><?php _e( '+ Add New Support Rep', 'wporg-plugins' ); ?></button>
     129                                <button type="button" id="add-support-rep-toggle" class="button-link"><?php esc_html_e( '+ Add New Support Rep', 'wporg-plugins' ); ?></button>
    130130                                <p class="wp-hidden-child">
    131131                                        <?php wp_nonce_field( 'add-support-rep', '_ajax_nonce', false ); ?>
    … …  
    133133                                        <label>
    134134                                                <input type="text" name="add_support_rep" class="form-required" value="" aria-required="true" placeholder="<?php esc_attr_e( 'WordPress.org username', 'wporg-plugins' ); ?>">
    135                                                 <span class="screen-reader-text"><?php _e( 'Add a new support rep', 'wporg-plugins' ); ?></span>
     135                                                <span class="screen-reader-text"><?php esc_html_e( 'Add a new support rep', 'wporg-plugins' ); ?></span>
    136136                                        </label>
    137                                         <input type="button" id="add-support-rep-submit" class="button" data-wp-lists="add:the-support-rep-list:add-support-rep::post_id=<?php echo get_post()->ID; ?>" value="<?php _e( 'Add Support Rep', 'wporg-plugins' ); ?>">
     137                                        <input type="button" id="add-support-rep-submit" class="button" data-wp-lists="add:the-support-rep-list:add-support-rep::post_id=<?php echo (int) get_post()->ID; ?>" value="<?php esc_attr_e( 'Add Support Rep', 'wporg-plugins' ); ?>">
    138138                                </p>
    139139                        </td>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-author-card.php

    r15170 r15179  
    116116                        <?php echo get_avatar( $author->ID, 48 ); ?>
    117117                        <div class="profile-details">
    118                                 <strong><a href="//profiles.wordpress.org/<?php echo $author->user_nicename; ?>/"><?php echo $author->user_login; ?></a></strong>
     118                                <strong><a href="//profiles.wordpress.org/<?php echo esc_attr( $author->user_nicename ); ?>/"><?php echo esc_html( $author->user_login ); ?></a></strong>
    119119                                <?php
    120120                                $author_links = array(
    … …  
    134134
    135135                                <span class="profile-links">
    136                                         <a href="//profiles.wordpress.org/<?php echo $author->user_nicename; ?>/"><?php _e( 'profile', 'wporg-plugins' ); ?></a> |
    137                                         <a href="//wordpress.org/support/users/<?php echo $author->user_nicename; ?>/"><?php _e( 'support', 'wporg-plugins' ); ?></a>
     136                                        <a href="//profiles.wordpress.org/<?php echo esc_attr( $author->user_nicename ); ?>/"><?php esc_html_e( 'profile', 'wporg-plugins' ); ?></a> |
     137                                        <a href="//wordpress.org/support/users/<?php echo esc_attr( $author->user_nicename ); ?>/"><?php esc_html_e( 'support', 'wporg-plugins' ); ?></a>
    138138                                </span>
    139139
    … …  
    155155                                        /* translators: 1: time ago, 2: registration date */
    156156                                        printf(
    157                                                 __( 'Joined %1$s ago (%2$s)', 'wporg-plugins' ),
     157                                                /* translators: 1: Time since registration, 2: Registration date. */
     158                                                esc_html__( 'Joined %1$s ago (%2$s)', 'wporg-plugins' ),
    158159                                                human_time_diff( strtotime( $author->user_registered ) ),
    159160                                                date( 'Y-M-d', strtotime( $author->user_registered ) )
    … …  
    166167                <?php if ( ! empty( $author->user_url ) ) : ?>
    167168                        <p class="profile-url">
    168                                 <?php _e( 'Author URL:', 'wporg-plugins' ); ?>
     169                                <?php esc_html_e( 'Author URL:', 'wporg-plugins' ); ?>
    169170                                <a href="<?php echo esc_url( $author->user_url ); ?>"><?php echo esc_html( $author->user_url ); ?></a>
    170171                        </p>
    … …  
    202203                                        }
    203204                                        /* translators: %s: comma-separated list of negative user status labels */
    204                                         echo '<p>' . sprintf( __( 'This user is: %s', 'wporg-plugins' ), implode( ', ', $labels ) ) . '</p>';
     205                                        echo '<p>' . sprintf( esc_html__( 'This user is: %s', 'wporg-plugins' ), wp_kses_post( implode( ', ', $labels ) ) ) . '</p>';
    205206                                }
    206207
    … …  
    211212                        $warning_flags = self::get_user_flags( $author->ID, $author_plugins );
    212213                        if ( $warning_flags ) {
    213                                 echo '<strong>' . __( 'Warning Flags:', 'wporg-plugins' ) . '</strong>';
     214                                echo '<strong>' . esc_html__( 'Warning Flags:', 'wporg-plugins' ) . '</strong>';
    214215                                echo '<ul class="plugin-flagged">';
    215216                                foreach ( $warning_flags as $flag => $reasons ) {
    … …  
    238239                                /* translators: %s: comma-separated list of plugin author's IP addresses */
    239240                                printf(
    240                                         '<p>' . __( 'IPs : %s', 'wporg-plugins' ) . '</p>',
     241                                        /* translators: %s: List of IP addresses. */
     242                                        '<p>' . esc_html__( 'IPs : %s', 'wporg-plugins' ) . '</p>',
    241243                                        implode( ', ', array_map( array( __NAMESPACE__ . '\Author_Card', 'link_ip' ), $user_ips ) )
    242244                                );
    … …  
    245247                        // Include any user notes.
    246248                        if ( ! empty( $user_notes ) ) {
    247                                 _e( 'User notes:', 'wporg-plugins' );
     249                                esc_html_e( 'User notes:', 'wporg-plugins' );
    248250                                echo '<ul>';
    249251                                foreach ( $user_notes as $note ) {
    … …  
    268270                        <?php
    269271                        if ( empty( $author_commit ) && empty( $author_plugins ) ) {
    270                                 _e( 'Not a developer on any plugin.', 'wporg-plugins' );
     272                                esc_html_e( 'Not a developer on any plugin.', 'wporg-plugins' );
    271273                        } else {
    272                                 echo '<strong>' . sprintf( _n( '%d plugin:', '%d plugins:', count( $all_plugins ), 'wporg-plugins' ), count( $all_plugins ) ) . '</strong>';
     274                                /* translators: %d: Number of plugins. */
     275                                echo '<strong>' . sprintf( esc_html( _n( '%d plugin:', '%d plugins:', count( $all_plugins ), 'wporg-plugins' ) ), count( $all_plugins ) ) . '</strong>';
    273276
    274277                                echo '<ul>';
    … …  
    513516                                        esc_url( get_edit_post_link( $plugin->ID, '' ) ),
    514517                                        esc_attr__( 'Edit this plugin', 'wporg-plugins' ),
    515                                         __( 'Edit', 'wporg-plugins' )
     518                                        esc_html__( 'Edit', 'wporg-plugins' )
    516519                                ),
    517520                                sprintf(
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-author.php

    r6288 r15179  
    2626                <label><input id="post_author_username" type="text" value="<?php echo esc_attr( $user->user_login ); ?>" /></label>
    2727                <input id="post_author_override" type="hidden" name="post_author_override" value="<?php echo esc_attr( $value ); ?>" />
    28                 <label class="screen-reader-text"><?php _e( 'Author', 'wporg-plugins' ); ?></label>
     28                <label class="screen-reader-text"><?php esc_html_e( 'Author', 'wporg-plugins' ); ?></label>
    2929
    3030                <script>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-controls.php

    r15167 r15179  
    234234                        <?php if ( 'closed' === $post->post_status ) : ?>
    235235
    236                                 <p><?php printf( __( 'Close Reason: %s', 'wporg-plugins' ), '<strong>' . $close_reason_label . '</strong>' ); ?></p>
     236                                <?php /* translators: %s: Close reason. */ ?>
     237                                <p><?php printf( esc_html__( 'Close Reason: %s', 'wporg-plugins' ), '<strong>' . esc_html( $close_reason_label ) . '</strong>' ); ?></p>
    237238
    238239                        <?php elseif ( 'disabled' === $post->post_status ) : ?>
    239240
    240                                 <p><?php printf( __( 'Disable Reason: %s', 'wporg-plugins' ), '<strong>' . $close_reason_label . '</strong>' ); ?></p>
     241                                <?php /* translators: %s: Disable reason. */ ?>
     242                                <p><?php printf( esc_html__( 'Disable Reason: %s', 'wporg-plugins' ), '<strong>' . esc_html( $close_reason_label ) . '</strong>' ); ?></p>
    241243
    242244                        <?php elseif ( 'rejected' === $post->post_status ) : ?>
    243245
    244                                 <p><?php printf(
    245                                                 __( 'Rejection Reason: %s', 'wporg-plugins' ),
    246                                                 '<strong>' . $rejection_reason_label . '</strong>'
    247                                 ); ?></p>
     246                                <p>
     247                                        <?php
     248                                        printf(
     249                                                /* translators: %s: Rejection reason. */
     250                                                esc_html__( 'Rejection Reason: %s', 'wporg-plugins' ),
     251                                                '<strong>' . esc_html( $rejection_reason_label ) . '</strong>'
     252                                        );
     253                                        ?>
     254                                </p>
    248255
    249256                        <?php elseif ( 'publish' === $post->post_status ) : ?>
    250257
    251258                                <?php if ( $active_installs >= '20000' ) : ?>
    252                                         <p><strong><?php _e( 'Notice:', 'wporg-plugins' ); ?></strong> <?php _e( 'Due to the large volume of active users, the developers should be warned and their plugin remain open save under extreme circumstances.', 'wporg-plugins' ); ?>.</p>
     259                                        <p><strong><?php esc_html_e( 'Notice:', 'wporg-plugins' ); ?></strong> <?php esc_html_e( 'Due to the large volume of active users, the developers should be warned and their plugin remain open save under extreme circumstances.', 'wporg-plugins' ); ?>.</p>
    253260                                <?php endif; ?>
    254261
    … …  
    257264                        <?php if ( array_intersect( $statuses, [ 'closed', 'disabled' ] ) ) { ?>
    258265                                <p>
    259                                         <label for="close_reason"><?php _e( 'Close/Disable Reason:', 'wporg-plugins' ); ?></label>
     266                                        <label for="close_reason"><?php esc_html_e( 'Close/Disable Reason:', 'wporg-plugins' ); ?></label>
    260267                                        <select name="close_reason" id="close_reason">
    261268                                                <?php foreach ( $close_reasons as $key => $label ) : ?>
    … …  
    277284                                if ( $status === 'rejected' ) { ?>
    278285                                        <p>
    279                                                 <label for="rejection_reason"><?php _e( 'Rejection Reason:', 'wporg-plugins' ); ?></label>
     286                                                <label for="rejection_reason"><?php esc_html_e( 'Rejection Reason:', 'wporg-plugins' ); ?></label>
    280287                                                <select name="rejection_reason" id="rejection_reason">
    281288                                                        <?php foreach ( $rejection_reasons as $key => $label ) : ?>
    … …  
    304311                <table class="misc-pub-section misc-pub-meta">
    305312                        <tr>
    306                                 <td><?php _e( 'Status:', 'wporg-plugins' ); ?></td>
     313                                <td><?php esc_html_e( 'Status:', 'wporg-plugins' ); ?></td>
    307314                                <td><strong><?php echo esc_html( get_post_status_object( $post->post_status )->label ); ?></strong></td>
    308315                        </tr>
    309316
    310317                        <tr>
    311                                 <td><?php _e( 'Version:', 'wporg-plugins' ); ?></td>
     318                                <td><?php esc_html_e( 'Version:', 'wporg-plugins' ); ?></td>
    312319                                <td><strong><?php echo esc_html( $post->version ); ?></strong></td>
    313320                        </tr>
    314321
    315322                        <tr>
    316                                 <td><?php _e( 'Updated:', 'wporg-plugins' ); ?></td>
     323                                <td><?php esc_html_e( 'Updated:', 'wporg-plugins' ); ?></td>
    317324                                <td><strong><?php
    318325                                        printf(
    … …  
    325332
    326333                        <tr>
    327                                 <td><?php _e( 'Submitted:', 'wporg-plugins' ); ?></td>
     334                                <td><?php esc_html_e( 'Submitted:', 'wporg-plugins' ); ?></td>
    328335                                <td><strong><?php
    329336                                        $submitted_date = min( array_filter( [
    … …  
    342349
    343350                        <tr>
    344                                 <td><?php _e( 'Installs:', 'wporg-plugins' ); ?></td>
     351                                <td><?php esc_html_e( 'Installs:', 'wporg-plugins' ); ?></td>
    345352                                <td><strong><?php echo Template::active_installs( false, $post ); ?></strong></td>
    346353                        </tr>
    … …  
    365372                        <?php if ( $post->tested ) : ?>
    366373                        <tr>
    367                                 <td><?php _e( 'Tested With:', 'wporg-plugins' ); ?></td>
     374                                <td><?php esc_html_e( 'Tested With:', 'wporg-plugins' ); ?></td>
    368375                                <td><strong><?php printf( 'WordPress %s', esc_html( $post->tested ) ); ?></strong></td>
    369376                        </tr>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-internal-notes.php

    r9682 r15179  
    3333                ?>
    3434                <p class="hide-if-no-js" id="add-new-comment">
    35                         <a class="button" href="#commentstatusdiv"><?php _e( 'Add note', 'wporg-plugins' ); ?></a>
     35                        <a class="button" href="#commentstatusdiv"><?php esc_html_e( 'Add note', 'wporg-plugins' ); ?></a>
    3636                </p>
    3737                <?php
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-review-tools.php

    r15170 r15179  
    160160                        echo '<label>
    161161                                <input type="file" class="plugin-file" name="zip_file" size="25" accept=".zip"/>
    162                                 <button class="button button-secondary plugin-upload-zip">' . __( 'Upload', 'wporg-plugins' ) . '</button>
     162                                <button class="button button-secondary plugin-upload-zip">' . esc_html__( 'Upload', 'wporg-plugins' ) . '</button>
    163163                                </label>';
    164164                }
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/tools/class-author-cards.php

    r15044 r15179  
    7979
    8080                echo '<div class="wrap author-cards">';
    81                 echo '<h1>' . __( 'Author Cards', 'wporg-plugins' ) . '</h1>';
     81                echo '<h1>' . esc_html__( 'Author Cards', 'wporg-plugins' ) . '</h1>';
    8282
    83                 echo '<p>' . __( 'This is a tool to display an author card for one or more specified users.', 'wporg-plugins' ) . '</p>';
     83                echo '<p>' . esc_html__( 'This is a tool to display an author card for one or more specified users.', 'wporg-plugins' ) . '</p>';
    8484
    8585                echo '<form method="GET">';
    8686                echo '<table class="form-table"><tbody><tr>';
    87                 echo '<th scope="row"><label for="users">' . __( 'Users', 'wporg-plugins' ) . '</label></th><td>';
     87                echo '<th scope="row"><label for="users">' . esc_html__( 'Users', 'wporg-plugins' ) . '</label></th><td>';
    8888                echo '<input name="page" type="hidden" value="' . esc_attr( $_REQUEST['page'] ) . '">';
    8989                echo '<input name="users" type="text" id="users" value="' . esc_attr( $usernames ) . '" class="regular-text">';
    90                 echo '<p>' . __( 'Comma-separated list of user slugs, logins, and/or email addresses.', 'wporg-plugins' ) . '</p>';
     90                echo '<p>' . esc_html__( 'Comma-separated list of user slugs, logins, and/or email addresses.', 'wporg-plugins' ) . '</p>';
    9191                echo '</td></tr></tbody></table>';
    9292                echo '<p class="submit"><input type="submit" id="submit" class="button button-primary" value="' . esc_attr__( 'Submit', 'wporg-plugins' ) . '"></p>';
    … …  
    9494
    9595                if ( $usernames ) {
    96                         echo '<h2>' . __( 'Results', 'wporg-plugins' ) . '</h2>';
     96                        echo '<h2>' . esc_html__( 'Results', 'wporg-plugins' ) . '</h2>';
    9797
    9898                        echo '<div class="main">';
    … …  
    131131                                                echo esc_html( $username );
    132132                                                echo '</strong></span></p>';
    133                                                 echo '<p><em>' . __( 'No user found with this slug, login, or email address.', 'wporg-plugins' ) . '</em></p>';
     133                                                echo '<p><em>' . esc_html__( 'No user found with this slug, login, or email address.', 'wporg-plugins' ) . '</em></p>';
    134134                                                echo '</div>';
    135135                                        }
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/tools/class-stats-report.php

    r14701 r15179  
    366366                <div class="wrap stats-report">
    367367
    368                 <h1><?php _e( 'Plugin Repository and email Stats Report', 'wporg-plugins' ); ?></h1>
     368                <h1><?php esc_html_e( 'Plugin Repository and email Stats Report', 'wporg-plugins' ); ?></h1>
    369369
    370370                <form method="get">
    371371                <input type="hidden" name="page" value="<?php echo esc_attr( $_REQUEST['page'] ); ?>"/>
    372372                <table class="form-table"><tbody>
    373                 <tr><th scope="row"><label for="date"><?php _e( 'Date', 'wporg-plugins' ); ?></label></th><td>
     373                <tr><th scope="row"><label for="date"><?php esc_html_e( 'Date', 'wporg-plugins' ); ?></label></th><td>
    374374                <input name="date" type="text" id="date" value="<?php echo esc_attr( $args['date'] ); ?>" class="text">
    375375                <p>
    … …  
    377377                        /* translators: %s: today's date */
    378378                        printf(
    379                                 __( 'The day up to which stats are to be gathered. In YYYY-MM-DD format. Defaults to today (%s).', 'wporg-plugins' ),
     379                                /* translators: %s: Today's date. */
     380                                esc_html__( 'The day up to which stats are to be gathered. In YYYY-MM-DD format. Defaults to today (%s).', 'wporg-plugins' ),
    380381                                esc_html( $date )
    381382                        );
    … …  
    384385                </td></tr>
    385386
    386                 <tr><th scope="row"><label for="days"><?php _e( 'Number of days', 'wporg-plugins' ); ?></label></th><td>
     387                <tr><th scope="row"><label for="days"><?php esc_html_e( 'Number of days', 'wporg-plugins' ); ?></label></th><td>
    387388                <input name="days" type="text" id="days" value="<?php echo esc_attr( $args['num_days'] ); ?>" class="small-text">
    388389                <p>
    … …  
    390391                        /* translators: %d: 7 */
    391392                        printf(
    392                                 __( 'The number of days before "Date" to include in stats. Default is %d.', 'wporg-plugins' ),
     393                                /* translators: %d: Default number of days. */
     394                                esc_html__( 'The number of days before "Date" to include in stats. Default is %d.', 'wporg-plugins' ),
    393395                                7
    394396                        );
    … …  
    397399                </td></tr>
    398400
    399                 <tr><th scope="row"><label for="recentdays"><?php _e( '"Recent" number of days', 'wporg-plugins' ); ?></label></th><td>
     401                <tr><th scope="row"><label for="recentdays"><?php esc_html_e( '"Recent" number of days', 'wporg-plugins' ); ?></label></th><td>
    400402                <input name="recentdays" type="text" id="recentdays" value="<?php echo esc_attr( $args['recentdays'] ); ?>" class="small-text">
    401403                <p>
    … …  
    403405                        /* translators: %d: 7 */
    404406                        printf(
    405                                 __( 'The number of days before today to consider as being "recent" (stats marked with **). Default is %d.', 'wporg-plugins' ),
     407                                /* translators: %d: Default number of days. */
     408                                esc_html__( 'The number of days before today to consider as being "recent" (stats marked with **). Default is %d.', 'wporg-plugins' ),
    406409                                7
    407410                        );
    … …  
    414417                </form>
    415418
    416                 <h2><?php _e( 'Stats', 'wporg-plugins' ); ?></h2>
     419                <h2><?php esc_html_e( 'Stats', 'wporg-plugins' ); ?></h2>
    417420
    418421                <p>
    … …  
    420423                        /* translators: 1: number of days, 2: selected date, 3: number of most recent days */
    421424                        printf(
    422                                 __( 'Displaying stats for the %1$d days preceding %2$s (and other stats for the %3$d most recent days).', 'wporg-plugins' ),
     425                                /* translators: 1: Number of days, 2: Date, 3: Number of recent days. */
     426                                esc_html__( 'Displaying stats for the %1$d days preceding %2$s (and other stats for the %3$d most recent days).', 'wporg-plugins' ),
    423427                                esc_html( $stats['num_days'] ),
    424428                                esc_html( $stats['date'] ),
    … …  
    428432                </p>
    429433
    430                 <h3><?php _e( 'Plugin Status Change Stats', 'wporg-plugins' ); ?></h3>
     434                <h3><?php esc_html_e( 'Plugin Status Change Stats', 'wporg-plugins' ); ?></h3>
    431435
    432436                <ul style="font-family:Courier New;">
    … …  
    435439                                /* translators: %d: number of requested plugins */
    436440                                printf(
    437                                         __( 'Plugins requested : %d', 'wporg-plugins' ),
     441                                        /* translators: %d: Number of plugins. */
     442                                        esc_html__( 'Plugins requested : %d', 'wporg-plugins' ),
    438443                                        esc_html( $stats['plugin_new'] )
    439444                                );
    … …  
    444449                                /* translators: %s: number of rejected plugins */
    445450                                printf(
    446                                         __( 'Plugins rejected : %s', 'wporg-plugins' ),
     451                                        /* translators: %s: Number of plugins. */
     452                                        esc_html__( 'Plugins rejected : %s', 'wporg-plugins' ),
    447453                                        esc_html( $stats['plugin_reject'] )
    448454                                );
    … …  
    453459                                /* translators: %s: number of closed plugins */
    454460                                printf(
    455                                         __( 'Plugins closed : %s', 'wporg-plugins' ),
     461                                        /* translators: %s: Number of plugins. */
     462                                        esc_html__( 'Plugins closed : %s', 'wporg-plugins' ),
    456463                                        esc_html( $stats['plugin_delist'] )
    457464                                );
    … …  
    471478                                /* translators: %s: number of approved plugins */
    472479                                printf(
    473                                         __( 'Plugins approved : %s', 'wporg-plugins' ),
     480                                        /* translators: %s: Number of plugins. */
     481                                        esc_html__( 'Plugins approved : %s', 'wporg-plugins' ),
    474482                                        esc_html( $stats['plugin_approve'] )
    475483                                );
    … …  
    478486                </ul>
    479487
    480                 <h3><?php _e( 'Plugin Queue Stats (current)', 'wporg-plugins' ); ?></h3>
     488                <h3><?php esc_html_e( 'Plugin Queue Stats (current)', 'wporg-plugins' ); ?></h3>
    481489
    482490                <ul style="font-family:Courier New;">
    … …  
    485493                                /* translators: %d: number of plugins in the queue */
    486494                                printf(
    487                                         __( 'Plugins in the queue (new and pending)* : %d', 'wporg-plugins' ),
     495                                        /* translators: %d: Number of plugins. */
     496                                        esc_html__( 'Plugins in the queue (new and pending)* : %d', 'wporg-plugins' ),
    488497                                        esc_html( $stats['in_queue'] )
    489498                                );
    … …  
    494503                                /* translators: 1: number of most recent days, 2: number of older plugins in the queue */
    495504                                printf(
    496                                         __( '&rarr; (older than %1$d days ago)** : %2$d', 'wporg-plugins' ),
     505                                        /* translators: 1: Number of days, 2: Number of plugins. */
     506                                        esc_html__( '&rarr; (older than %1$d days ago)** : %2$d', 'wporg-plugins' ),
    497507                                        esc_html( $stats['recentdays'] ),
    498508                                        esc_html( $stats['in_queue_old'] )
    … …  
    504514                                /* translators: 1: start date, 2: end date, 3: number of plugins in the queue within defined time window */
    505515                                printf(
    506                                         __( '&rarr; (%1$s - %2$s) : %3$d', 'wporg-plugins' ),
     516                                        /* translators: 1: Start date, 2: End date, 3: Number of plugins. */
     517                                        esc_html__( '&rarr; (%1$s - %2$s) : %3$d', 'wporg-plugins' ),
    507518                                        esc_html( $start_date ),
    508519                                        esc_html( $stats['date'] ),
    … …  
    515526                                /* translators: %d: number of new plugins */
    516527                                printf(
    517                                         __( '&rarr; (new; not processed or replied to yet)* : %d', 'wporg-plugins' ),
     528                                        /* translators: %d: Number of plugins. */
     529                                        esc_html__( '&rarr; (new; not processed or replied to yet)* : %d', 'wporg-plugins' ),
    518530                                        esc_html( $stats['in_queue_new'] )
    519531                                );
    … …  
    524536                                /* translators: %d: number of pending plugins */
    525537                                printf(
    526                                         __( '&rarr; (pending; replied to)* : %d', 'wporg-plugins' ),
     538                                        /* translators: %d: Number of plugins. */
     539                                        esc_html__( '&rarr; (pending; replied to)* : %d', 'wporg-plugins' ),
    527540                                        esc_html( $stats['in_queue_pending'] )
    528541                                );
    … …  
    533546                                /* translators: %d: number of pending plugins */
    534547                                printf(
    535                                         __( '&rarr; (pending; waiting on author)* : %d', 'wporg-plugins' ),
     548                                        /* translators: %d: Number of plugins. */
     549                                        esc_html__( '&rarr; (pending; waiting on author)* : %d', 'wporg-plugins' ),
    536550                                        esc_html( $stats['in_queue_pending_why']['author'] ?? 0 )
    537551                                );
    … …  
    542556                                /* translators: %d: number of pending plugins */
    543557                                printf(
    544                                         __( '&rarr; (pending; waiting on reviewer)* : %d', 'wporg-plugins' ),
     558                                        /* translators: %d: Number of plugins. */
     559                                        esc_html__( '&rarr; (pending; waiting on reviewer)* : %d', 'wporg-plugins' ),
    545560                                        esc_html( $stats['in_queue_pending_why']['reviewer'] ?? 0 )
    546561                                );
    … …  
    552567                                        /* translators: %d: number of pending plugins */
    553568                                        printf(
    554                                                 __( '&rarr; (pending; waiting on reviewer, email not yet sent)* : %d', 'wporg-plugins' ),
     569                                                /* translators: %d: Number of plugins. */
     570                                                esc_html__( '&rarr; (pending; waiting on reviewer, email not yet sent)* : %d', 'wporg-plugins' ),
    555571                                                esc_html( $stats['in_queue_pending_why']['noemail'] )
    556572                                        );
    … …  
    561577
    562578                <?php if ( defined( 'HELPSCOUT_PLUGINS_MAILBOXID' ) ) : ?>
    563                 <h3><?php _e( 'Help Scout Queue Stats', 'wporg-plugins' ); ?></h3>
     579                <h3><?php esc_html_e( 'Help Scout Queue Stats', 'wporg-plugins' ); ?></h3>
    564580
    565581                <ul style="font-family:Courier New;">
    … …  
    632648
    633649                <ul style="font-style:italic;">
    634                         <li><code>*</code> : <?php _e( "Stat reflects current size of queue and does not take into account 'date' or 'day' interval", 'wporg-plugins' ); ?></li>
    635                         <li><code>**</code> : <?php _e( "Stat reflects activity only within the 'recentdays' from today", 'wporg-plugins' ); ?></li>
     650                        <li><code>*</code> : <?php esc_html_e( "Stat reflects current size of queue and does not take into account 'date' or 'day' interval", 'wporg-plugins' ); ?></li>
     651                        <li><code>**</code> : <?php esc_html_e( "Stat reflects activity only within the 'recentdays' from today", 'wporg-plugins' ); ?></li>
    636652                </ul>
    637653
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/tools/class-upload-token.php

    r12522 r15179  
    119119
    120120                echo '<div class="wrap author-cards">';
    121                 echo '<h1>' . __( 'Upload Token', 'wporg-plugins' ) . '</h1>';
    122                 echo '<p>' . __( 'This tool allows the generation of a one-time-use token to allow a plugin author to upload a plugin bypassing certain checks.', 'wporg-plugins' ) . '</p>';
     121                echo '<h1>' . esc_html__( 'Upload Token', 'wporg-plugins' ) . '</h1>';
     122                echo '<p>' . esc_html__( 'This tool allows the generation of a one-time-use token to allow a plugin author to upload a plugin bypassing certain checks.', 'wporg-plugins' ) . '</p>';
    123123                echo '<ol>';
    124                 echo '<li>' . __( 'Trademarked terms', 'wporg-plugins' ) . '</li>';
    125                 echo '<li>' . __( 'Active Installs', 'wporg-plugins' ) . '</li>';
    126                 echo '<li>' . __( 'Plugin Check', 'wporg-plugins' ) . '</li>';
     124                echo '<li>' . esc_html__( 'Trademarked terms', 'wporg-plugins' ) . '</li>';
     125                echo '<li>' . esc_html__( 'Active Installs', 'wporg-plugins' ) . '</li>';
     126                echo '<li>' . esc_html__( 'Plugin Check', 'wporg-plugins' ) . '</li>';
    127127                echo '</ol>';
    128128
    129129                echo '<form method="post">';
    130130                echo '<table class="form-table"><tbody>';
    131                 echo '<tr><th scope="row"><label for="users">' . __( 'User', 'wporg-plugins' ) . '</label></th><td>';
     131                echo '<tr><th scope="row"><label for="users">' . esc_html__( 'User', 'wporg-plugins' ) . '</label></th><td>';
    132132                echo '<input name="user" type="text" id="user" value="' . esc_attr( $username ) . '" class="regular-text">';
    133133                echo '</td></tr>';
    134                 echo '<tr><th scope="row"><label for="expiration">' . __( 'Expiration', 'wporg-plugins' ) . '</label></th><td>';
     134                echo '<tr><th scope="row"><label for="expiration">' . esc_html__( 'Expiration', 'wporg-plugins' ) . '</label></th><td>';
    135135                echo '<input name="expiration" type="datetime-local" id="expiration" value="' . esc_attr( $expiration ) . '" class="regular-text">';
    136136                echo '</td></tr>';
    … …  
    154154                        printf(
    155155                                '<div class="notice inline notice-error"><p>%s</p></div>',
    156                                 __( 'User not found.', 'wporg-plugins' )
     156                                esc_html__( 'User not found.', 'wporg-plugins' )
    157157                        );
    158158                        return;
    … …  
    163163                        printf(
    164164                                '<div class="notice inline notice-error"><p>%s</p></div>',
    165                                 __( 'User already had a valid token, replacing it.', 'wporg-plugins' )
     165                                esc_html__( 'User already had a valid token, replacing it.', 'wporg-plugins' )
    166166                        );
    167167                }
    … …  
    172172                        '<div class="notice inline notice-success"><p>%s</p></div>',
    173173                        sprintf(
    174                                 __( 'Token created. Please provide the author with the following URL: <a href="%1$s">%1$s</a>', 'wporg-plugins' ),
     174                                /* translators: %1$s: Upload URL. */
     175                                wp_kses_post( __( 'Token created. Please provide the author with the following URL: <a href="%1$s">%1$s</a>', 'wporg-plugins' ) ),
    175176                                esc_url(
    176177                                        add_query_arg(
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin.php

    r15133 r15179  
    414414                                $review_author_markup        .= get_avatar( $reviewer->ID, 16, 'monsterid' ) . '</a>';
    415415                                $review_author_markup        .= '<a href="' . $review_author_markup_profile . '" class="reviewer-name">';
    416                                 $review_author_markup        .= $reviewer->display_name;
     416                                $review_author_markup        .= esc_html( $reviewer->display_name );
    417417                                if ( $reviewer->display_name != $reviewer->user_login ) {
    418                                         $review_author_markup .= " <small>({$reviewer->user_login})</small>";
     418                                        $review_author_markup .= ' <small>(' . esc_html( $reviewer->user_login ) . ')</small>';
    419419                                }
    420420                                $review_author_markup .= '</a>';
    421421
    422422                                printf(
    423                                         __( 'By %1$s on %2$s', 'wporg-plugins' ),
     423                                        /* translators: 1: Review author, 2: Review date. */
     424                                        esc_html__( 'By %1$s on %2$s', 'wporg-plugins' ),
    424425                                        $review_author_markup,
    425426                                        '<span class="review-date">' . date_i18n( get_option( 'date_format' ), strtotime( $review->post_modified ) ) . '</span>'
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-block-validator.php

    r15170 r15179  
    2121                <div class="wrap block-validator">
    2222                        <form method="post" action="." class="block-validator__plugin-form">
    23                                 <label for="plugin_url"><?php _e( 'Plugin repo URL', 'wporg-plugins' ); ?></label>
     23                                <label for="plugin_url"><?php esc_html_e( 'Plugin repo URL', 'wporg-plugins' ); ?></label>
    2424                                <div class="block-validator__plugin-input-container">
    2525                                        <input type="text" class="block-validator__plugin-input" id="plugin_url" name="plugin_url" placeholder="https://plugins.svn.wordpress.org/" value="<?php echo esc_attr( $plugin_url ); ?>" />
    … …  
    3838                                <div class="plugin-upload-form-controls">
    3939                                        <input type="file" id="zip_file" class="plugin-file" name="zip_file" size="25" accept=".zip"/>
    40                                         <label id="zip-file-label" for="zip_file"><?php _e( 'Select File', 'wporg-plugins' ); ?></label>
     40                                        <label id="zip-file-label" for="zip_file"><?php esc_html_e( 'Select File', 'wporg-plugins' ); ?></label>
    4141
    4242                                        <div class="wp-block-button is-small">
    … …  
    9292                <?php else : ?>
    9393                <div class="wrap block-validator">
    94                         <p><?php _e( 'Please log in to use the block plugin checker.', 'wporg-plugins' ); ?></p>
     94                        <p><?php esc_html_e( 'Please log in to use the block plugin checker.', 'wporg-plugins' ); ?></p>
    9595                </div>
    9696                <?php endif;
    … …  
    133133                                                self::maybe_send_email_plugin_added( $post );
    134134                                                Plugin_Import::queue( $post->post_name, array( 'tags_touched' => array( $post->stable_tag ) ) );
    135                                                 echo '<div class="notice notice-success notice-alt"><p>' . __( 'Plugin added to the block directory.', 'wporg-plugins' ) . '</p></div>';
     135                                                echo '<div class="notice notice-success notice-alt"><p>' . esc_html__( 'Plugin added to the block directory.', 'wporg-plugins' ) . '</p></div>';
    136136                                        } elseif ( 'remove' === $_POST['block-directory-edit'] ) {
    137137                                                Tools::audit_log( 'Plugin removed from block directory.', $post->ID );
    138                                                 echo '<div class="notice notice-info notice-alt"><p>' . __( 'Plugin removed from the block directory.', 'wporg-plugins' ) . '</p></div>';
     138                                                echo '<div class="notice notice-info notice-alt"><p>' . esc_html__( 'Plugin removed from the block directory.', 'wporg-plugins' ) . '</p></div>';
    139139                                        }
    140140                                }
    … …  
    150150                        if ( current_user_can( 'edit_post', $post->ID ) ) {
    151151                                if ( self::maybe_send_email_block_error( $post ) ) {
    152                                                 echo '<div class="notice notice-success notice-alt"><p>' . __( 'Email sent.', 'wporg-plugins' ) . '</p></div>';
     152                                                echo '<div class="notice notice-success notice-alt"><p>' . esc_html__( 'Email sent.', 'wporg-plugins' ) . '</p></div>';
    153153                                }
    154154                        }
    … …  
    182182                        echo wp_nonce_field( 'block-directory-edit-' . $plugin->ID, 'block-directory-nonce' );
    183183                        // translators: %s plugin title.
    184                         echo '<button class="button button-secondary button-large" type="submit" name="block-directory-edit" value="remove">' . sprintf( __( 'Remove %s from Block Directory', 'wporg-plugins' ), $plugin->post_title ) . '</button>';
     184                        echo '<button class="button button-secondary button-large" type="submit" name="block-directory-edit" value="remove">' . sprintf( esc_html__( 'Remove %s from Block Directory', 'wporg-plugins' ), esc_html( $plugin->post_title ) ) . '</button>';
    185185                } else if ( ! $has_errors ) {
    186186                        echo wp_nonce_field( 'block-directory-edit-' . $plugin->ID, 'block-directory-nonce' );
    187187                        // translators: %s plugin title.
    188                         echo '<button class="button button-primary button-large" type="submit" name="block-directory-edit" value="add">' . sprintf( __( 'Add %s to Block Directory', 'wporg-plugins' ), $plugin->post_title ) . '</button>';
     188                        echo '<button class="button button-primary button-large" type="submit" name="block-directory-edit" value="add">' . sprintf( esc_html__( 'Add %s to Block Directory', 'wporg-plugins' ), esc_html( $plugin->post_title ) ) . '</button>';
    189189                }
    190190
    … …  
    223223        protected static function display_results( $checker ) {
    224224
    225                 echo '<h2>' . __( 'Results', 'wporg-plugins' ) . '</h2>';
     225                echo '<h2>' . esc_html__( 'Results', 'wporg-plugins' ) . '</h2>';
    226226
    227227                $results = $checker->get_results();
    … …  
    231231                        printf(
    232232                                // translators: %1$s is the repo URL, %2$s is a version number.
    233                                 __( 'Results for %1$s revision %2$s', 'wporg-plugins' ),
     233                                esc_html__( 'Results for %1$s revision %2$s', 'wporg-plugins' ),
    234234                                '<code>' . esc_url( $checker->repo_url ) . '</code>',
    235235                                esc_html( $checker->repo_revision )
    … …  
    254254                        ?>
    255255                        <div class="notice notice-error notice-alt">
    256                                 <p><?php _e( 'Some problems were found. They need to be addressed for your plugin to be included in the Block Directory.', 'wporg-plugins' ); ?></p>
     256                                <p><?php esc_html_e( 'Some problems were found. They need to be addressed for your plugin to be included in the Block Directory.', 'wporg-plugins' ); ?></p>
    257257                        </div>
    258258                <?php elseif ( $checker->slug ) : ?>
    259259                        <?php if ( self::plugin_is_in_block_directory( $checker->slug ) ) : ?>
    260260                                <div class="notice notice-info notice-alt">
    261                                         <p><?php _e( 'This plugin is already in the Block Directory.', 'wporg-plugins' ); ?></p>
     261                                        <p><?php esc_html_e( 'This plugin is already in the Block Directory.', 'wporg-plugins' ); ?></p>
    262262                                </div>
    263263                        <?php elseif ( $has_warnings ) : ?>
    264264                                <div class="notice notice-info notice-alt">
    265                                         <p><?php _e( 'You can add your plugin to the Block Directory.', 'wporg-plugins' ); ?></p>
     265                                        <p><?php esc_html_e( 'You can add your plugin to the Block Directory.', 'wporg-plugins' ); ?></p>
    266266                                </div>
    267267                        <?php else : ?>
    268268                                <div class="notice notice-success notice-alt">
    269                                         <p><?php _e( 'No issues were found. You can add your plugin to the Block Directory.', 'wporg-plugins' ); ?></p>
     269                                        <p><?php esc_html_e( 'No issues were found. You can add your plugin to the Block Directory.', 'wporg-plugins' ); ?></p>
    270270                                </div>
    271271                        <?php endif; ?>
    … …  
    275275                                        <?php
    276276                                        printf(
    277                                                 __( 'Your plugin passed the checks, but only plugins hosted on WordPress.org can be added to the Block Directory. <a href="%s">Upload your plugin to the WordPress.org repo,</a> then come back here to add it to the Block Directory.', 'wporg-plugins' ),
     277                                                /* translators: %s: Plugin submission URL. */
     278                                                wp_kses_post( __( 'Your plugin passed the checks, but only plugins hosted on WordPress.org can be added to the Block Directory. <a href="%s">Upload your plugin to the WordPress.org repo,</a> then come back here to add it to the Block Directory.', 'wporg-plugins' ) ),
    278279                                                esc_url( home_url( 'developers' ) )
    279280                                        );
    … …  
    288289                        if ( current_user_can( 'edit_post', $plugin->ID ) ) {
    289290                                // Plugin reviewers etc
    290                                 echo '<h3>' . __( 'Plugin Review Tools', 'wporg-plugins' ) . '</h3>';
     291                                echo '<h3>' . esc_html__( 'Plugin Review Tools', 'wporg-plugins' ) . '</h3>';
    291292
    292293                                echo '<ul>';
    293294                                echo '<li><a href="' . esc_url( (string) get_edit_post_link( $plugin->ID ) ) . '">' . esc_html__( 'Edit plugin', 'wporg-plugins' ) . '</a></li>';
    294                                 echo '<li><a href="' . esc_url( 'https://plugins.trac.wordpress.org/browser/' . $checker->slug . '/trunk' ) . '">' . __( 'Trac browser', 'wporg-plugins' ) . '</a></li>';
     295                                echo '<li><a href="' . esc_url( 'https://plugins.trac.wordpress.org/browser/' . $checker->slug . '/trunk' ) . '">' . esc_html__( 'Trac browser', 'wporg-plugins' ) . '</a></li>';
    295296                                echo '</ul>';
    296297
    … …  
    299300                        } elseif ( current_user_can( 'plugin_admin_edit', $plugin->ID ) ) {
    300301                                // Plugin committers
    301                                 echo '<h3>' . __( 'Committer Tools', 'wporg-plugins' ) . '</h3>';
     302                                echo '<h3>' . esc_html__( 'Committer Tools', 'wporg-plugins' ) . '</h3>';
    302303                                echo '<ul>';
    303                                 echo '<li><a href="' . esc_url( 'https://plugins.trac.wordpress.org/browser/' . $checker->slug . '/trunk' ) . '">' . __( 'Browse code on trac', 'wporg-plugins' ) . '</a></li>';
     304                                echo '<li><a href="' . esc_url( 'https://plugins.trac.wordpress.org/browser/' . $checker->slug . '/trunk' ) . '">' . esc_html__( 'Browse code on trac', 'wporg-plugins' ) . '</a></li>';
    304305                                echo '</ul>';
    305306
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-readme-validator.php

    r15145 r15179  
    6262                        </form>
    6363
    64                         <p><?php _e( '... or paste your <code>readme.txt</code> here:', 'wporg-plugins' ); ?></p>
     64                        <p><?php echo wp_kses_post( __( '... or paste your <code>readme.txt</code> here:', 'wporg-plugins' ) ); ?></p>
    6565                                <textarea rows="20" cols="100" name="readme_visible" placeholder="=== Plugin Name ==="><?php echo esc_textarea( $readme_contents ); ?></textarea>
    6666                                <form id="readme-data" method="post" action="">
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-release-confirmation.php

    r15170 r15179  
    7777                                '<div class="plugin-notice notice notice-error notice-alt"><p>%s</p></div>',
    7878                                sprintf(
    79                                         __( 'Your account has elevated privileges and requires extra security before you can manage plugin releases. Please <a href="%s">enable two-factor authentication now</a>.', 'wporg-plugins' ),
     79                                        /* translators: %s: Two-factor authentication setup URL. */
     80                                        wp_kses_post( __( 'Your account has elevated privileges and requires extra security before you can manage plugin releases. Please <a href="%s">enable two-factor authentication now</a>.', 'wporg-plugins' ) ),
    8081                                        esc_url( get_2fa_onboarding_url() )
    8182                                )
    … …  
    8384                }
    8485
    85                 echo '<p>' . __( 'This page is for authorized committers to view and manage releases of their plugins. Plugins with confirmations enabled require an extra action on this page to approve each new release.', 'wporg-plugins' ) . '</p>';
     86                echo '<p>' . esc_html__( 'This page is for authorized committers to view and manage releases of their plugins. Plugins with confirmations enabled require an extra action on this page to approve each new release.', 'wporg-plugins' ) . '</p>';
    8687
    8788                /* translators: %s: plugins@wordpress.org */
    88                 echo '<p>' . sprintf( __( 'Release confirmations can be enabled on the Advanced view of plugin pages. If you need to disable release confirmations for a plugin, please contact %s.', 'wporg-plugins' ), 'plugins@wordpress.org' ) . '</p>';
     89                echo '<p>' . sprintf( esc_html__( 'Release confirmations can be enabled on the Advanced view of plugin pages. If you need to disable release confirmations for a plugin, please contact %s.', 'wporg-plugins' ), 'plugins@wordpress.org' ) . '</p>';
    8990
    9091                $not_enabled = [];
    … …  
    9495                                esc_attr( $plugin->post_name ),
    9596                                esc_url( get_permalink( $plugin ) ),
    96                                 get_the_title( $plugin )
     97                                esc_html( get_the_title( $plugin ) )
    9798                        );
    9899
    … …  
    106107                if ( $not_enabled ) {
    107108                        printf(
    108                                 '<p><em>' . __( 'The following plugins do not have release confirmations enabled: %s', 'wporg-plugins') . '</em></p>',
     109                                /* translators: %s: List of plugin links. */
     110                                '<p><em>' . esc_html__( 'The following plugins do not have release confirmations enabled: %s', 'wporg-plugins' ) . '</em></p>',
    109111                                wp_sprintf_l( '%l', array_filter( array_map( function( $plugin ) {
    110112                                        if ( 'publish' == get_post_status( $plugin ) ) {
    111113                                                return sprintf(
    112114                                                        '<a href="%s">%s</a>',
    113                                                         get_permalink( $plugin ),
    114                                                         get_the_title( $plugin )
     115                                                        esc_url( get_permalink( $plugin ) ),
     116                                                        esc_html( get_the_title( $plugin ) )
    115117                                                );
    116118                                        }
    … …  
    135137                <thead>
    136138                        <tr>
    137                                 <th>' . _x( 'Release', 'Releases Table header', 'wporg-plugins' ) . '</th>
     139                                <th>' . esc_html_x( 'Release', 'Releases Table header', 'wporg-plugins' ) . '</th>
    138140                                <th>&nbsp;</th>
    139141                </thead>';
    140142
    141143                if ( ! $releases ) {
    142                         echo '<tr class="no-items"><td colspan="5"><em>' . __( 'No releases.', 'wporg-plugins' ) . '</em></td></tr>';
     144                        echo '<tr class="no-items"><td colspan="5"><em>' . esc_html__( 'No releases.', 'wporg-plugins' ) . '</em></td></tr>';
    143145                }
    144146
    … …  
    166168                                </tr>',
    167169                                sprintf(
    168                                         __( 'Version %s', 'wporg-plugins' ),
     170                                        /* translators: %s: Version number, linked. */
     171                                        esc_html__( 'Version %s', 'wporg-plugins' ),
    169172                                        sprintf(
    170173                                                '<a href="%s">%s</a>',
    … …  
    179182                                sprintf(
    180183                                        /* translators: 1: time eg. '3 hours ago', 2: the committer(s). */
    181                                         __( 'Released %1$s by %2$s', 'wporg-plugins' ),
     184                                        esc_html__( 'Released %1$s by %2$s', 'wporg-plugins' ),
    182185                                        sprintf(
    183186                                                '<span title="%s">%s</span>',
    … …  
    214217
    215218                if ( ! $data['confirmations_required'] ) {
    216                         _e( 'Release did not require confirmation.', 'wporg-plugins' );
     219                        esc_html_e( 'Release did not require confirmation.', 'wporg-plugins' );
    217220                } else if ( ! empty( $data['discarded'] ) ) {
    218                         _e( 'Release discarded.', 'wporg-plugins' );
     221                        esc_html_e( 'Release discarded.', 'wporg-plugins' );
    219222                } elseif ( $data['confirmed'] && ! $data['zips_built'] ) {
    220                         _e( 'Release confirmed, waiting for processing.', 'wporg-plugins' );
     223                        esc_html_e( 'Release confirmed, waiting for processing.', 'wporg-plugins' );
    221224                } else if ( $data['confirmed'] ) {
    222                         _e( 'Release confirmed.', 'wporg-plugins' );
     225                        esc_html_e( 'Release confirmed.', 'wporg-plugins' );
    223226                } else if ( 1 == $data['confirmations_required'] ) {
    224                         _e( 'Waiting for confirmation.', 'wporg-plugins' );
     227                        esc_html_e( 'Waiting for confirmation.', 'wporg-plugins' );
    225228                } else {
    226229                        printf(
    227                                 __( '%s of %s required confirmations.', 'wporg-plugins' ),
     230                                /* translators: 1: Number of confirmations, 2: Number of required confirmations. */
     231                                esc_html__( '%1$s of %2$s required confirmations.', 'wporg-plugins' ),
    228232                                number_format_i18n( count( $data['confirmations'] ) ),
    229233                                number_format_i18n( $plugin->release_confirmation )
    … …  
    263267                                esc_attr( gmdate( 'Y-m-d H:i:s', $data['discarded']['time'] ) ),
    264268                                sprintf(
    265                                         __( 'Discarded by %1$s, %2$s ago.', 'wporg-plugins' ),
    266                                         $user->display_name ?: $user->user_login,
     269                                        /* translators: 1: User name, 2: Time since the release was discarded. */
     270                                        esc_html__( 'Discarded by %1$s, %2$s ago.', 'wporg-plugins' ),
     271                                        esc_html( $user->display_name ?: $user->user_login ),
    267272                                        human_time_diff( $data['discarded']['time'] )
    268273                                )
    … …  
    274279                        printf(
    275280                                '<span>%s</span><br>',
    276                                 __( 'The ZIP files for this release have not yet been built by WordPress.org.', 'wporg-plugins' )
     281                                esc_html__( 'The ZIP files for this release have not yet been built by WordPress.org.', 'wporg-plugins' )
    277282                        );
    278283                }
    … …  
    440445                ob_start();
    441446                echo '<div class="release-strategy">';
    442                 echo '<h3>' . __( 'Rollout Strategy', 'wporg-plugins' ) . '</h3>';
     447                echo '<h3>' . esc_html__( 'Rollout Strategy', 'wporg-plugins' ) . '</h3>';
    443448
    444449                echo '<select
    … …  
    592597                        '<div class="plugin-notice notice notice-info notice-alt"><p>%s</p></div>',
    593598                        sprintf(
    594                                 __( 'This plugin has <a href="%s">a pending release that requires confirmation</a>.', 'wporg-plugins' ),
     599                                /* translators: %s: Releases page URL. */
     600                                wp_kses_post( __( 'This plugin has <a href="%s">a pending release that requires confirmation</a>.', 'wporg-plugins' ) ),
    595601                                esc_url( home_url( '/developers/releases/' ) ) // TODO: Hardcoded URL.
    596602                        )
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-reviews.php

    r12250 r15179  
    5555                                                                <span class="review-date"><?php echo date_i18n( get_option( 'date_format' ), strtotime( $review->post_modified ) ); ?></span>
    5656                                                                <?php if ( $reply_count ) : ?>
    57                                                                 <span class="review-replies"><?php printf( _n( '%s reply', '%s replies', $reply_count, 'wporg-plugins' ), number_format_i18n( $reply_count ) ); ?></span>
     57                                                                <span class="review-replies"><?php /* translators: %s: Number of replies. */ printf( esc_html( _n( '%s reply', '%s replies', $reply_count, 'wporg-plugins' ) ), esc_html( number_format_i18n( $reply_count ) ) ); ?></span>
    5858                                                                <?php endif; ?>
    5959                                                        </div>
    … …  
    7676                        <?php
    7777                                /* translators: %s: number of reviews */
    78                                 printf( _n( 'Read all %s review', 'Read all %s reviews', $review_count, 'wporg-plugins' ), number_format_i18n( $review_count ) );
     78                                printf( esc_html( _n( 'Read all %s review', 'Read all %s reviews', $review_count, 'wporg-plugins' ) ), esc_html( number_format_i18n( $review_count ) ) );
    7979                        ?>
    8080                </a>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload.php

    r14979 r15179  
    179179                                        // If the queue is currently beyond 10 days, display a warning to that effect.
    180180                                        if ( $queue_length_in_days >= 10 ) {
    181                                                 echo ' ' . __( 'The review queue is currently longer than normal, we apologize for the delays and ask for patience.', 'wporg-plugins' );
     181                                                echo ' ' . esc_html__( 'The review queue is currently longer than normal, we apologize for the delays and ask for patience.', 'wporg-plugins' );
    182182                                        }
    183183                                }
    … …  
    230230
    231231                                        <p>
    232                                                 <?php _e( 'Please review the Plugin Check results for your plugin, and fix any significant problems. This will help streamline the preview process and reduce delays by ensuring your plugin already meets the required standards when the Plugins Team examines it.', 'wporg-plugins' ); ?>
     232                                                <?php esc_html_e( 'Please review the Plugin Check results for your plugin, and fix any significant problems. This will help streamline the preview process and reduce delays by ensuring your plugin already meets the required standards when the Plugins Team examines it.', 'wporg-plugins' ); ?>
    233233                                        </p>
    234234
    … …  
    245245                                                                '<div class="plugin-submission-submited-date">%s</div>',
    246246                                                                sprintf(
    247                                                                         __( 'Submitted on: %s', 'wporg-plugins' ),
     247                                                                        /* translators: %s: Submission date. */
     248                                                                        esc_html__( 'Submitted on: %s', 'wporg-plugins' ),
    248249                                                                        esc_html( wp_date( get_option( 'date_format' ), strtotime( $plugin->post_date_gmt ) ) )
    249250                                                                )
    … …  
    252253                                                                '<div class="plugin-submission-status">%s</div>',
    253254                                                                sprintf(
    254                                                                         __( 'Review status: %s', 'wporg-plugins' ),
     255                                                                        /* translators: %s: Review status. */
     256                                                                        esc_html__( 'Review status: %s', 'wporg-plugins' ),
    255257                                                                        $plugin->status
    256258                                                                )
    … …  
    265267                                                                        '<div class="plugin-submission-email">✉️✔️ %s</div>',
    266268                                                                        sprintf(
    267                                                                                 __( 'Our team emailed you on <strong>%s</strong> regarding your submission. The subject line is: "<strong>%s</strong>".', 'wporg-plugins' ),
     269                                                                                /* translators: 1: Email date, 2: Email subject. */
     270                                                                                wp_kses_post( __( 'Our team emailed you on <strong>%1$s</strong> regarding your submission. The subject line is: "<strong>%2$s</strong>".', 'wporg-plugins' ) ),
    268271                                                                                esc_html( wp_date( get_option( 'date_format' ), strtotime( $plugin->review_email->created ) ) ),
    269272                                                                                esc_html( $plugin->review_email->subject )
    … …  
    278281                                                                        '<div class="plugin-submission-email">✉️⏳ %s</div>',
    279282                                                                        sprintf(
    280                                                                                 __( 'Please be patient and wait for the review email. It will be sent to your email address, <strong>%s</strong>, with the subject line: "<strong>%s</strong>".', 'wporg-plugins' ),
     283                                                                                /* translators: 1: Email address, 2: Email subject. */
     284                                                                                wp_kses_post( __( 'Please be patient and wait for the review email. It will be sent to your email address, <strong>%1$s</strong>, with the subject line: "<strong>%2$s</strong>".', 'wporg-plugins' ) ),
    281285                                                                                esc_html( get_userdata( $plugin->post_author )->user_email ),
    282                                                                                 '[WordPress Plugin Directory] Review in Progress: ' . $plugin->post_title
     286                                                                                '[WordPress Plugin Directory] Review in Progress: ' . esc_html( $plugin->post_title )
    283287                                                                        )
    284288                                                                );
    … …  
    289293                                                        echo '<div class="plugin-submission-assigned-slug">';
    290294                                                        printf(
    291                                                                 __( 'Current assigned slug: %s', 'wporg-plugins' ),
     295                                                                /* translators: %s: Plugin slug. */
     296                                                                esc_html__( 'Current assigned slug: %s', 'wporg-plugins' ),
    292297                                                                '<code>' . esc_html( $plugin->post_name ) . '</code>'
    293298                                                        );
    294299                                                        ?>
    295300                                                        <?php if ( $can_change_slug ) : ?>
    296                                                                 <a href="#" class="hide-if-no-js" onclick="event.preventDefault(); this.nextElementSibling.showModal()"><?php _e( 'change', 'wporg-plugins' ); ?></a>
     301                                                                <a href="#" class="hide-if-no-js" onclick="event.preventDefault(); this.nextElementSibling.showModal()"><?php esc_html_e( 'change', 'wporg-plugins' ); ?></a>
    297302                                                                <dialog class="slug-change hide-if-no-js">
    298303                                                                        <a onclick="this.parentNode.close()" class="close dashicons dashicons-no-alt"></a>
    299                                                                         <strong><?php _e( 'Request to change your plugin slug', 'wporg-plugins' ); ?></strong>
     304                                                                        <strong><?php esc_html_e( 'Request to change your plugin slug', 'wporg-plugins' ); ?></strong>
    300305                                                                        <form>
    301306                                                                                <input type="hidden" name="action" value="request-slug-change" />
    … …  
    303308
    304309                                                                                <div class="notice notice-info notice-alt">
    305                                                                                         <p><?php _e( 'Your chosen slug cannot be guaranteed, and is subject to change based on the results of your review.', 'wporg-plugins' ); ?></p>
     310                                                                                        <p><?php esc_html_e( 'Your chosen slug cannot be guaranteed, and is subject to change based on the results of your review.', 'wporg-plugins' ); ?></p>
    306311                                                                                        <p><?php
    307312                                                                                                printf(
    308313                                                                                                        /* Translators: URL */
    309                                                                                                         __( "Your slug is used to generate your plugins URL. Currently it's %s", 'wporg-plugins' ),
     314                                                                                                        esc_html__( 'Your slug is used to generate your plugins URL. Currently it&#8217;s %s', 'wporg-plugins' ),
    310315                                                                                                        '<code>' . esc_url( home_url( $plugin->post_name ) . '/' ) . '</code>'
    311316                                                                                                );
    312317                                                                                        ?></p>
    313                                                                                         <p><?php _e( 'Your slug (aka permalink) cannot be changed once your review is completed. Please choose carefully.', 'wporg-plugins' ); ?></p>
     318                                                                                        <p><?php esc_html_e( 'Your slug (aka permalink) cannot be changed once your review is completed. Please choose carefully.', 'wporg-plugins' ); ?></p>
    314319                                                                                </div>
    315320                                                                                <div class="notice notice-error notice-alt hidden"><p></p></div>
    316321                                                                                <p>
    317322                                                                                        <label>
    318                                                                                                 <strong><?php _e( 'Plugin Name', 'wporg-plugins' ); ?></strong><br>
     323                                                                                                <strong><?php esc_html_e( 'Plugin Name', 'wporg-plugins' ); ?></strong><br>
    319324                                                                                                <?php echo esc_html( $plugin->post_title ); ?>
    320325                                                                                        </label>
    … …  
    322327                                                                                <p>
    323328                                                                                        <label>
    324                                                                                                 <strong><?php _e( 'Desired Slug', 'wporg-plugins' ); ?></strong><br>
     329                                                                                                <strong><?php esc_html_e( 'Desired Slug', 'wporg-plugins' ); ?></strong><br>
    325330                                                                                                <input type="text" name="post_name" required maxlength="200" pattern="[a-z0-9-]*" value="<?php echo esc_attr( $plugin->post_name ); ?>" />
    326331                                                                                        </label>
    … …  
    333338                                                                                                        printf(
    334339                                                                                                                /* Translators: URL to plugin guidelines */
    335                                                                                                                 __( 'I confirm that my slug choice <a href="%s">meets the guidelines for plugin slugs</a>.', 'wporg-plugins' ),
     340                                                                                                                wp_kses_post( __( 'I confirm that my slug choice <a href="%s">meets the guidelines for plugin slugs</a>.', 'wporg-plugins' ) ),
    336341                                                                                                                'https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/#17-plugins-must-respect-trademarks-copyrights-and-project-names'
    337342                                                                                                        );
    … …  
    361366                                                        if ( $can_upload_extras ) {
    362367                                                                echo '<div class="plugin-submission-update-code wp-block-button is-small">';
    363                                                                 echo '<a href="#" class="show-upload-additional hide-if-no-js wp-block-button__link">' . sprintf( __( 'Upload updated "%s" plugin for review.', 'wporg-plugins' ), esc_html( $plugin->post_title ) ) . '</a>';
     368                                                                /* translators: %s: Plugin name. */
     369                                                                echo '<a href="#" class="show-upload-additional hide-if-no-js wp-block-button__link">' . sprintf( esc_html__( 'Upload updated "%s" plugin for review.', 'wporg-plugins' ), esc_html( $plugin->post_title ) ) . '</a>';
    364370
    365371                                                                ?>
    … …  
    370376
    371377                                                                        <label>
    372                                                                                 <?php _e( 'Additional Information', 'wporg-plugins' ); ?><br>
     378                                                                <?php esc_html_e( 'Additional Information', 'wporg-plugins' ); ?><br>
    373379                                                                                <textarea name="comment" rows="3" cols="80"></textarea>
    374380                                                                        </label>
    … …  
    377383                                                                        <label class="wp-block-button__link zip-file">
    378384                                                                                <input type="file" class="plugin-file" name="zip_file" size="25" accept=".zip" required data-maxbytes="<?php echo esc_attr( wp_max_upload_size() ); ?>" />
    379                                                                                 <span><?php _e( 'Select File', 'wporg-plugins' ); ?></span>
     385                                                                                <span><?php esc_html_e( 'Select File', 'wporg-plugins' ); ?></span>
    380386                                                                        </label>
    381387
    … …  
    387393
    388394                                                        echo '<div class="plugin-submission-submitted-files">';
    389                                                         echo '<strong>' . __( 'Submitted files:', 'wporg-plugins' ) . '</strong>';
     395                                                        echo '<strong>' . esc_html__( 'Submitted files:', 'wporg-plugins' ) . '</strong>';
    390396                                                        foreach ( $attached_media as $attachment_post_id => $upload ) {
    391397                                                                echo '<div class="plugin-submission-file">';
    … …  
    420426                                                                                esc_url( Template::preview_link_zip( $plugin->post_name, $upload->ID, 'pcp' ) ),
    421427                                                                                'wp-block-button__link',
    422                                                                                 __( 'Check with Plugin Check', 'wporg-plugins' )
     428                                                                                esc_html__( 'Check with Plugin Check', 'wporg-plugins' )
    423429                                                                        );
    424430                                                                }
    … …  
    441447                                '<div class="notice notice-error notice-alt"><p>%s</p></div>',
    442448                                sprintf(
    443                                         __( 'New plugin submissions are currently disabled. Please check back after the <a href="%s">holiday break.</a>', 'wporg-plugins' ),
     449                                        /* translators: %s: Holiday break announcement URL. */
     450                                        wp_kses_post( __( 'New plugin submissions are currently disabled. Please check back after the <a href="%s">holiday break.</a>', 'wporg-plugins' ) ),
    444451                                        'https://wordpress.org/news/2024/12/holiday-break/'
    445452                                )
    … …  
    449456                                sprintf(
    450457                                        /* translators: %s: Profile edit url. */
    451                                         __( 'Your email host has email deliverability problems. Please <a href="%s">Update your email address</a> first.', 'wporg-plugins'),
     458                                        wp_kses_post( __( 'Your email host has email deliverability problems. Please <a href="%s">Update your email address</a> first.', 'wporg-plugins' ) ),
    452459                                        esc_url( 'https://wordpress.org/support/users/' . wp_get_current_user()->user_nicename . '/edit' )
    453460                                        ) .
    … …  
    615622                                <label class="wp-block-button__link zip-file">
    616623                                        <input type="file" class="plugin-file" name="zip_file" size="25" accept=".zip" required data-maxbytes="<?php echo esc_attr( wp_max_upload_size() ); ?>" />
    617                                         <span><?php _e( 'Select File', 'wporg-plugins' ); ?></span>
     624                                        <span><?php esc_html_e( 'Select File', 'wporg-plugins' ); ?></span>
    618625                                </label>
    619626
    … …  
    632639                                <p>
    633640                                        <label>
    634                                                 <?php _e( 'Additional Information', 'wporg-plugins' ); ?><br>
     641                                                <?php esc_html_e( 'Additional Information', 'wporg-plugins' ); ?><br>
    635642                                                <textarea name="comment" rows="3" cols="80"><?php
    636643                                                        if ( ! empty( $_REQUEST['comment'] ) ) {
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-adopt-me.php

    r8641 r15179  
    3737                        <div>
    3838                                <p>
    39                                         <?php _e( 'This plugin is seeking new, active, developers. Are you interested in assuming that responsibility?', 'wporg-plugins' ); ?></p>
     39                                        <?php esc_html_e( 'This plugin is seeking new, active, developers. Are you interested in assuming that responsibility?', 'wporg-plugins' ); ?></p>
    4040                                <p>
    41                                         <a class="button" href="https://developer.wordpress.org/plugins/wordpress-org/take-over-an-existing-plugin/"><?php _e( 'Read more', 'wporg-plugins' ); ?></a>
     41                                        <a class="button" href="https://developer.wordpress.org/plugins/wordpress-org/take-over-an-existing-plugin/"><?php esc_html_e( 'Read more', 'wporg-plugins' ); ?></a>
    4242                                </p>
    4343                        </div>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-committers.php

    r14915 r15179  
    6262                                        <small>
    6363                                                <?php echo current_user_can( 'plugin_review' ) ? esc_html( $committer->user_email ) . ' ' : ''; ?>
    64                                                 <button class="button-link remove"><?php _e( 'Remove', 'wporg-plugins' ); ?></button>
     64                                                <button class="button-link remove"><?php esc_html_e( 'Remove', 'wporg-plugins' ); ?></button>
    6565                                        </small>
    6666                                        <?php endif; ?>
    … …  
    8585                                                                <span class="email">{{ data.email }}</span>
    8686                                                        <# } #>
    87                                                         <button class="button-link remove"><?php _e( 'Remove', 'wporg-plugins' ); ?></button>
     87                                                        <button class="button-link remove"><?php esc_html_e( 'Remove', 'wporg-plugins' ); ?></button>
    8888                                                </small>
    8989                                        </li>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-donate.php

    r13617 r15179  
    3535                        ?>
    3636
    37                         <p class="aside"><?php _e( 'Would you like to support the advancement of this plugin?', 'wporg-plugins' ); ?></p>
     37                        <p class="aside"><?php esc_html_e( 'Would you like to support the advancement of this plugin?', 'wporg-plugins' ); ?></p>
    3838                        <p>
    3939                                <a href="<?php echo esc_url( $donate_link ); ?>" rel="nofollow ugc">
    40                                         <?php _e( 'Donate to this plugin', 'wporg-plugins' ); ?>
     40                                        <?php esc_html_e( 'Donate to this plugin', 'wporg-plugins' ); ?>
    4141                                </a>
    4242                        </p>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-meta.php

    r15170 r15179  
    4242                                        printf(
    4343                                                /* translators: %s: term list */
    44                                                 __( 'Designed to work with: %s', 'wporg-plugins' ),
     44                                                esc_html__( 'Designed to work with: %s', 'wporg-plugins' ),
    4545                                                esc_html( $built_for )
    4646                                        );
    … …  
    5353                                printf(
    5454                                        /* translators: %s: version number */
    55                                         __( 'Version %s', 'wporg-plugins' ),
     55                                        esc_html__( 'Version %s', 'wporg-plugins' ),
    5656                                        '<strong>' . esc_html( get_post_meta( $post->ID, 'version', true ) ) . '</strong>'
    5757                                );
    … …  
    7272                                printf(
    7373                                        /* translators: %s: time since the last update */
    74                                         __( 'Last updated %s', 'wporg-plugins' ),
     74                                        esc_html__( 'Last updated %s', 'wporg-plugins' ),
    7575                                        /* translators: %s: time since the last update */
    7676                                        '<strong>' . wp_kses( sprintf( __( '%s ago', 'wporg-plugins' ), '<span>' . human_time_diff( $last_updated ) . '</span>' ), array( 'span' => true ) ) . '</strong>'
    … …  
    8282                                printf(
    8383                                        /* translators: %s: active installations count */
    84                                         __( 'Active installations %s', 'wporg-plugins' ),
     84                                        esc_html__( 'Active installations %s', 'wporg-plugins' ),
    8585                                        '<strong>' . esc_html( Template::active_installs( false ) ) . '</strong>'
    8686                                );
    … …  
    108108                                        printf(
    109109                                                /* translators: %s: version number */
    110                                                 __( 'Tested up to %s', 'wporg-plugins' ),
     110                                                esc_html__( 'Tested up to %s', 'wporg-plugins' ),
    111111                                                '<strong>' . esc_html( $tested_up_to ) . '</strong>'
    112112                                        );
    … …  
    151151                                                        printf(
    152152                                                                /* translators: %s: Number of available languages */
    153                                                                 _nx( 'See all %s', 'See all %s', $available_languages_count, 'languages', 'wporg-plugins' ),
     153                                                                esc_html( _nx( 'See all %s', 'See all %s', $available_languages_count, 'languages', 'wporg-plugins' ) ),
    154154                                                                $available_languages_count
    155155                                                        );
    … …  
    160160
    161161                                                        <button type="button" class="button-link popover-close" aria-label="<?php esc_attr_e( 'Close this popover', 'wporg-plugins' ); ?>">
    162                                                                 <?php _e( 'Close', 'wporg-plugins' ); ?>
     162                                                                <?php esc_html_e( 'Close', 'wporg-plugins' ); ?>
    163163                                                        </button>
    164164
    … …  
    170170                                                                                '<a href="%s">%s</a>',
    171171                                                                                esc_url( 'https://translate.wordpress.org/projects/wp-plugins/' . $post->post_name ),
    172                                                                                 __( 'Translate into your language', 'wporg-plugins' )
     172                                                                                esc_html__( 'Translate into your language', 'wporg-plugins' )
    173173                                                                        );
    174174                                                                ?>
    … …  
    211211                                        printf(
    212212                                                /* translators: %s: tag list */
    213                                                 _n( 'Tag %s', 'Tags %s', count( $term_links ), 'wporg-plugins' ),
     213                                                esc_html( _n( 'Tag %s', 'Tags %s', count( $term_links ), 'wporg-plugins' ) ),
    214214                                                '<div class="tags">' . wp_kses_post( implode( $term_links ) ) . '</div>'
    215215                                        );
    … …  
    224224                                                '<a class="plugin-admin" href="%s">%s</a>',
    225225                                                esc_url( get_permalink() . 'advanced/' ),
    226                                                 __( 'Advanced View', 'wporg-plugins' )
     226                                                esc_html__( 'Advanced View', 'wporg-plugins' )
    227227                                        );
    228228                                        ?>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-support-reps.php

    r14915 r15179  
    6666                                        <small>
    6767                                                <?php echo current_user_can( 'plugin_review' ) ? esc_html( $support_rep->user_email ) . ' ' : ''; ?>
    68                                                 <button class="button-link remove"><?php _e( 'Remove', 'wporg-plugins' ); ?></button>
     68                                                <button class="button-link remove"><?php esc_html_e( 'Remove', 'wporg-plugins' ); ?></button>
    6969                                        </small>
    7070                                        <?php endif; ?>
    … …  
    8989                                                                <span class="email">{{ data.email }}</span>
    9090                                                        <# } #>
    91                                                         <button class="button-link remove"><?php _e( 'Remove', 'wporg-plugins' ); ?></button>
     91                                                        <button class="button-link remove"><?php esc_html_e( 'Remove', 'wporg-plugins' ); ?></button>
    9292                                                </small>
    9393                                        </li>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-support.php

    r13617 r15179  
    4545                if ( $resolutions ) :
    4646                ?>
    47                         <p class="aside"><?php _e( 'Issues resolved in last two months:', 'wporg-plugins' ); ?></p>
     47                        <p class="aside"><?php esc_html_e( 'Issues resolved in last two months:', 'wporg-plugins' ); ?></p>
    4848                        <p class="counter-container">
    4949                                <span class="counter-back">
    … …  
    5353                                        <?php
    5454                                        /* Translators: 1: Amount of resolved threads; 2: Amount of total threads; */
    55                                         printf( __( '%1$s out of %2$s', 'wporg-plugins' ), $resolved, $threads );
     55                                        printf( esc_html__( '%1$s out of %2$s', 'wporg-plugins' ), (int) $resolved, (int) $threads );
    5656                                        ?>
    5757                                </span>
    … …  
    5959
    6060                <?php else : ?>
    61                         <p><?php _e( 'Got something to say? Need help?', 'wporg-plugins' ); ?></p>
     61                        <p><?php esc_html_e( 'Got something to say? Need help?', 'wporg-plugins' ); ?></p>
    6262                <?php endif; ?>
    6363
    6464                <p>
    65                         <a href="<?php echo esc_url( $support_url ); ?>"><?php _e( 'View support forum', 'wporg-plugins' ); ?></a>
     65                        <a href="<?php echo esc_url( $support_url ); ?>"><?php esc_html_e( 'View support forum', 'wporg-plugins' ); ?></a>
    6666                </p>
    6767
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/rosetta/inc/admin/network/class-locale-associations-view.php

    r9838 r15179  
    3838                <div class="wrap">
    3939                        <h1><?php echo esc_html( $this->get_title() ); ?></h1>
    40                         <p><?php _e( 'Manage the locale association for localized sites. Without an association the site&#8217;s front end is not available.', 'rosetta' ); ?></p>
    41                         <p><a href="#add-new-associations"><?php _e( 'Add New Association', 'rosetta' ); ?></a> | <a  href="#existing-associations"><?php _e( 'Existing Associations', 'rosetta' ); ?></a> | <a href="#sites-without-locale-association"><?php _e( 'Sites Without Locale Association', 'rosetta' ); ?></a></p>
     40                        <p><?php esc_html_e( 'Manage the locale association for localized sites. Without an association the site&#8217;s front end is not available.', 'rosetta' ); ?></p>
     41                        <p><a href="#add-new-associations"><?php esc_html_e( 'Add New Association', 'rosetta' ); ?></a> | <a  href="#existing-associations"><?php esc_html_e( 'Existing Associations', 'rosetta' ); ?></a> | <a href="#sites-without-locale-association"><?php esc_html_e( 'Sites Without Locale Association', 'rosetta' ); ?></a></p>
    4242                        <hr/>
    4343                        <?php
    … …  
    7171                                printf(
    7272                                        '<div class="notice notice-error"><p>%s</p></div>',
    73                                         __( 'An error occurred. Please try again.', 'rosetta' )
     73                                        esc_html__( 'An error occurred. Please try again.', 'rosetta' )
    7474                                );
    7575                                break;
    … …  
    7777                                printf(
    7878                                        '<div class="notice notice-error"><p>%s</p></div>',
    79                                         __( 'Please provide a locale and a subdomain.', 'rosetta' )
     79                                        esc_html__( 'Please provide a locale and a subdomain.', 'rosetta' )
    8080                                );
    8181                                break;
    … …  
    8383                                printf(
    8484                                        '<div class="notice notice-error"><p>%s</p></div>',
    85                                         __( 'The locale does not exist yet.', 'rosetta' )
     85                                        esc_html__( 'The locale does not exist yet.', 'rosetta' )
    8686                                );
    8787                                break;
    … …  
    8989                                printf(
    9090                                        '<div class="notice notice-success"><p>%s</p></div>',
    91                                         __( 'The new association has been added.', 'rosetta' )
     91                                        esc_html__( 'The new association has been added.', 'rosetta' )
    9292                                );
    9393                                break;
    … …  
    9595                                printf(
    9696                                        '<div class="notice notice-error"><p>%s</p></div>',
    97                                         __( 'The ID of the association is missing. Please try again.', 'rosetta' )
     97                                        esc_html__( 'The ID of the association is missing. Please try again.', 'rosetta' )
    9898                                );
    9999                                break;
    … …  
    101101                                printf(
    102102                                        '<div class="notice notice-success"><p>%s</p></div>',
    103                                         __( 'The association has been deleted.', 'rosetta' )
     103                                        esc_html__( 'The association has been deleted.', 'rosetta' )
    104104                                );
    105105                                break;
    … …  
    112112        private function render_form() {
    113113                ?>
    114                 <h2 id="add-new-associations"><?php _e( 'Add New Association', 'rosetta' ); ?> <a href="#wpbody-content"><small>&uarr;</small></a></h2>
     114                <h2 id="add-new-associations"><?php esc_html_e( 'Add New Association', 'rosetta' ); ?> <a href="#wpbody-content"><small>&uarr;</small></a></h2>
    115115                <form action="" method="post">
    116116                        <?php wp_nonce_field( 'add-association' ); ?>
    … …  
    118118
    119119                        <p>
    120                                 <label for="locale"><?php _e( 'Locale:', 'rosetta' ); ?></label>
     120                                <label for="locale"><?php esc_html_e( 'Locale:', 'rosetta' ); ?></label>
    121121                                <select id="locale" name="locale" required>
    122                                         <option value=""><?php _e( '&mdash; Select &mdash;', 'rosetta' ); ?></option>
     122                                        <option value=""><?php esc_html_e( '&mdash; Select &mdash;', 'rosetta' ); ?></option>
    123123                                        <?php
    124124                                        foreach ( $this->page->get_available_wp_locales() as $locale ) {
    … …  
    132132                                </select>
    133133
    134                                 <label for="subdomain"><?php _e( 'Subdomain:', 'rosetta' ); ?></label>
     134                                <label for="subdomain"><?php esc_html_e( 'Subdomain:', 'rosetta' ); ?></label>
    135135                                <input type="text" id="subdomain" name="subdomain" class="code" required />
    136136                        </p>
    … …  
    148148        private function render_table() {
    149149                ?>
    150                 <h2 id="existing-associations"><?php _e( 'Existing Associations', 'rosetta' ); ?> <a href="#wpbody-content"><small>&uarr;</small></a></h2>
     150                <h2 id="existing-associations"><?php esc_html_e( 'Existing Associations', 'rosetta' ); ?> <a href="#wpbody-content"><small>&uarr;</small></a></h2>
    151151                <table class="widefat striped">
    152152                        <thead>
    153153                                <tr>
    154                                         <th><?php _e( 'Locale', 'rosetta' ); ?></th>
    155                                         <th><?php _e( 'Subdomain', 'rosetta' ); ?></th>
    156                                         <th><?php _e( 'Sites', 'rosetta' ); ?></th>
    157                                         <th><?php _e( 'Latest Release', 'rosetta' ); ?></th>
     154                                        <th><?php esc_html_e( 'Locale', 'rosetta' ); ?></th>
     155                                        <th><?php esc_html_e( 'Subdomain', 'rosetta' ); ?></th>
     156                                        <th><?php esc_html_e( 'Sites', 'rosetta' ); ?></th>
     157                                        <th><?php esc_html_e( 'Latest Release', 'rosetta' ); ?></th>
    158158                                        <th>&mdash;</th>
    159159                                </tr>
    … …  
    208208        public function render_sites_without_locale() {
    209209                ?>
    210                 <h2 id="sites-without-locale-association"><?php _e( 'Sites Without Locale Association', 'rosetta' ); ?> <a href="#wpbody-content"><small>&uarr;</small></a></h2>
     210                <h2 id="sites-without-locale-association"><?php esc_html_e( 'Sites Without Locale Association', 'rosetta' ); ?> <a href="#wpbody-content"><small>&uarr;</small></a></h2>
    211211                <?php
    212212                $domains_with_locale = wp_list_pluck( $this->page->get_associations(), 'subdomain' );
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-blocks.php

    r15177 r15179  
    276276                        checked( get_user_option( 'block_editor', $user_id ), 'disabled', false ),
    277277                        sprintf(
    278                                 __( 'Disable the <a href="%s">Block Editor</a> for new topics and replies.', 'wporg-forums' ),
     278                                /* translators: %s: Block editor documentation URL. */
     279                                wp_kses_post( __( 'Disable the <a href="%s">Block Editor</a> for new topics and replies.', 'wporg-forums' ) ),
    279280                                'https://wordpress.org/support/article/wordpress-editor/'
    280281                        )
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php

    r15170 r15179  
    10291029                                if ( is_user_logged_in() ) {
    10301030                                        printf( '<p class="wporg-bbp-topic-site-url">%1$s <a href="%2$s" rel="nofollow ugc">%2$s</a></p>',
    1031                                                 __( 'The page I need help with:', 'wporg-forums' ),
     1031                                                esc_html__( 'The page I need help with:', 'wporg-forums' ),
    10321032                                                esc_url( $site_url )
    10331033                                        );
    10341034                                } else {
    10351035                                        printf( '<p class="wporg-bbp-topic-site-url">%1$s <em>%2$s</em></p>',
    1036                                                 __( 'The page I need help with:', 'wporg-forums' ),
     1036                                                esc_html__( 'The page I need help with:', 'wporg-forums' ),
    10371037                                                /* translators: %s: URL of the log in page. */
    10381038                                                sprintf( wp_kses_post( __( '[<a href="%s">log in</a> to see the link]', 'wporg-forums' ) ), esc_url( wp_login_url() ) )
    … …  
    10571057                        ?>
    10581058                        <p>
    1059                                 <label for="site_url"><?php _e( 'Link to the page you need help with:', 'wporg-forums' ) ?></label><br />
     1059                                <label for="site_url"><?php esc_html_e( 'Link to the page you need help with:', 'wporg-forums' ); ?></label><br />
    10601060                                <input type="text" id="site_url" value="<?php echo esc_attr( $site_url ); ?>" size="40" name="site_url" maxlength="400" aria-describedby="site_url_description" /><br />
    1061                                 <em id="site_url_description"><?php _e( 'This link will only be shown to logged-in users.', 'wporg-forums' ); ?></em>
     1061                                <em id="site_url_description"><?php esc_html_e( 'This link will only be shown to logged-in users.', 'wporg-forums' ); ?></em>
    10621062                        </p>
    10631063                        <?php
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php

    r15112 r15179  
    12261226
    12271227                printf(
    1228                         '<em>' . __( 'Posted by <a href="%s">@%s</a>.', 'wporg-forums' ) . '</em><br/>',
     1228                        /* translators: 1: Profile URL, 2: Username. */
     1229                        '<em>' . wp_kses_post( __( 'Posted by <a href="%1$s">@%2$s</a>.', 'wporg-forums' ) ) . '</em><br/>',
    12291230                        esc_url( bbp_get_user_profile_url( $user->ID ) ),
    12301231                        esc_html( $user->user_nicename )
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-nsfw-handler.php

    r9817 r15179  
    3030        public function add_term_meta() {
    3131                // Output a helping text indicating what to use the description field for.
    32                 echo '<p>' . __( 'Please provide a reason for adding this term in the description field', 'wporg-forums' ) . '</p>';
     32                echo '<p>' . esc_html__( 'Please provide a reason for adding this term in the description field', 'wporg-forums' ) . '</p>';
    3333        }
    3434
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php

    r15170 r15179  
    224224<div class="review-ratings">
    225225        <div>
    226                 <div style="font-weight:bold;"><?php _e( 'Average Rating', 'wporg-forums' ); ?></div>
     226                <div style="font-weight:bold;"><?php esc_html_e( 'Average Rating', 'wporg-forums' ); ?></div>
    227227                <?php echo do_blocks( '<!-- wp:wporg/ratings-stars /-->' ); ?>
    228228                <div class="reviews-submit-link">
    … …  
    231231                                echo '<a href="#new-post" class="btn">';
    232232                                if ( $this->review_exists() ) {
    233                                         _e( 'Edit your review', 'wporg-forums' );
     233                                        esc_html_e( 'Edit your review', 'wporg-forums' );
    234234                                } else {
    235                                         _e( 'Add your own review', 'wporg-forums' );
     235                                        esc_html_e( 'Add your own review', 'wporg-forums' );
    236236                                }
    237237                                echo '</a>';
    … …  
    240240                                printf(
    241241                                        /* translators: %s: login URL */
    242                                         __( 'You must be <a href="%s" rel="nofollow">logged in</a> to submit a review.', 'wporg-forums' ),
     242                                        wp_kses_post( __( 'You must be <a href="%s" rel="nofollow">logged in</a> to submit a review.', 'wporg-forums' ) ),
    243243                                        add_query_arg(
    244244                                                'redirect_to',
    … …  
    257257                        printf(
    258258                                /* translators: %s: number of reviews */
    259                                 _n( '%s review', '%s reviews', $this->reviews_count, 'wporg-forums' ),
     259                                esc_html( _n( '%s review', '%s reviews', $this->reviews_count, 'wporg-forums' ) ),
    260260                                '<span>' . number_format_i18n( $this->reviews_count ) . '</span>'
    261261                        );
    … …  
    271271                        echo '<p class="reviews-filtered-msg" style="margin-top:12px;font-size:0.8rem;">';
    272272                        printf(
    273                                 /* translators: %d: number of stars */
    274                                 _n(
    275                                         'You are currently viewing the reviews that provided a rating of <strong>%d star</strong>.',
    276                                         'You are currently viewing the reviews that provided a rating of <strong>%d stars</strong>.',
    277                                         $filter,
    278                                         'wporg-forums'
     273                                wp_kses_post(
     274                                        /* translators: %d: Number of stars. */
     275                                        _n(
     276                                                'You are currently viewing the reviews that provided a rating of <strong>%d star</strong>.',
     277                                                'You are currently viewing the reviews that provided a rating of <strong>%d stars</strong>.',
     278                                                $filter,
     279                                                'wporg-forums'
     280                                        )
    279281                                ) . ' ',
    280282                                $filter
    … …  
    282284                        printf(
    283285                                /* translators: %s: plugin/theme reviews URL */
    284                                 __( '<a href="%s">See all reviews</a>.', 'wporg-forums' ),
     286                                wp_kses_post( __( '<a href="%s">See all reviews</a>.', 'wporg-forums' ) ),
    285287                                esc_url( sprintf( home_url( '/%s/%s/reviews/' ), $this->compat, $this->slug ) )
    286288                        );
    … …  
    431433                        printf(
    432434                                /* translators: %s: login URL */
    433                                 __( 'You must be <a href="%s" rel="nofollow">logged in</a> to submit a review.', 'wporg-forums' ),
     435                                wp_kses_post( __( 'You must be <a href="%s" rel="nofollow">logged in</a> to submit a review.', 'wporg-forums' ) ),
    434436                                add_query_arg(
    435437                                        'redirect_to',
    … …  
    456458        public function do_template_notice() {
    457459                if ( $this->object->post_author == get_current_user_id() ) { ?>
    458                         <p><?php _e( 'A review should be the review of an experience a user has with your project, not for self-promotion.', 'wporg-forums' ); ?></p>
     460                        <p><?php esc_html_e( 'A review should be the review of an experience a user has with your project, not for self-promotion.', 'wporg-forums' ); ?></p>
    459461
    460462                        <?php if ( 'plugin' === $this->compat ) : ?>
    461                                 <p><?php _e( 'Since you work on this plugin, please consider <em>not</em> leaving a review on your own work. You were probably going to give it five stars anyway.', 'wporg-forums' ); ?></p>
     463                                <p><?php echo wp_kses_post( __( 'Since you work on this plugin, please consider <em>not</em> leaving a review on your own work. You were probably going to give it five stars anyway.', 'wporg-forums' ) ); ?></p>
    462464                        <?php elseif ( 'theme' === $this->compat ) : ?>
    463                                 <p><?php _e( 'Since you work on this theme, please consider <em>not</em> leaving a review on your own work. You were probably going to give it five stars anyway.', 'wporg-forums' ); ?></p>
     465                                <p><?php echo wp_kses_post( __( 'Since you work on this theme, please consider <em>not</em> leaving a review on your own work. You were probably going to give it five stars anyway.', 'wporg-forums' ) ); ?></p>
    464466                        <?php endif;
    465467
    … …  
    481483                }
    482484                ?>
    483                 <p><?php _e( 'When posting a review, follow these guidelines:', 'wporg-forums' ); ?></p>
     485                <p><?php esc_html_e( 'When posting a review, follow these guidelines:', 'wporg-forums' ); ?></p>
    484486                <ul>
    485                         <li><?php printf( $report, esc_url( sprintf( home_url( '/%s/%s/' ), $this->compat, $this->slug ) ) ); ?></li>
     487                        <li><?php printf( wp_kses_post( $report ), esc_url( sprintf( home_url( '/%s/%s/' ), $this->compat, $this->slug ) ) ); ?></li>
    486488                        <li><?php echo esc_html( $rate ); ?></li>
    487489                        <li><?php esc_html_e( 'Please provide as much detail as you can to justify your rating and to help others.', 'wporg-forums' ); ?></li>
    … …  
    489491                                printf(
    490492                                        /* translators: %s: Forum user guide URL */
    491                                         __( 'Please <a href="%s">do not add links to your review</a>, keep the review about your experience in text only.', 'wporg-forums' ),
     493                                        wp_kses_post( __( 'Please <a href="%s">do not add links to your review</a>, keep the review about your experience in text only.', 'wporg-forums' ) ),
    492494                                        esc_url( __( 'https://wordpress.org/support/forum-user-guide/faq/#why-are-links-not-allowed-in-reviews', 'wporg-forums' ) )
    493495                                );
    … …  
    518520                printf(
    519521                        '<label for="rating">%s</label>',
    520                         __( 'Your Rating:', 'wporg-forums' )
     522                        esc_html__( 'Your Rating:', 'wporg-forums' )
    521523                );
    522524
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-report-topic.php

    r15113 r15179  
    409409                        sprintf(
    410410                            // translators: 1: Title of reported topic as a link.
    411                                 __( 'Reported topic: %s', 'wporg-forums' ),
     411                                esc_html__( 'Reported topic: %s', 'wporg-forums' ),
    412412                                sprintf(
    413413                                        '<a href="%s">%s</a>',
    … …  
    422422                        sprintf(
    423423                            // translators: 1: Number of posts in the topic.
    424                                 __( 'Replies in this topic: %d', 'wporg-forums' ),
     424                                esc_html__( 'Replies in this topic: %d', 'wporg-forums' ),
    425425                                esc_html( bbp_get_topic_reply_count( $topic ) )
    426426                        )
    … …  
    431431                        sprintf(
    432432                            // translators: 1: Number of participants in the topic.
    433                                 __( 'Participants in this topic: %d', 'wporg-forums' ),
     433                                esc_html__( 'Participants in this topic: %d', 'wporg-forums' ),
    434434                                esc_html( bbp_get_topic_voice_count( $topic ) )
    435435                        )
    … …  
    452452                        sprintf(
    453453                            // translators: 1: The display-name of the reporter, as a link to their user profile.
    454                                 __( 'Reporter: %s', 'wporg-forums' ),
     454                                esc_html__( 'Reporter: %s', 'wporg-forums' ),
    455455                                sprintf(
    456456                                        '<a href="%s">%s</a>',
    … …  
    465465                        sprintf(
    466466                            // translators: 1: The IP address the report was submitted from.
    467                                 __( 'IP Address: %s', 'wporg-forums' ),
     467                                esc_html__( 'IP Address: %s', 'wporg-forums' ),
    468468                                esc_html( $reporter_ip )
    469469                        )
    … …  
    678678                                <input type="hidden" name="wporg-support-report-topic" value="<?php echo esc_attr( bbp_get_topic_id() ); ?>">
    679679
    680                                 <label for="topic-report-reason"><?php _e( 'Report this topic for:', 'wporg-forums' ); ?></label>
     680                                <label for="topic-report-reason"><?php esc_html_e( 'Report this topic for:', 'wporg-forums' ); ?></label>
    681681                                <?php
    682682                                wp_dropdown_categories(
    … …  
    694694
    695695                                <p>
    696                                         <label for="topic-report-reason-details"><?php _e( 'Why are you reporting this topic:', 'wporg-forums' ); ?></label>
     696                                        <label for="topic-report-reason-details"><?php esc_html_e( 'Why are you reporting this topic:', 'wporg-forums' ); ?></label>
    697697                                        <textarea type="text" name="topic-report-reason-details" id="topic-report-reason-details" class="widefat" required="required"></textarea>
    698698                                </p>
    … …  
    742742                        printf(
    743743                                '<li class="topic-previous-reports">%s<ul class="previous-reports">%s</ul></li>',
    744                                 __( 'Previous reports:', 'wporg-support' ),
     744                                esc_html__( 'Previous reports:', 'wporg-support' ),
    745745                                implode( ' ', $lines )
    746746                        );
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/admin-edit.php

    r15170 r15179  
    249249
    250250        if ( 'suspend' == $post->post_status ) {
    251                 wp_die( __( 'This item has already been suspended.', 'wporg-themes' ) );
     251                wp_die( esc_html__( 'This item has already been suspended.', 'wporg-themes' ) );
    252252        }
    253253
    254254        if ( ! get_post_type_object( $post->post_type ) ) {
    255                 wp_die( __( 'Unknown post type.', 'wporg-themes' ) );
     255                wp_die( esc_html__( 'Unknown post type.', 'wporg-themes' ) );
    256256        }
    257257
    258258        if ( ! current_user_can( 'suspend_theme', $post_id ) || 'repopackage' != $post->post_type ) {
    259                 wp_die( __( 'You are not allowed to suspend this item.', 'wporg-themes' ) );
     259                wp_die( esc_html__( 'You are not allowed to suspend this item.', 'wporg-themes' ) );
    260260        }
    261261
    … …  
    286286
    287287        if ( 'suspend' != $post->post_status ) {
    288                 wp_die( __( 'This item has already been reinstated.', 'wporg-themes' ) );
     288                wp_die( esc_html__( 'This item has already been reinstated.', 'wporg-themes' ) );
    289289        }
    290290
    291291        if ( ! get_post_type_object( $post->post_type ) ) {
    292                 wp_die( __( 'Unknown post type.', 'wporg-themes' ) );
     292                wp_die( esc_html__( 'Unknown post type.', 'wporg-themes' ) );
    293293        }
    294294
    295295        if ( ! current_user_can( 'reinstate_theme', $post_id ) || 'repopackage' != $post->post_type ) {
    296                 wp_die( __( 'You are not allowed to reinstate this item.', 'wporg-themes' ) );
     296                wp_die( esc_html__( 'You are not allowed to reinstate this item.', 'wporg-themes' ) );
    297297        }
    298298
    … …  
    349349
    350350        if ( 'delist' == $post->post_status ) {
    351                 wp_die( __( 'This item has already been delisted.', 'wporg-themes' ) );
     351                wp_die( esc_html__( 'This item has already been delisted.', 'wporg-themes' ) );
    352352        }
    353353
    354354        if ( ! get_post_type_object( $post->post_type ) ) {
    355                 wp_die( __( 'Unknown post type.', 'wporg-themes' ) );
     355                wp_die( esc_html__( 'Unknown post type.', 'wporg-themes' ) );
    356356        }
    357357
    358358        if ( ! current_user_can( 'suspend_theme', $post_id ) || 'repopackage' != $post->post_type ) {
    359                 wp_die( __( 'You are not allowed to delist this item.', 'wporg-themes' ) );
     359                wp_die( esc_html__( 'You are not allowed to delist this item.', 'wporg-themes' ) );
    360360        }
    361361
    … …  
    386386
    387387        if ( 'delist' != $post->post_status ) {
    388                 wp_die( __( 'This item has already been relisted.', 'wporg-themes' ) );
     388                wp_die( esc_html__( 'This item has already been relisted.', 'wporg-themes' ) );
    389389        }
    390390
    391391        if ( ! get_post_type_object( $post->post_type ) ) {
    392                 wp_die( __( 'Unknown post type.', 'wporg-themes' ) );
     392                wp_die( esc_html__( 'Unknown post type.', 'wporg-themes' ) );
    393393        }
    394394
    395395        if ( ! current_user_can( 'reinstate_theme', $post_id ) || 'repopackage' != $post->post_type ) {
    396                 wp_die( __( 'You are not allowed to relist this item.', 'wporg-themes' ) );
     396                wp_die( esc_html__( 'You are not allowed to relist this item.', 'wporg-themes' ) );
    397397        }
    398398
    … …  
    470470function wporg_theme_no_delete_repopackage( $post_id ) {
    471471        if ( 'repopackage' == get_post( $post_id )->post_type ) {
    472                 wp_die( __( 'Repopackages can not be deleted.', 'wporg-themes' ), '', array(
    473                         'back_link' => true,
    474                 ) );
     472                wp_die(
     473                        esc_html__( 'Repopackages can not be deleted.', 'wporg-themes' ),
     474                        '',
     475                        array(
     476                                'back_link' => true,
     477                        )
     478                );
    475479        }
    476480}
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php

    r15166 r15179  
    14411441                // Display the errors.
    14421442                $verdict = $result ? array( 'tc-pass', __( 'Pass', 'wporg-themes' ) ) : array( 'tc-fail', __( 'Fail', 'wporg-themes' ) );
    1443                 echo '<h2>' . sprintf( __( 'Results of Automated Theme Scanning: %s', 'wporg-themes' ), vsprintf( '<span class="%1$s">%2$s</span>', $verdict ) ) . '</h2>';
     1443                /* translators: %s: Scan verdict. */
     1444                echo '<h2>' . sprintf( esc_html__( 'Results of Automated Theme Scanning: %s', 'wporg-themes' ), vsprintf( '<span class="%1$s">%2$s</span>', array_map( 'esc_html', $verdict ) ) ) . '</h2>';
    14441445                echo '<ul class="tc-result">' . display_themechecks() . '</ul>';
    1445                 echo '<div class="notice notice-info"><p>' . __( 'Note: While the automated theme scan is based on the Theme Review Guidelines, it is not a complete review. A successful result from the scan does not guarantee that the theme will pass review. All submitted themes are reviewed manually before approval.', 'wporg-themes' ) . '</p></div>';
     1446                echo '<div class="notice notice-info"><p>' . esc_html__( 'Note: While the automated theme scan is based on the Theme Review Guidelines, it is not a complete review. A successful result from the scan does not guarantee that the theme will pass review. All submitted themes are reviewed manually before approval.', 'wporg-themes' ) . '</p></div>';
    14461447
    14471448                return $result;
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php

    r15166 r15179  
    374374        global $user_ID;
    375375?>
    376 <label class="screen-reader-text" for="post_author_override"><?php _e('Author'); ?></label>
     376<label class="screen-reader-text" for="post_author_override"><?php esc_html_e( 'Author' ); ?></label>
    377377<?php
    378378        $value = empty($post->ID) ? $user_ID : $post->post_author;
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-components.php

    r15170 r15179  
    650650
    651651                if ( is_singular() ) {
    652                         echo '<h3>' . sprintf( _n( '%s open ticket', '%s open tickets', $component_count ), $component_count ) . ' in the ' . $component . ' component</h3>';
     652                        echo '<h3>' . sprintf(
     653                                /* translators: 1: Number of tickets. 2: Component name. */
     654                                esc_html( _n( '%1$s open ticket in the %2$s component', '%1$s open tickets in the %2$s component', $component_count ) ),
     655                                (int) $component_count,
     656                                esc_html( $component )
     657                        ) . '</h3>';
    653658                }
    654659
    … …  
    713718                if ( $unreplied_tickets ) {
    714719                        $count = count( $unreplied_tickets );
    715                         echo '<h3>' . sprintf( _n( '%d ticket that has no replies', '%d tickets that have no replies', $count ), $count ) . '</h3>';
     720                        /* translators: %d: Number of tickets. */
     721                        echo '<h3>' . sprintf( esc_html( _n( '%d ticket that has no replies', '%d tickets that have no replies', $count ) ), (int) $count ) . '</h3>';
    716722                        echo '<a href="' . $this->trac_query( array( 'component' => $component, 'id' => implode( ',', wp_list_pluck( $unreplied_tickets, 'id' ) ) ) ) . '">View list on Trac</a>';
    717723                        $this->render_tickets( $unreplied_tickets );
    … …  
    723729                        $count = count( $next_milestone );
    724730                        $next_milestone_object = (object) $next_milestone[0];
    725                         echo '<h3>' . sprintf( _n( '%s ticket slated for ' . $next_milestone_object->milestone, '%s tickets slated for ' . $next_milestone_object->milestone, $count ), $count ) . '</h3>';
     731                        echo '<h3>' . sprintf(
     732                                /* translators: 1: Number of tickets, 2: Milestone name. */
     733                                esc_html( _n( '%1$s ticket slated for %2$s', '%1$s tickets slated for %2$s', $count ) ),
     734                                (int) $count,
     735                                esc_html( $next_milestone_object->milestone )
     736                        ) . '</h3>';
    726737                        echo $this->trac_query_link( 'View list in Trac', array( 'component' => $component, 'milestone' => $next_milestone_object->milestone ) );
    727738                        $this->render_tickets( $next_milestone );
    … …  
    731742
    732743                $count = array_sum( $tickets_by_type );
    733                 echo '<h3>' . sprintf( _n( '%s open ticket', '%s open tickets', $count ), $count ) . '</h3>';
     744                /* translators: %s: Number of tickets. */
     745                echo '<h3>' . sprintf( esc_html( _n( '%s open ticket', '%s open tickets', $count ) ), (int) $count ) . '</h3>';
    734746
    735747                $types = array(
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wp-i18n-teams/inc/locales.php

    r14604 r15179  
    5454                                '<div class="callout callout-warning"><p>%s</p><p><a href="%s">%s</a></p></div>',
    5555                                sprintf(
    56                                         __( 'Locale %s doesn&#8217;t exist.', 'wporg' ),
     56                                        /* translators: %s: Locale slug. */
     57                                        esc_html__( 'Locale %s doesn&#8217;t exist.', 'wporg' ),
    5758                                        '<code>' . esc_html( $_GET['locale'] ) . '</code>'
    5859                                ),
    5960                                esc_url( get_permalink() ),
    60                                 __( 'Return to All Locales', 'wporg' )
     61                                esc_html__( 'Return to All Locales', 'wporg' )
    6162                        );
    6263                }
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wp-i18n-teams/views/all-locales.php

    r9295 r15179  
    22        <p class="locale-filters">
    33        <?php
    4                 _e( 'Releases:', 'worg' );
     4                esc_html_e( 'Releases:', 'worg' );
    55
    66                $release_statuses = array(
    … …  
    2828        <p class="locale-filters">
    2929        <?php
    30                 _e( 'Translations:', 'worg' );
     30                esc_html_e( 'Translations:', 'worg' );
    3131
    3232                $translation_statuses = array(
    … …  
    5858                        <tr>
    5959                                <th colspan="2">
    60                                         <?php _e( 'Locale', 'wporg' ); ?><br>
    61                                         <small><?php _e( '(English &amp; Native)', 'wporg' ); ?></small>
     60                                        <?php esc_html_e( 'Locale', 'wporg' ); ?><br>
     61                                        <small><?php esc_html_e( '(English &amp; Native)', 'wporg' ); ?></small>
    6262                                </th>
    63                                 <th><?php _e( 'WP Locale', 'wporg' ); ?></th>
     63                                <th><?php esc_html_e( 'WP Locale', 'wporg' ); ?></th>
    6464                                <th colspan="2">
    65                                         <?php _e( 'Version', 'wporg' ); ?><br>
    66                                         <small><?php _e( '(Release &amp; Language Pack)', 'wporg' ); ?></small>
     65                                        <?php esc_html_e( 'Version', 'wporg' ); ?><br>
     66                                        <small><?php esc_html_e( '(Release &amp; Language Pack)', 'wporg' ); ?></small>
    6767                                </th>
    6868                                <th colspan="2">
    69                                         <?php _e( 'GlotPress', 'wporg' ); ?><br>
    70                                         <small><?php _e( '(Translated &amp; Slug)', 'wporg' ); ?></small>
     69                                        <?php esc_html_e( 'GlotPress', 'wporg' ); ?><br>
     70                                        <small><?php esc_html_e( '(Translated &amp; Slug)', 'wporg' ); ?></small>
    7171                                </th>
    7272                                <th><!-- intentionally blank --></th>
    … …  
    102102                                                                        echo esc_html( $locale_data[ $locale->wp_locale ]['latest_release'] );
    103103                                                                } else {
    104                                                                         _e( 'None', 'wporg' );
     104                                                                        esc_html_e( 'None', 'wporg' );
    105105                                                                }
    106106                                                        } else {
    107                                                                 _e( 'No&nbsp;site', 'wporg' );
     107                                                                esc_html_e( 'No&nbsp;site', 'wporg' );
    108108                                                        }
    109109                                                ?>
    … …  
    114114                                                        echo max( $language_packs_data[ $locale->wp_locale ] );
    115115                                                } else {
    116                                                         _e( 'No&nbsp;LP', 'wporg' );
     116                                                        esc_html_e( 'No&nbsp;LP', 'wporg' );
    117117                                                }
    118118                                                ?>
    … …  
    145145                                        <td class="center">
    146146                                                <a href="<?php echo esc_url( add_query_arg( 'locale', $locale->wp_locale ) ); ?>">
    147                                                         <?php _e( 'View Team Page', 'wporg' ); ?>
     147                                                        <?php esc_html_e( 'View Team Page', 'wporg' ); ?>
    148148                                                </a>
    149149                                        </td>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wp-i18n-teams/views/locale-details.php

    r15045 r15179  
    1 <p><a href="<?php echo esc_url( get_permalink() ); ?>"><?php _e( '&larr; All locales', 'wporg' ); ?></a></p>
     1<?php
     2/**
     3 * View showing the translation team of a single locale.
     4 *
     5 * @package WordPressdotorg\I18nTeams
     6 */
     7
     8?>
     9<p><a href="<?php echo esc_url( get_permalink() ); ?>"><?php esc_html_e( '&larr; All locales', 'wporg' ); ?></a></p>
    210<div id="locale-header">
    311        <h1>
    … …  
    1119        <ul id="locale-details">
    1220                <li>
    13                         <strong><?php _e( 'Sites:', 'wporg' ); ?></strong>
     21                        <strong><?php esc_html_e( 'Sites:', 'wporg' ); ?></strong>
    1422                        <?php
    1523                        if ( $locale_data['sites'] ) :
    … …  
    2735                </li>
    2836                <li>
    29                         <strong><?php _e( 'Latest release:', 'wporg' ); ?></strong>
     37                        <strong><?php esc_html_e( 'Latest release:', 'wporg' ); ?></strong>
    3038                        <?php echo $locale_data['latest_release'] ? $locale_data['latest_release'] : '&mdash;'; ?>
    3139                </li>
    3240                <li>
    33                         <strong><?php _e( 'WordPress Locale:', 'wporg' ); ?></strong>
     41                        <strong><?php esc_html_e( 'WordPress Locale:', 'wporg' ); ?></strong>
    3442                        <?php echo esc_html( $locale->wp_locale ); ?>
    3543                </li>
    3644                <li>
    37                         <strong><?php _e( 'GlotPress Locale Code:', 'wporg' ); ?></strong>
     45                        <strong><?php esc_html_e( 'GlotPress Locale Code:', 'wporg' ); ?></strong>
    3846                        <?php echo esc_html( $locale->slug ); ?>
    3947                </li>
    4048                <li>
    41                         <strong><?php _e( 'Translation Projects:', 'wporg' ); ?></strong>
     49                        <strong><?php esc_html_e( 'Translation Projects:', 'wporg' ); ?></strong>
    4250                        <a href="https://translate.wordpress.org/locale/<?php echo $locale->slug; ?>">translate.wordpress.org/locale/<?php echo $locale->slug; ?></a>
    4351                </li>
    … …  
    5058                                        <?php
    5159                                        // translators: %s is the english variant of the locale name.
    52                                         printf( __( 'Download WordPress in %s', 'wporg' ), $locale->english_name );
     60                                        printf( esc_html__( 'Download WordPress in %s', 'wporg' ), esc_html( $locale->english_name ) );
    5361                                        ?>
    5462                                </a>
    … …  
    5967                                                <?php
    6068                                                // translators: %s is the latest version.
    61                                                 printf( __( 'Download language pack (%s)', 'wporg' ), $locale_data['language_pack_version'] );
     69                                                printf( esc_html__( 'Download language pack (%s)', 'wporg' ), esc_html( $locale_data['language_pack_version'] ) );
    6270                                                ?>
    6371                                        </a>
    … …  
    6977
    7078<?php if ( ! empty( $locale_data['locale_managers'] ) ) : ?>
    71         <h2><?php printf( __( 'Locale Managers (%s)', 'wporg' ), number_format_i18n( count( $locale_data['locale_managers'] ) ) ); ?></h2>
     79        <?php /* translators: %s: Number of locale managers. */ ?>
     80        <h2><?php printf( esc_html__( 'Locale Managers (%s)', 'wporg' ), esc_html( number_format_i18n( count( $locale_data['locale_managers'] ) ) ) ); ?></h2>
    7281
    7382        <ul class="validators">
    … …  
    9099
    91100<?php if ( ! empty( $locale_data['validators'] ) ) : ?>
    92         <h2><?php printf( __( 'General Translation Editors (%s)', 'wporg' ), number_format_i18n( count( $locale_data['validators'] ) ) ); ?></h2>
     101        <?php /* translators: %s: Number of general translation editors. */ ?>
     102        <h2><?php printf( esc_html__( 'General Translation Editors (%s)', 'wporg' ), esc_html( number_format_i18n( count( $locale_data['validators'] ) ) ) ); ?></h2>
    93103
    94104        <ul class="validators">
    … …  
    111121
    112122<?php if ( ! empty( $locale_data['project_validators'] ) ) : ?>
    113         <h2><?php printf( __( 'Project Translation Editors (%s)', 'wporg' ), number_format_i18n( count( $locale_data['project_validators'] ) ) ); ?></h2>
     123        <?php /* translators: %s: Number of project translation editors. */ ?>
     124        <h2><?php printf( esc_html__( 'Project Translation Editors (%s)', 'wporg' ), esc_html( number_format_i18n( count( $locale_data['project_validators'] ) ) ) ); ?></h2>
    114125
    115126        <ul class="validators project-validators">
    … …  
    132143
    133144<?php if ( ! empty( $locale_data['translators'] ) ) : ?>
    134         <h2><?php printf( __( 'Current Translation Contributors (%s)', 'wporg' ), number_format_i18n( count( $locale_data['translators'] ) ) ); ?></h2>
     145        <?php /* translators: %s: Number of current contributors. */ ?>
     146        <h2><?php printf( esc_html__( 'Current Translation Contributors (%s)', 'wporg' ), esc_html( number_format_i18n( count( $locale_data['translators'] ) ) ) ); ?></h2>
    135147
    136148        <p>
    … …  
    150162
    151163<?php if ( ! empty( $locale_data['translators_past'] ) ) : ?>
    152         <h2><?php printf( __( 'Past Translation Contributors (%s)', 'wporg' ), number_format_i18n( count( $locale_data['translators_past'] ) ) ); ?></h2>
     164        <?php /* translators: %s: Number of past contributors. */ ?>
     165        <h2><?php printf( esc_html__( 'Past Translation Contributors (%s)', 'wporg' ), esc_html( number_format_i18n( count( $locale_data['translators_past'] ) ) ) ); ?></h2>
    153166
    154167        <p>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-also-viewing/wporg-bbp-also-viewing.php

    r15005 r15179  
    201201                checked( enabled( $user_id ), true, false ),
    202202                sprintf(
    203                         __( 'Enable the <a href="%s">Also Viewing</a> feature.', 'wporg-forums' ),
     203                        /* translators: %s: Handbook URL. */
     204                        wp_kses_post( __( 'Enable the <a href="%s">Also Viewing</a> feature.', 'wporg-forums' ) ),
    204205                        'https://make.wordpress.org/support/handbook/appendix/helpful-tools/#avoiding-overlapping-replies'
    205206                )
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-topic-resolution/inc/class-plugin.php

    r15121 r15179  
    118118                }
    119119
    120                 echo '<span class="topic-resolved-indicator">' . __( 'Resolved', 'wporg-forums' ) . '</span>';
     120                echo '<span class="topic-resolved-indicator">' . esc_html__( 'Resolved', 'wporg-forums' ) . '</span>';
    121121        }
    122122
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/helper-functions.php

    r15073 r15179  
    461461                                ?>
    462462                                <div class="warning secondary">
    463                                         <strong><?php _e( 'Warning:', 'glotpress' ); ?></strong> <?php echo esc_html( $value ); ?>
     463                                        <strong><?php esc_html_e( 'Warning:', 'glotpress' ); ?></strong> <?php echo esc_html( $value ); ?>
    464464
    465465                                        <?php if ( $can_approve ) : ?>
    466                                                 <a href="#" class="discard-warning" data-nonce="<?php echo esc_attr( wp_create_nonce( 'discard-warning_' . $index . $key ) ); ?>" data-key="<?php echo esc_attr( $key ); ?>" data-index="<?php echo esc_attr( $index ); ?>"><?php _e( 'Discard', 'glotpress' ); ?></a>
     466                                                <a href="#" class="discard-warning" data-nonce="<?php echo esc_attr( wp_create_nonce( 'discard-warning_' . $index . $key ) ); ?>" data-key="<?php echo esc_attr( $key ); ?>" data-index="<?php echo esc_attr( $index ); ?>"><?php esc_html_e( 'Discard', 'glotpress' ); ?></a>
    467467                                        <?php endif; ?>
    468468                                </div>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/index-locales.php

    r15081 r15179  
    77        <div class="filter-header">
    88                <ul class="filter-header-links">
    9                         <li><span class="current"><?php _e( 'Find your locale' ); ?></span></li>
    10                         <li><a href="/stats"><?php _e( 'Stats' ); ?></a></li>
    11                         <li><a href="/consistency"><?php _e( 'Consistency' ); ?></a></li>
     9                        <li><span class="current"><?php esc_html_e( 'Find your locale' ); ?></span></li>
     10                        <li><a href="/stats"><?php esc_html_e( 'Stats' ); ?></a></li>
     11                        <li><a href="/consistency"><?php esc_html_e( 'Consistency' ); ?></a></li>
    1212                </ul>
    1313                <div class="search-form">
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/locale-project.php

    r14328 r15179  
    5858                                <?php if ( $locale_glossary ) : ?>
    5959                                        <li class="locale-glossary">
    60                                                 <a href="<?php echo esc_url( gp_url_join( gp_url( '/locale' ), $locale_slug, $set_slug, 'glossary' ) ); ?>" class="glossary-link"><?php _e( 'Locale Glossary', 'glotpress' ); ?></a>
     60                                                <a href="<?php echo esc_url( gp_url_join( gp_url( '/locale' ), $locale_slug, $set_slug, 'glossary' ) ); ?>" class="glossary-link"><?php esc_html_e( 'Locale Glossary', 'glotpress' ); ?></a>
    6161                                        </li>
    6262                                <?php elseif ( $can_create_locale_glossary ) : ?>
    6363                                        <li class="locale-glossary">
    64                                                 <a href="<?php echo esc_url( gp_url_join( gp_url( '/locale' ), $locale_slug, $set_slug, 'glossary' ) ); ?>" class="glossary-link"><?php _e( 'Create Locale Glossary', 'glotpress' ); ?></a>
     64                                                <a href="<?php echo esc_url( gp_url_join( gp_url( '/locale' ), $locale_slug, $set_slug, 'glossary' ) ); ?>" class="glossary-link"><?php esc_html_e( 'Create Locale Glossary', 'glotpress' ); ?></a>
    6565                                        </li>
    6666                                <?php endif; ?>
    … …  
    148148                <thead>
    149149                        <tr>
    150                                 <th class="header"><?php _e( 'Set / Sub Project' ); ?></th>
    151                                 <th><?php _e( 'Translated' ); ?></th>
    152                                 <th><?php _e( 'Fuzzy' ); ?></th>
    153                                 <th><?php _e( 'Untranslated' ); ?></th>
    154                                 <th><?php _e( 'Waiting' ); ?></th>
    155                                 <th><?php _e( 'Changes requested' ); ?></th>
     150                                <th class="header"><?php esc_html_e( 'Set / Sub Project' ); ?></th>
     151                                <th><?php esc_html_e( 'Translated' ); ?></th>
     152                                <th><?php esc_html_e( 'Fuzzy' ); ?></th>
     153                                <th><?php esc_html_e( 'Untranslated' ); ?></th>
     154                                <th><?php esc_html_e( 'Waiting' ); ?></th>
     155                                <th><?php esc_html_e( 'Changes requested' ); ?></th>
    156156                        </tr>
    157157                </thead>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/locale-projects.php

    r15081 r15179  
    4343                        <?php if ( $locale_glossary ) : ?>
    4444                                <li class="locale-glossary">
    45                                         <a href="<?php echo esc_url( gp_url_join( gp_url( '/locale' ), $locale_slug, $set_slug, 'glossary' ) ); ?>" class="glossary-link"><?php _e( 'Locale Glossary', 'glotpress' ); ?></a>
     45                                        <a href="<?php echo esc_url( gp_url_join( gp_url( '/locale' ), $locale_slug, $set_slug, 'glossary' ) ); ?>" class="glossary-link"><?php esc_html_e( 'Locale Glossary', 'glotpress' ); ?></a>
    4646                                </li>
    4747                        <?php elseif ( $can_create_locale_glossary ) : ?>
    4848                                <li class="locale-glossary">
    49                                         <a href="<?php echo esc_url( gp_url_join( gp_url( '/locale' ), $locale_slug, $set_slug, 'glossary' ) ); ?>" class="glossary-link"><?php _e( 'Create Locale Glossary', 'glotpress' ); ?></a>
     49                                        <a href="<?php echo esc_url( gp_url_join( gp_url( '/locale' ), $locale_slug, $set_slug, 'glossary' ) ); ?>" class="glossary-link"><?php esc_html_e( 'Create Locale Glossary', 'glotpress' ); ?></a>
    5050                                </li>
    5151                        <?php endif; ?>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/project-form.php

    r9923 r15179  
     1<?php
     2/**
     3 * Shared project form fields, used by both the new-project and edit-project templates.
     4 *
     5 * @package GlotPress
     6 */
     7
     8?>
    19<dl>
    2         <dt><label for="project[name]"><?php _e( 'Name', 'glotpress' ); ?></label></dt>
     10        <dt><label for="project[name]"><?php esc_html_e( 'Name', 'glotpress' ); ?></label></dt>
    311        <dd><input type="text" name="project[name]" value="<?php echo esc_html( $project->name ); ?>" id="project[name]"></dd>
    412
    513        <!-- TODO: make slug edit WordPress style -->
    6         <dt><label for="project[slug]"><?php _e( 'Slug', 'glotpress' ); ?></label></dt>
     14        <dt><label for="project[slug]"><?php esc_html_e( 'Slug', 'glotpress' ); ?></label></dt>
    715        <dd>
    816                <input type="text" name="project[slug]" value="<?php echo esc_html( $project->slug ); ?>" id="project[slug]">
    9                 <small><?php _e( 'If you leave the slug empty, it will be derived from the name.', 'glotpress' ); ?></small>
     17                <small><?php esc_html_e( 'If you leave the slug empty, it will be derived from the name.', 'glotpress' ); ?></small>
    1018        </dd>
    1119
    12         <dt><label for="project[description]"><?php _e( 'Description', 'glotpress' ); ?></label> <span class="ternary"><?php _e( 'can include HTML', 'glotpress' ); ?></span></dt>
     20        <dt><label for="project[description]"><?php esc_html_e( 'Description', 'glotpress' ); ?></label> <span class="ternary"><?php esc_html_e( 'can include HTML', 'glotpress' ); ?></span></dt>
    1321        <dd><textarea name="project[description]" rows="4" cols="40" id="project[description]"><?php echo esc_html( $project->description ); ?></textarea></dd>
    1422
    15         <dt><label for="project[source_url_template]"><?php _e( 'Source file URL', 'glotpress' ); ?></label></dt>
     23        <dt><label for="project[source_url_template]"><?php esc_html_e( 'Source file URL', 'glotpress' ); ?></label></dt>
    1624        <dd>
    1725                <input type="text" value="<?php echo esc_html( $project->source_url_template ); ?>" name="project[source_url_template]" id="project[source_url_template]" style="width: 30em;" />
    1826                <span class="ternary"><?php printf(
    1927                        /* translators: 1: %file%, 2: %line%, 3: https://trac.example.org/browser/%file%#L%line% */
    20                         __( 'Public URL to a source file in the project. You can use %1$s and %2$s. Ex. %3$s', 'glotpress' ),
     28                        esc_html__( 'Public URL to a source file in the project. You can use %1$s and %2$s. Ex. %3$s', 'glotpress' ),
    2129                        '<code>%file%</code>',
    2230                        '<code>%line%</code>',
    … …  
    2533        </dd>
    2634
    27         <dt><label for="project[parent_project_id]"><?php _e( 'Parent Project (ID)', 'glotpress' ); ?></label></dt>
     35        <dt><label for="project[parent_project_id]"><?php esc_html_e( 'Parent Project (ID)', 'glotpress' ); ?></label></dt>
    2836        <dd><input type="text" name="project[parent_project_id]" value="<?php echo esc_attr( $project->parent_project_id ); ?>" id="project[parent_project_id]">
    2937
    30         <dt><label for="project[active]"><?php _e( 'Active', 'glotpress' ); ?></label> <input type="checkbox" id="project[active]" name="project[active]" <?php gp_checked( $project->active ); ?> /></dt>
     38        <dt><label for="project[active]"><?php esc_html_e( 'Active', 'glotpress' ); ?></label> <input type="checkbox" id="project[active]" name="project[active]" <?php gp_checked( $project->active ); ?> /></dt>
    3139</dl>
    3240
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/project-mass-create-sets.php

    r9923 r15179  
    44gp_tmpl_header();
    55?>
    6 <h2><?php _e( 'Mass-create Translation Sets', 'glotpress' ); ?></h2>
    7 <p><?php _e( 'Here you can mass-create translation sets in this project.
     6<h2><?php esc_html_e( 'Mass-create Translation Sets', 'glotpress' ); ?></h2>
     7<p>
     8<?php
     9esc_html_e(
     10        'Here you can mass-create translation sets in this project.
    811The list of translation sets will be mirrored with the sets of a project you choose.
    912Usually this is one of the parent projects.', 'glotpress' ); ?></p>
    1013<form action="<?php echo esc_url( gp_url_current() ); ?>" method="post">
    1114        <dl>
    12                 <dt><label for="project_id"><?php _e( 'Project to take translation sets from:', 'glotpress' ); ?></label></dt>
     15                <dt><label for="project_id"><?php esc_html_e( 'Project to take translation sets from:', 'glotpress' ); ?></label></dt>
    1316                <dd><input type="text" name="project_id" value="" id="project_id">
    1417        </dl>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/projects-wp-plugins-contributors.php

    r15170 r15179  
    100100                                $has_editors ? ' has-editors' : ' no-editors',
    101101                                $locale->english_name,
    102                                 sprintf( _n( '%s person', '%s persons', $data['count'] ), number_format_i18n( $data['count'] ) ),
     102                                /* translators: %s: Number of people. */
     103                                sprintf( esc_html( _n( '%s person', '%s persons', $data['count'] ) ), esc_html( number_format_i18n( $data['count'] ) ) ),
    103104                                esc_url( gp_url_join( '/locale', $locale->slug, 'default', $project->path ) ),
    104105                                $locale->wp_locale,
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/projects-wp-themes-contributors.php

    r15170 r15179  
    100100                                $has_editors ? ' has-editors' : ' no-editors',
    101101                                $locale->english_name,
    102                                 sprintf( _n( '%s person', '%s persons', $data['count'] ), number_format_i18n( $data['count'] ) ),
     102                                /* translators: %s: Number of people. */
     103                                sprintf( esc_html( _n( '%s person', '%s persons', $data['count'] ) ), esc_html( number_format_i18n( $data['count'] ) ) ),
    103104                                $locale->wp_locale,
    104105                                wp_sprintf( '%l', $editors_list ),
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/settings.php

    r11837 r15179  
    2828}
    2929?>
    30 <h2><?php _e( 'Your Settings', 'glotpress' ); ?></h2>
     30<h2><?php esc_html_e( 'Your Settings', 'glotpress' ); ?></h2>
    3131<form action="" method="post">
    3232        <?php require_once __DIR__ . '/settings-edit.php'; ?>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/stats-overview.php

    r12406 r15179  
    1919                <thead>
    2020                        <tr>
    21                                 <th class="col-locale-code"><?php _e( 'Locale' ); ?></th>
     21                                <th class="col-locale-code"><?php esc_html_e( 'Locale' ); ?></th>
    2222                                <?php foreach ( $projects as $slug => $project ) :
    2323                                        $name = str_replace( array( 'WordPress.org ', 'WordPress for ', 'WordPress ', 'ectory', ' - Development' ), '', $project->name );
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/translation-row-editor.php

    r15170 r15179  
    130130                                                        ?>
    131131                                                        <details open class="source-details__comment">
    132                                                                 <summary><?php _e( 'Comment', 'glotpress' ); ?></summary>
     132                                                                <summary><?php esc_html_e( 'Comment', 'glotpress' ); ?></summary>
    133133                                                                <p>
    134134                                                                        <?php
    … …  
    272272                                                                <?php if ( $can_approve_translation ) : ?>
    273273                                                                        <?php if ( 'current' !== $translation->translation_status ) : ?>
    274                                                                                 <button class="button  is-primary approve" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-current_' . $translation->id ) ); ?>"><strong>+</strong> <?php _e( 'Approve', 'glotpress' ); ?></button>
     274                                                                                <button class="button  is-primary approve" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-current_' . $translation->id ) ); ?>"><strong>+</strong> <?php esc_html_e( 'Approve', 'glotpress' ); ?></button>
    275275                                                                        <?php endif; ?>
    276276                                                                        <?php if ( 'rejected' !== $translation->translation_status ) : ?>
    277                                                                                 <button class="button reject" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-rejected_' . $translation->id ) ); ?>"><strong>&minus;</strong> <?php _e( 'Reject', 'glotpress' ); ?></button>
     277                                                                                <button class="button reject" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-rejected_' . $translation->id ) ); ?>"><strong>&minus;</strong> <?php esc_html_e( 'Reject', 'glotpress' ); ?></button>
    278278                                                                                <?php if ( apply_filters( 'gp_enable_changesrequested_status', false ) ) : // todo: delete when we merge the gp-translation-helpers in GlotPress ?>
    279                                                                                         <button class="button changesrequested" style="display: none;" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-changesrequested_' . $translation->id ) ); ?>" title="<?php esc_attr_e( 'Request changes for this translation. The existing translation will be kept as part of the translation history.', 'glotpress' ); ?>"><strong>&minus;</strong> <?php _ex( 'Request changes', 'Action', 'glotpress' ); ?></button>
     279                                                                                        <button class="button changesrequested" style="display: none;" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-changesrequested_' . $translation->id ) ); ?>" title="<?php esc_attr_e( 'Request changes for this translation. The existing translation will be kept as part of the translation history.', 'glotpress' ); ?>"><strong>&minus;</strong> <?php echo esc_html_x( 'Request changes', 'Action', 'glotpress' ); ?></button>
    280280                                                                                <?php endif; ?>
    281281                                                                        <?php endif; ?>
    282282                                                                        <?php if ( 'fuzzy' !== $translation->translation_status ) : ?>
    283                                                                                 <button class="button fuzzy" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-fuzzy_' . $translation->id ) ); ?>"><strong>~</strong> <?php _e( 'Fuzzy', 'glotpress' ); ?></button>
     283                                                                                <button class="button fuzzy" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-fuzzy_' . $translation->id ) ); ?>"><strong>~</strong> <?php esc_html_e( 'Fuzzy', 'glotpress' ); ?></button>
    284284                                                                        <?php endif; ?>
    285285                                                                <?php elseif ( $can_reject_self ) : ?>
    286                                                                         <button class="button reject" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-rejected_' . $translation->id ) ); ?>"><strong>&minus;</strong> <?php _e( 'Reject Suggestion', 'glotpress' ); ?></button>
    287                                                                         <button class="button fuzzy" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-fuzzy_' . $translation->id ) ); ?>"><strong>~</strong> <?php _e( 'Fuzzy', 'glotpress' ); ?></button>
     286                                                                        <button class="button reject" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-rejected_' . $translation->id ) ); ?>"><strong>&minus;</strong> <?php esc_html_e( 'Reject Suggestion', 'glotpress' ); ?></button>
     287                                                                        <button class="button fuzzy" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-fuzzy_' . $translation->id ) ); ?>"><strong>~</strong> <?php esc_html_e( 'Fuzzy', 'glotpress' ); ?></button>
    288288                                                                <?php endif; ?>
    289289                                                        </div>
    … …  
    291291
    292292                                                <dl>
    293                                                         <dt><?php _e( 'Status:', 'glotpress' ); ?></dt>
     293                                                        <dt><?php esc_html_e( 'Status:', 'glotpress' ); ?></dt>
    294294                                                        <dd>
    295295                                                                <?php echo display_status( $translation->translation_status ); ?>
    … …  
    299299                                                <?php if ( $translation->translation_added && $translation->translation_added !== '0000-00-00 00:00:00' ) : ?>
    300300                                                        <dl>
    301                                                                 <dt><?php _e( 'Added:', 'glotpress' ); ?></dt>
     301                                                                <dt><?php esc_html_e( 'Added:', 'glotpress' ); ?></dt>
    302302                                                                <dd><?php echo $translation->translation_added; ?> UTC</dd>
    303303                                                        </dl>
    … …  
    305305                                                <?php if ( $translation->date_modified && $translation->date_modified !== '0000-00-00 00:00:00' && $translation->date_modified !== $translation->translation_added ) : ?>
    306306                                                        <dl>
    307                                                                 <dt><?php _e( 'Last modified:', 'glotpress' ); ?></dt>
     307                                                                <dt><?php esc_html_e( 'Last modified:', 'glotpress' ); ?></dt>
    308308                                                                <dd><?php echo $translation->date_modified; ?> UTC</dd>
    309309                                                        </dl>
    … …  
    311311                                                <?php if ( $translation->user ) : ?>
    312312                                                        <dl>
    313                                                                 <dt><?php _e( 'Translated by:', 'glotpress' ); ?></dt>
     313                                                                <dt><?php esc_html_e( 'Translated by:', 'glotpress' ); ?></dt>
    314314                                                                <dd><?php gp_link_user( $translation->user ); ?></dd>
    315315                                                        </dl>
    … …  
    320320                                                                <?php
    321321                                                                if ( 'current' === $translation->translation_status ) {
    322                                                                         _e( 'Approved by:', 'glotpress' );
     322                                                                        esc_html_e( 'Approved by:', 'glotpress' );
    323323                                                                } elseif ( 'rejected' === $translation->translation_status ) {
    324                                                                         _e( 'Rejected by:', 'glotpress' );
     324                                                                        esc_html_e( 'Rejected by:', 'glotpress' );
    325325                                                                } else {
    326                                                                         _e( 'Last updated by:', 'glotpress' );
     326                                                                        esc_html_e( 'Last updated by:', 'glotpress' );
    327327                                                                }
    328328                                                                ?>
    … …  
    333333
    334334                                                <dl>
    335                                                         <dt><?php _e( 'Priority of the original:', 'glotpress' ); ?></dt>
     335                                                        <dt><?php esc_html_e( 'Priority of the original:', 'glotpress' ); ?></dt>
    336336                                                        <?php if ( $can_write ) : ?>
    337337                                                                <dd>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/translation-row-preview.php

    r14893 r15179  
    133133        </td>
    134134        <td class="actions">
    135                 <a href="#" class="action edit"><?php _e( 'Details', 'glotpress' ); ?></a>
     135                <a href="#" class="action edit"><?php esc_html_e( 'Details', 'glotpress' ); ?></a>
    136136        </td>
    137137        <?php if ( wporg_translate_inline_actions_enabled_for_current_user( get_defined_vars() ) ) : ?>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/translation-set-form.php

    r9923 r15179  
     1<?php
     2/**
     3 * Shared translation set form fields, used by both the new and edit templates.
     4 *
     5 * @package GlotPress
     6 */
     7
     8?>
    19<dl>
    2         <dt><label for="set[locale]"><?php _e( 'Locale', 'glotpress' ); ?></label></dt>
     10        <dt><label for="set[locale]"><?php esc_html_e( 'Locale', 'glotpress' ); ?></label></dt>
    311        <dd>
    412                <?php echo gp_locales_dropdown( 'set[locale]', $set->locale ); ?>
    5                 <a href="#" id="copy"><?php _e( 'Use as name', 'glotpress' ); ?></a>
     13                <a href="#" id="copy"><?php esc_html_e( 'Use as name', 'glotpress' ); ?></a>
    614        </dd>
    715
    8         <dt><label for="set[name]"><?php _e( 'Name', 'glotpress' ); ?></label></dt>
     16        <dt><label for="set[name]"><?php esc_html_e( 'Name', 'glotpress' ); ?></label></dt>
    917        <dd><input type="text" name="set[name]" value="<?php echo esc_html( $set->name ); ?>" id="set[name]"></dd>
    1018
    1119        <!-- TODO: make slug edit WordPress style -->
    12         <dt><label for="set[slug]"><?php _e( 'Slug', 'glotpress' ); ?></label></dt>
     20        <dt><label for="set[slug]"><?php esc_html_e( 'Slug', 'glotpress' ); ?></label></dt>
    1321        <dd><input type="text" name="set[slug]" value="<?php echo esc_html( $set->slug? $set->slug : 'default' ); ?>" id="set[slug]"></dd>
    1422
    15         <dt><label for="set[project_id]"><?php _e( 'Project (ID)', 'glotpress' ); ?></label></dt>
     23        <dt><label for="set[project_id]"><?php esc_html_e( 'Project (ID)', 'glotpress' ); ?></label></dt>
    1624        <dd><input type="text" name="set[project_id]" value="<?php echo esc_attr( $set->project_id ); ?>" id="set[project_id]">
    1725</dl>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-discussions/inc/class-plugin.php

    r8987 r15179  
    131131
    132132                                                        <label class="feedback">
    133                                                                 <?php _e( 'Comment:', 'glotpress' ); ?>
     133                                                                <?php esc_html_e( 'Comment:', 'glotpress' ); ?>
    134134                                                                <textarea placeholder="Let the contributor know what they did wrong…" name="comment" rows="4"></textarea>
    135135                                                        </label>
    … …  
    159159                                                <form action="POST">
    160160                                                        <label class="feedback">
    161                                                                 <?php _e( 'Comment:', 'glotpress' ); ?>
     161                                                                <?php esc_html_e( 'Comment:', 'glotpress' ); ?>
    162162                                                                <textarea required placeholder="Type your question or feedback to this string…" name="comment" rows="4"></textarea>
    163163                                                        </label>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-rosetta-roles/inc/admin/class-translators.php

    r3952 r15179  
    7171                        <h2>
    7272                                <?php
    73                                 _e( 'Translators', 'wporg-translate' );
     73                                esc_html_e( 'Translators', 'wporg-translate' );
    7474
    7575                                if ( ! empty( $_REQUEST['s'] ) ) {
    76                                         echo '<span class="subtitle">' . sprintf( __( 'Search results for &#8220;%s&#8221;', 'wporg-translate' ), esc_html( wp_unslash( $_REQUEST['s'] ) ) ) . '</span>';
     76                                        /* translators: %s: Search term. */
     77                                        echo '<span class="subtitle">' . sprintf( esc_html__( 'Search results for &#8220;%s&#8221;', 'wporg-translate' ), esc_html( wp_unslash( $_REQUEST['s'] ) ) ) . '</span>'; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Escaped for display.
    7778                                }
    7879                                ?>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-rosetta-roles/inc/admin/list-table/class-translators.php

    r4025 r15179  
    9898         */
    9999        public function no_items() {
    100                 _e( 'No translators were found.', 'wporg-translate' );
     100                esc_html_e( 'No translators were found.', 'wporg-translate' );
    101101        }
    102102
    … …  
    159159                if ( $this->user_can_promote ) {
    160160                        ?>
    161                         <label class="screen-reader-text" for="cb-select-<?php echo $user->ID; ?>"><?php _e( 'Select translator', 'wporg-translate' ); ?></label>
     161                        <label class="screen-reader-text" for="cb-select-<?php echo (int) $user->ID; ?>"><?php esc_html_e( 'Select translator', 'wporg-translate' ); ?></label>
    162162                        <input id="cb-select-<?php echo $user->ID; ?>" type="checkbox" name="translators[]" value="<?php echo $user->ID; ?>">
    163163                        <?php
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-meeting-posttype/wporg-meeting-posttype.php

    r14296 r15179  
    259259                <p>
    260260                <label for="team">
    261                         <?php _e( 'Team: ', 'wporg' ); ?>
     261                        <?php esc_html_e( 'Team: ', 'wporg' ); ?>
    262262                        <input type="text" id="team" name="team" class="regular-text wide" value="<?php echo esc_attr( $team ); ?>">
    263263                </label>
    … …  
    265265                <p>
    266266                <label for="start_date">
    267                         <?php _e( 'Start Date', 'wporg' ); ?>
     267                        <?php esc_html_e( 'Start Date', 'wporg' ); ?>
    268268                        <input type="text" name="start_date" id="start_date" class="date" value="<?php echo esc_attr( $start ); ?>">
    269269                </label>
    270270                <label for="end_date">
    271                         <?php _e( 'End Date', 'wporg' ); ?>
     271                        <?php esc_html_e( 'End Date', 'wporg' ); ?>
    272272                        <input type="text" name="end_date" id="end_date" class="date" value="<?php echo esc_attr( $end ); ?>">
    273273                </label>
    … …  
    275275                <p>
    276276                <label for="time">
    277                         <?php _e( 'Time (UTC)', 'wporg' ); ?>
     277                        <?php esc_html_e( 'Time (UTC)', 'wporg' ); ?>
    278278                        <input type="text" name="time" id="time" class="time" value="<?php echo esc_attr( $time ); ?>">
    279279                </label>
    280280                </p>
    281281                <p class="recurring">
    282                 <?php _e( 'Recurring: ', 'wporg' ); ?><br />
     282                        <?php esc_html_e( 'Recurring: ', 'wporg' ); ?><br />
    283283                <label for="weekly">
    284284                        <input type="radio" name="recurring" value="weekly" id="weekly" class="regular-radio" <?php checked( $recurring, 'weekly' ); ?>>
    285                         <?php _e( 'Weekly', 'wporg' ); ?>
     285                        <?php esc_html_e( 'Weekly', 'wporg' ); ?>
    286286                </label><br />
    287287
    288288                <label for="biweekly">
    289289                        <input type="radio" name="recurring" value="biweekly" id="biweekly" class="regular-radio" <?php checked( $recurring, 'biweekly' ); ?>>
    290                         <?php _e( 'Biweekly', 'wporg' ); ?>
     290                        <?php esc_html_e( 'Biweekly', 'wporg' ); ?>
    291291                </label><br />
    292292
    293293                <label for="occurrence">
    294294                        <input type="radio" name="recurring" value="occurrence" id="occurrence" class="regular-radio" <?php checked( $recurring, 'occurrence' ); ?>>
    295                         <?php _e( 'Occurrence in a month:', 'wporg' ); ?>
     295                        <?php esc_html_e( 'Occurrence in a month:', 'wporg' ); ?>
    296296                </label>
    297297                <label for="week-1">
    298298                        <input type="checkbox" name="occurrence[]" value="1" id="week-1" <?php checked( in_array( 1, $occurrence ) ); ?>>
    299                         <?php _e( '1st', 'wporg' ); ?>
     299                        <?php esc_html_e( '1st', 'wporg' ); ?>
    300300                </label>
    301301                <label for="week-2">
    302302                        <input type="checkbox" name="occurrence[]" value="2" id="week-2" <?php checked( in_array( 2, $occurrence ) ); ?>>
    303                         <?php _e( '2nd', 'wporg' ); ?>
     303                        <?php esc_html_e( '2nd', 'wporg' ); ?>
    304304                </label>
    305305                <label for="week-3">
    306306                        <input type="checkbox" name="occurrence[]" value="3" id="week-3" <?php checked( in_array( 3, $occurrence ) ); ?>>
    307                         <?php _e( '3rd', 'wporg' ); ?>
     307                        <?php esc_html_e( '3rd', 'wporg' ); ?>
    308308                </label>
    309309                <label for="week-4">
    310310                        <input type="checkbox" name="occurrence[]" value="4" id="week-4" <?php checked( in_array( 4, $occurrence ) ); ?>>
    311                         <?php _e( '4th', 'wporg' ); ?>
     311                        <?php esc_html_e( '4th', 'wporg' ); ?>
    312312                </label><br />
    313313
    314314                <label for="monthly">
    315315                        <input type="radio" name="recurring" value="monthly" id="monthly" class="regular-radio" <?php checked( $recurring, 'monthly' ); ?>>
    316                         <?php _e( 'Monthly', 'wporg' ); ?>
     316                        <?php esc_html_e( 'Monthly', 'wporg' ); ?>
    317317                </label>
    318318                </p>
    319319                <p>
    320                 <label for="link"><?php _e( 'Link: ', 'wporg' ); ?>
     320                <label for="link"><?php esc_html_e( 'Link: ', 'wporg' ); ?>
    321321                        <input type="text" name="link" id="link" class="regular-text wide" value="<?php echo esc_url( $link ); ?>">
    322322                </label>
    323323                </p>
    324324                <p>
    325                 <label for="location"><?php _e( 'Location: ', 'wporg' ); ?>
     325                <label for="location"><?php esc_html_e( 'Location: ', 'wporg' ); ?>
    326326                        <input type="text" name="location" id="location" class="regular-text wide" value="<?php echo esc_attr( $location ); ?>">
    327327                </label>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/functions.php

    r14855 r15179  
    389389        ?>
    390390        <div class="make-welcome">
    391                 <a href="#" id="secondary-toggle" onclick="return false;"><strong><?php _e( 'Menu' ); ?></strong></a>
     391                <a href="#" id="secondary-toggle" onclick="return false;"><strong><?php esc_html_e( 'Menu' ); ?></strong></a>
    392392                <div class="entry-meta">
    393393                        <?php edit_post_link( __( 'Edit', 'wporg' ), '', '', $welcome->ID, 'post-edit-link make-welcome-edit-post-link' ); ?>
    … …  
    397397                                data-show="<?php esc_attr_e( 'Show welcome box', 'wporg' ); ?>"
    398398                                data-hide="<?php esc_attr_e( 'Hide welcome box', 'wporg' ); ?>"
    399                         ><span><?php _e( 'Hide welcome box', 'wporg' ); ?></span></button>
     399                        ><span><?php esc_html_e( 'Hide welcome box', 'wporg' ); ?></span></button>
    400400                </div>
    401401                <div class="entry-content clear" id="make-welcome-content" data-cookie="<?php echo $cookie; ?>" data-hash="<?php echo $content_hash; ?>">
    … …  
    440440        ?>
    441441        <noscript class="js-disabled-notice">
    442                 <?php _e( 'Please enable JavaScript to view this page properly.', 'wporg' ); ?>
     442                <?php esc_html_e( 'Please enable JavaScript to view this page properly.', 'wporg' ); ?>
    443443        </noscript>
    444444        <?php
    … …  
    727727        ?>
    728728        <nav role="navigation" id="<?php echo esc_attr( $nav_id ); ?>" class="<?php echo $nav_class; ?>">
    729                 <h2 class="screen-reader-text"><?php _e( 'Post navigation', 'wporg' ); ?></h2>
     729                <h2 class="screen-reader-text"><?php esc_html_e( 'Post navigation', 'wporg' ); ?></h2>
    730730
    731731        <?php if ( is_single() ) : // navigation links for single posts ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/search.php

    r14156 r15179  
    2222                                <h1 class="page-title">
    2323                                        <?php if ( $is_handbook ) {
    24                                                 printf( __( 'Handbook Search Results for: %s', 'wporg' ), '<span>' . get_search_query() . '</span>' );
     24                                                /* translators: %s: Search query. */
     25                                                printf( esc_html__( 'Handbook Search Results for: %s', 'wporg' ), '<span>' . get_search_query() . '</span>' );
    2526                                        } else {
    26                                                 printf( __( 'Search Results for: %s', 'wporg' ), '<span>' . get_search_query() . '</span>' );
     27                                                /* translators: %s: Search query. */
     28                                                printf( esc_html__( 'Search Results for: %s', 'wporg' ), '<span>' . get_search_query() . '</span>' );
    2729                                        } ?>
    2830
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/searchform.php

    r14020 r15179  
    88<?php $search_url = function_exists( 'wporg_is_handbook' ) && wporg_is_handbook() ? wporg_get_current_handbook_home_url() : home_url( '/' ); ?>
    99<form method="get" id="searchform" class="searchform" action="<?php echo esc_url( $search_url ); ?>" role="search">
    10         <label for="s" class="screen-reader-text"><?php _ex( 'Search', 'label', 'wporg' ); ?></label>
    11         <input type="search" class="field" name="s" value="<?php echo get_search_query(); ?>" id="s" placeholder="<?php _ex( 'Search &hellip;', 'placeholder', 'wporg' ); ?>">
     10        <label for="s" class="screen-reader-text"><?php echo esc_html_x( 'Search', 'label', 'wporg' ); ?></label>
     11        <input type="search" class="field" name="s" value="<?php echo get_search_query(); ?>" id="s" placeholder="<?php echo esc_attr_x( 'Search &hellip;', 'placeholder', 'wporg' ); ?>">
    1212        <input type="submit" class="submit" id="searchsubmit" value="<?php echo esc_attr_x( 'Search', 'submit button', 'wporg' ); ?>">
    1313</form>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/single-handbook.php

    r14145 r15179  
    3838                        printf(
    3939                                /* translators: %s: Date of last update. */
    40                                 '<p class="handbook-last-updated">' . __( 'Last updated: %s', 'wporg' ) . '</p>',
     40                                '<p class="handbook-last-updated">' . esc_html__( 'Last updated: %s', 'wporg' ) . '</p>',
    4141                                sprintf(
    4242                                        '<time datetime="%s">%s</time>',
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/backup-codes.php

    r14134 r15179  
    4040<h2 class="center"><?php
    4141        if ( $used_backup_code ) {
    42                 _e( 'Backup Code used', 'wporg' );
     42                esc_html_e( 'Backup Code used', 'wporg' );
    4343        } else {
    44                 _e( 'Account Backup Codes', 'wporg' );
     44                esc_html_e( 'Account Backup Codes', 'wporg' );
    4545        }
    4646?></h2>
    … …  
    5050<p><?php
    5151        if ( $used_backup_code ) {
    52                 _e( "You've logged in with a backup code.<br>These codes are intended to be used when you lose access to your authentication device.<br>Please take a moment to review your account settings and ensure your two-factor settings are up-to-date.", 'wporg' );
     52                echo wp_kses_post( __( 'You&#8217;ve logged in with a backup code.<br>These codes are intended to be used when you lose access to your authentication device.<br>Please take a moment to review your account settings and ensure your two-factor settings are up-to-date.', 'wporg' ) );
    5353        } else {
    5454                if ( ! $codes_available ) {
    55                         _e( 'You do not have any backup codes remaining.', 'wporg' );
     55                        esc_html_e( 'You do not have any backup codes remaining.', 'wporg' );
    5656                } else {
    5757                        printf(
    58                                 _n(
    59                                         'You have %s backup code remaining.',
    60                                         'You have %s backup codes remaining.',
    61                                         $codes_available,
    62                                         'wporg'
     58                                esc_html(
     59                                        /* translators: %s: Number of backup codes. */
     60                                        _n(
     61                                                'You have %s backup code remaining.',
     62                                                'You have %s backup codes remaining.',
     63                                                $codes_available,
     64                                                'wporg'
     65                                        )
    6366                                ),
    6467                                '<code>' . number_format_i18n( $codes_available ) . '</code>'
    … …  
    7477
    7578<p><?php
    76         _e( 'If you run out of backup codes and no longer have access to your authentication device, you are at risk of being locked out of your WordPress.org account if we are unable to verify account ownership.', 'wporg' );
     79        esc_html_e( 'If you run out of backup codes and no longer have access to your authentication device, you are at risk of being locked out of your WordPress.org account if we are unable to verify account ownership.', 'wporg' );
    7780?></p>
    7881
    7982<p>&nbsp;</p>
    8083
    81 <p><a href="<?php echo esc_url( $account_settings_url ); ?>"><button class="button-primary"><?php _e( 'View my account settings', 'wporg' ); ?></button></a></p>
     84<p><a href="<?php echo esc_url( $account_settings_url ); ?>"><button class="button-primary"><?php esc_html_e( 'View my account settings', 'wporg' ); ?></button></a></p>
    8285
    8386<?php if ( $can_ignore ) { ?>
    8487        <p id="nav">
    85                 <a href="<?php echo esc_url( $redirect_to ); ?>" style="font-style: italic;"><?php _e( "I'll do this later", 'wporg' ); ?></a>
     88                <a href="<?php echo esc_url( $redirect_to ); ?>" style="font-style: italic;"><?php esc_html_e( 'I&#8217;ll do this later', 'wporg' ); ?></a>
    8689        </p>
    8790<?php } ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/checkemail.php

    r10898 r15179  
    99?>
    1010
    11 <p class="center singleline"><?php _e( 'Check your email for a confirmation link.', 'wporg' ); ?></p>
     11<p class="center singleline"><?php esc_html_e( 'Check your email for a confirmation link.', 'wporg' ); ?></p>
    1212
    1313<p id="nav">
    14         <a href="/"><?php _e( '&larr; Back to login', 'wporg' ); ?></a> &nbsp; • &nbsp;
    15         <a href="<?php echo wporg_login_wordpress_url(); ?>"><?php _e( 'WordPress.org', 'wporg' ); ?></a>
     14        <a href="/"><?php esc_html_e( '&larr; Back to login', 'wporg' ); ?></a> &nbsp; • &nbsp;
     15        <a href="<?php echo wporg_login_wordpress_url(); ?>"><?php esc_html_e( 'WordPress.org', 'wporg' ); ?></a>
    1616</p>
    1717
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/enable-2fa.php

    r14134 r15179  
    3131?>
    3232
    33 <h2 class="center"><?php _e( 'Two-Factor Authentication', 'wporg' ); ?></h2>
     33<h2 class="center"><?php esc_html_e( 'Two-Factor Authentication', 'wporg' ); ?></h2>
    3434
    3535<p>&nbsp;</p>
    … …  
    3737<p><?php
    3838        if ( $requires_2fa ) {
    39                 _e( 'WordPress.org now requires that your account be protected by two-factor authentication. Some capabilities may be limited until your account is protected.', 'wporg' );
     39                esc_html_e( 'WordPress.org now requires that your account be protected by two-factor authentication. Some capabilities may be limited until your account is protected.', 'wporg' );
    4040        } else {
    41                 _e( "WordPress.org supports two-factor authentication and you'll soon be required to configure it on your account.", 'wporg' );
     41                esc_html_e( 'WordPress.org supports two-factor authentication and you&#8217;ll soon be required to configure it on your account.', 'wporg' );
    4242        }
    4343?></p>
    … …  
    4545<p>&nbsp;</p>
    4646
    47 <p><?php printf( __( 'For more information on our two-factor options, please read the <a href="%s" target="_blank">documentation</a>.', 'wporg' ), 'https://make.wordpress.org/meta/handbook/tutorials-guides/configuring-two-factor-authentication/' ); ?></p>
     47<?php /* translators: %s: Documentation URL. */ ?>
     48<p><?php printf( wp_kses_post( __( 'For more information on our two-factor options, please read the <a href="%s" target="_blank">documentation</a>.', 'wporg' ) ), 'https://make.wordpress.org/meta/handbook/tutorials-guides/configuring-two-factor-authentication/' ); ?></p>
    4849
    4950<p>&nbsp;</p>
    5051
    51 <p><a href="<?php echo esc_url( add_query_arg( 'redirect_to', urlencode( $redirect_to ), get_onboarding_account_url() ) ); ?>"><button class="button-primary"><?php _e( "OK, I'll setup Two-Factor now.", 'wporg' ); ?></button></a></p>
     52<p><a href="<?php echo esc_url( add_query_arg( 'redirect_to', urlencode( $redirect_to ), get_onboarding_account_url() ) ); ?>"><button class="button-primary"><?php esc_html_e( 'OK, I&#8217;ll setup Two-Factor now.', 'wporg' ); ?></button></a></p>
    5253
    5354<?php if ( ! $requires_2fa ) { ?>
    5455<p id="nav">
    55         <a href="<?php echo esc_url( $redirect_to ); ?>" style="font-style: italic;"><?php _e( "I'll do it later", 'wporg' ); ?></a>
     56        <a href="<?php echo esc_url( $redirect_to ); ?>" style="font-style: italic;"><?php esc_html_e( 'I&#8217;ll do it later', 'wporg' ); ?></a>
    5657</p>
    5758<?php } ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-registration.php

    r15003 r15179  
    6969                        wp_die( $pre_register_error );
    7070                }
    71                 wp_die( __( 'Registration Blocked. Please stop.', 'wporg' ) );
     71                wp_die( esc_html__( 'Registration Blocked. Please stop.', 'wporg' ) );
    7272        }
    7373
    … …  
    161161        $inserted = wporg_update_pending_user( $pending_user );
    162162        if ( ! $inserted ) {
    163                 wp_die( __( 'Error! Something went wrong with your registration. Try again?', 'wporg' ) );
     163                wp_die( esc_html__( 'Error! Something went wrong with your registration. Try again?', 'wporg' ) );
    164164        }
    165165
    … …  
    373373        );
    374374        if ( ! $user_id ) {
    375                 wp_die( __( 'Error! Something went wrong with your registration. Try again?', 'wporg' ) );
     375                wp_die( esc_html__( 'Error! Something went wrong with your registration. Try again?', 'wporg' ) );
    376376        }
    377377
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php

    r15090 r15179  
    331331                        <label for="language-switcher-locales">
    332332                                <span aria-hidden="true" class="dashicons dashicons-translation"></span>
    333                                 <span class="screen-reader-text"><?php _e( 'Select the language:', 'wporg' ); ?></span>
     333                                <span class="screen-reader-text"><?php esc_html_e( 'Select the language:', 'wporg' ); ?></span>
    334334                        </label>
    335335                        <select id="language-switcher-locales" name="locale">
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/linkexpired.php

    r13704 r15179  
    1212?>
    1313
    14 <h2 class="center"><?php _e( 'Link Expired', 'wporg' ); ?></h2>
     14<h2 class="center"><?php esc_html_e( 'Link Expired', 'wporg' ); ?></h2>
    1515
    1616<?php
    1717if ( 'register' == $reason && $user ) {
    18         echo '<p class="center">' . __( "The link you've followed has expired.", 'wporg' ) . '</p>';
     18        echo '<p class="center">' . esc_html__( 'The link you&#8217;ve followed has expired.', 'wporg' ) . '</p>';
    1919
    2020        echo '<p class="center"><a href="' . esc_url( home_url( '/register/' . urlencode( $user ) ) ) . '">' .
    2121                sprintf(
    2222                        /* translators: %s: An account name. */
    23                         __( 'Start over, and register %s.', 'wporg' ),
     23                        esc_html__( 'Start over, and register %s.', 'wporg' ),
    2424                        '<code>' . esc_html( $user ) . '</code>'
    2525                ) .
    2626                '</a></p>';
    2727} elseif ( 'lostpassword' == $reason && $user ) {
    28         echo '<p class="center">' . __( "The link you've followed has expired.", 'wporg' ) . '</p>';
     28        echo '<p class="center">' . esc_html__( 'The link you&#8217;ve followed has expired.', 'wporg' ) . '</p>';
    2929        echo '<p class="center"><a href="' . esc_url( home_url( '/lostpassword/'  . urlencode( $user ) ) ) . '">' .
    30                         __( 'Reset your password.', 'wporg' ) .
     30                        esc_html__( 'Reset your password.', 'wporg' ) .
    3131                        '</a></p>';
    3232} elseif ( 'account-created' === $reason ) {
    33         echo '<p class="center">' . __( "That account has already been created.", 'wporg' ) . '</p>';
     33        echo '<p class="center">' . esc_html__( 'That account has already been created.', 'wporg' ) . '</p>';
    3434
    35         echo '<p class="center"><a href="' . esc_url( add_query_arg( 'user', $user, home_url() ) ) . '">' . __( 'Please log in to continue.', 'wporg' ) . '</a></p>';
     35        echo '<p class="center"><a href="' . esc_url( add_query_arg( 'user', $user, home_url() ) ) . '">' . esc_html__( 'Please log in to continue.', 'wporg' ) . '</a></p>';
    3636
    3737        echo '<p class="center"><a href="' . esc_url( home_url( '/lostpassword/'  . urlencode( $user ) ) ) . '">' .
    38                 __( 'Reset your password.', 'wporg' ) .
     38                esc_html__( 'Reset your password.', 'wporg' ) .
    3939                '</a></p>';
    4040
    4141} elseif ( 'register-logged-in' === $reason ) {
    4242        echo '<p class="center">' . sprintf(
    43                 __( 'Please do not make multiple WordPress.org accounts. Please read the <a href="%s">Forum Guidelines</a> for more information.', 'wporg' ),
     43                /* translators: %s: Forum guidelines URL. */
     44                wp_kses_post( __( 'Please do not make multiple WordPress.org accounts. Please read the <a href="%s">Forum Guidelines</a> for more information.', 'wporg' ) ),
    4445                'https://wordpress.org/support/guidelines/#do-not-create-multiple-accounts-sockpuppets'
    4546        ) . '</p>';
    4647
    47         echo '<p class="center">' . __( 'Please log out, and follow the link again to complete the registration.', 'wporg' ) . '</p>';
     48        echo '<p class="center">' . esc_html__( 'Please log out, and follow the link again to complete the registration.', 'wporg' ) . '</p>';
    4849
    4950        echo '<p class="center">' . sprintf(
    5051                /* translators: %s: logout URL */
    51                 __( 'Do you really want to <a href="%s">log out</a>?', 'wporg' ),
     52                wp_kses_post( __( 'Do you really want to <a href="%s">log out</a>?', 'wporg' ) ),
    5253                esc_url( wp_logout_url() )
    5354        ) . '</p>';
    5455
    5556} else {
    56         echo '<p class="center">' . __( "The link you've followed has expired.", 'wporg' ) . '</p>';
     57        echo '<p class="center">' . esc_html__( 'The link you&#8217;ve followed has expired.', 'wporg' ) . '</p>';
    5758}
    5859?>
    5960
    6061<p id="nav">
    61         <a href="/"><?php _e( '&larr; Back to login', 'wporg' ); ?></a>  &nbsp; • &nbsp;
    62         <a href="<?php echo wporg_login_wordpress_url(); ?>"><?php _e( 'WordPress.org', 'wporg' ); ?></a>
     62        <a href="/"><?php esc_html_e( '&larr; Back to login', 'wporg' ); ?></a>  &nbsp; • &nbsp;
     63        <a href="<?php echo wporg_login_wordpress_url(); ?>"><?php esc_html_e( 'WordPress.org', 'wporg' ); ?></a>
    6364</p>
    6465
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/loggedout.php

    r14481 r15179  
    99?>
    1010
    11 <p class="center"><?php _e( 'You are now logged out.', 'wporg' ); ?></p>
     11<p class="center"><?php esc_html_e( 'You are now logged out.', 'wporg' ); ?></p>
    1212
    1313<?php
    … …  
    2323                printf(
    2424                        /* translators: 1: url, 2: Hostname, ie. wordcamp.org */
    25                         __( 'Return to <a href="%1$s">%2$s</a>.', 'wporg' ),
     25                        wp_kses_post( __( 'Return to <a href="%1$s">%2$s</a>.', 'wporg' ) ),
    2626                        esc_url( $redirect_to ),
    2727                        esc_html( $hostname )
    … …  
    3232
    3333<p id="nav">
    34         <a href="/"><?php _e( '&larr; Back to login', 'wporg' ); ?></a> &nbsp; • &nbsp;
    35         <a href="<?php echo wporg_login_wordpress_url(); ?>"><?php _e( 'WordPress.org', 'wporg' ); ?></a>
     34        <a href="/"><?php esc_html_e( '&larr; Back to login', 'wporg' ); ?></a> &nbsp; • &nbsp;
     35        <a href="<?php echo wporg_login_wordpress_url(); ?>"><?php esc_html_e( 'WordPress.org', 'wporg' ); ?></a>
    3636</p>
    3737
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/login.php

    r14334 r15179  
    2727        <p class="intro"><?php echo wporg_login_wporg_is_starpress(); ?></p>
    2828        <p class="login-username">
    29                 <label for="user_login"><?php _e( 'Username or Email Address', 'wporg' ); ?></label>
     29                <label for="user_login"><?php esc_html_e( 'Username or Email Address', 'wporg' ); ?></label>
    3030                <input type="text" name="log" id="user_login" class="input" value="<?php echo esc_attr( $username ); ?>" size="20" />
    3131        </p>
    3232        <p class="login-password">
    33                 <label for="user_pass"><?php _e( 'Password', 'wporg' ); ?></label>
     33                <label for="user_pass"><?php esc_html_e( 'Password', 'wporg' ); ?></label>
    3434                <span class="wp-pwd" style="display:block;">
    3535                        <input type="password" name="pwd" id="user_pass" class="input password-input" value="" size="20" />
    … …  
    4040        </p>
    4141        <?php do_action( 'login_form' ); ?>
    42         <p class="login-remember"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" /> <?php _e( 'Remember me', 'wporg' ); ?></label></p>
     42        <p class="login-remember"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" /> <?php esc_html_e( 'Remember me', 'wporg' ); ?></label></p>
    4343        <p class="login-submit">
    4444                <input type="submit" name="wp-submit" id="wp-submit" class="button button-primary" value="<?php esc_attr_e( 'Log In', 'wporg' ); ?>" />
    … …  
    4848
    4949<p id="nav">
    50         <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php _e( 'Lost your password?', 'wporg' ); ?>"><?php _e( 'Lost your password?', 'wporg' ); ?></a> &nbsp; • &nbsp;
    51         <a href="<?php echo esc_url( wp_registration_url() ); ?>" title="<?php _e( 'Create an account', 'wporg' ); ?>"><?php _e( 'Create an account', 'wporg' ); ?></a>
     50        <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Lost your password?', 'wporg' ); ?>"><?php esc_html_e( 'Lost your password?', 'wporg' ); ?></a> &nbsp; • &nbsp;
     51        <a href="<?php echo esc_url( wp_registration_url() ); ?>" title="<?php esc_attr_e( 'Create an account', 'wporg' ); ?>"><?php esc_html_e( 'Create an account', 'wporg' ); ?></a>
    5252</p>
    5353
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/logout.php

    r15170 r15179  
    1616get_header();
    1717?>
    18 <p class="intro"><?php _e( 'You are attempting to log out of WordPress.org.', 'wporg' ); ?></p>
     18<p class="intro"><?php esc_html_e( 'You are attempting to log out of WordPress.org.', 'wporg' ); ?></p>
    1919
    2020<?php
    … …  
    2222printf(
    2323        /* translators: %s: logout URL */
    24         __( 'Do you really want to <a href="%s">log out</a>?', 'wporg' ),
     24        wp_kses_post( __( 'Do you really want to <a href="%s">log out</a>?', 'wporg' ) ),
    2525        esc_url( wp_logout_url( $redirect_to ) )
    2626);
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/lostpassword.php

    r14098 r15179  
    1212
    1313<form name="lostpasswordform" id="lostpasswordform" action="/wp-login.php?action=lostpassword" method="post">
    14         <p class="intro"><?php _e( 'Please enter your username or email address. You will receive a link to create a new password via email.', 'wporg' ); ?></p>
     14        <p class="intro"><?php esc_html_e( 'Please enter your username or email address. You will receive a link to create a new password via email.', 'wporg' ); ?></p>
    1515        <p>
    16                 <label for="user_login"><?php _e( 'Username or Email', 'wporg' ); ?>
     16                <label for="user_login"><?php esc_html_e( 'Username or Email', 'wporg' ); ?>
    1717                <input type="text" name="user_login" id="user_login" value="<?php echo esc_attr( $user ); ?>" size="20"></label>
    1818        </p>
    … …  
    2424</form>
    2525<p id="nav">
    26         <a href="/"><?php _e( '&larr; Back to login', 'wporg' ); ?></a>
     26        <a href="/"><?php esc_html_e( '&larr; Back to login', 'wporg' ); ?></a>
    2727</p>
    2828
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/partials/register-profilefields.php

    r14123 r15179  
    2121?>
    2222<p class="login-website">
    23         <label for="user_website"><?php _e( 'Website', 'wporg' ); ?></label>
     23        <label for="user_website"><?php esc_html_e( 'Website', 'wporg' ); ?></label>
    2424        <input type="text" name="user_fields[url]" id="user_url" class="input" value="<?php echo esc_attr( $fields['url'] ?? '' ); ?>" size="20" placeholder="https://" data-pattern-after-blur="(https?:\/\/)?([a-zA-Z0-9\-]+\.\S+)?" />
    25         <span class="invalid-message"><?php _e( 'That URL appears to be invalid.', 'wporg' ); ?></span>
     25        <span class="invalid-message"><?php esc_html_e( 'That URL appears to be invalid.', 'wporg' ); ?></span>
    2626</p>
    2727
    2828<p class="login-location">
    29         <label for="user_location"><?php _e( 'Location', 'wporg' ); ?></label>
     29        <label for="user_location"><?php esc_html_e( 'Location', 'wporg' ); ?></label>
    3030        <input type="text" name="user_fields[from]" id="user_location" class="input" value="<?php echo esc_attr( $fields['from'] ?? '' ); ?>" size="20" />
    3131</p>
    3232
    3333<p class="login-occupation">
    34         <label for="user_occupation"><?php _e( 'Occupation', 'wporg' ); ?></label>
     34        <label for="user_occupation"><?php esc_html_e( 'Occupation', 'wporg' ); ?></label>
    3535        <input type="text" name="user_fields[occ]" id="user_occupation" class="input" value="<?php echo esc_attr( $fields['occ'] ?? '' ); ?>" size="20" />
    3636</p>
    3737
    3838<p class="login-interests">
    39         <label for="user_interests"><?php _e( 'Interests', 'wporg' ); ?></label>
     39        <label for="user_interests"><?php esc_html_e( 'Interests', 'wporg' ); ?></label>
    4040        <input type="text" name="user_fields[interests]" id="user_interests" class="input" value="<?php echo esc_attr( $fields['interests'] ?? '' ); ?>" size="20" />
    4141</p>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/pending-create.php

    r15044 r15179  
    153153                        printf(
    154154                                /* translators: %s Email address */
    155                                 __( 'Your account is pending approval. You will receive an email at %s to set your password when approved.', 'wporg' ) . '<br>' .
    156                                 __( 'Please contact %s for more details.', 'wporg' ),
     155                                esc_html__( 'Your account is pending approval. You will receive an email at %s to set your password when approved.', 'wporg' ) . '<br>' .
     156                                /* translators: %s: Support email address. */
     157                                esc_html__( 'Please contact %s for more details.', 'wporg' ),
    157158                                '<code>' . esc_html( $pending_user['user_email'] ) . '</code>',
    158159                                '<a href="mailto:' . $sso::SUPPORT_EMAIL . '">' . $sso::SUPPORT_EMAIL . '</a>'
    … …  
    163164
    164165        <p class="intro">
    165                 <?php _e( 'Set your password and complete your WordPress.org Profile information.', 'wporg' ); ?>
     166                <?php esc_html_e( 'Set your password and complete your WordPress.org Profile information.', 'wporg' ); ?>
    166167        </p>
    167168
    168169        <p class="login-login">
    169                 <label for="user_login"><?php _e( 'Username', 'wporg' ); ?></label>
     170                <label for="user_login"><?php esc_html_e( 'Username', 'wporg' ); ?></label>
    170171                <input type="text" disabled="disabled" class="disabled" value="<?php echo esc_attr( $activation_user ); ?>" size="20" />
    171172        </p>
    … …  
    173174        <div class="user-pass1-wrap" <?php echo ( $pending_user['cleared'] ? '' : "style='display:none;'" ); ?>>
    174175                <p>
    175                         <label for="pass1"><?php _e( 'Password', 'wporg' ); ?></label>
     176                        <label for="pass1"><?php esc_html_e( 'Password', 'wporg' ); ?></label>
    176177                </p>
    177178
    … …  
    184185                                <span class="dashicons dashicons-hidden" aria-hidden="true"></span>
    185186                        </button>
    186                         <div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator', 'wporg' ); ?></div>
     187                        <div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php esc_html_e( 'Strength indicator', 'wporg' ); ?></div>
    187188                </div>
    188189        </div>
    … …  
    195196        <?php
    196197                if ( $error_recapcha_status ) {
    197                         echo '<div class="message error"><p>' . __( 'Please try again.', 'wporg' ) . '</p></div>';
     198                        echo '<div class="message error"><p>' . esc_html__( 'Please try again.', 'wporg' ) . '</p></div>';
    198199                }
    199200        ?>
    … …  
    206207
    207208<p id="nav">
    208         <a href="<?php echo wporg_login_wordpress_url(); ?>"><?php _e( 'WordPress.org', 'wporg' ); ?></a>
     209        <a href="<?php echo wporg_login_wordpress_url(); ?>"><?php esc_html_e( 'WordPress.org', 'wporg' ); ?></a>
    209210</p>
    210211
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/pending-profile.php

    r15012 r15179  
    6767        if ( $pending_user['cleared'] ) {
    6868                printf(
    69                         '<h2>' . __( 'Confirm your email address', 'wporg' ) . '</h2>' .
     69                        '<h2>' . esc_html__( 'Confirm your email address', 'wporg' ) . '</h2>' .
    7070                        /* translators: %s Email address */
    71                         '<p>' . __( 'Please check your email %s for a confirmation link to set your password.', 'wporg' ) . '</p>' .
    72                         '<p>' . '<a href="#" class="resend" data-account="%s">' . __( 'Resend confirmation email.', 'wporg' ) . '</a></p>' .
    73                         ( $email_change_available ? '<a href="#" class="change-email">' . __( 'Incorrect email? Update email address.', 'wporg' ) . '</a>' : '' ),
     71                        '<p>' . esc_html__( 'Please check your email %s for a confirmation link to set your password.', 'wporg' ) . '</p>' .
     72                        '<p><a href="#" class="resend" data-account="%s">' . esc_html__( 'Resend confirmation email.', 'wporg' ) . '</a></p>' .
     73                        ( $email_change_available ? '<a href="#" class="change-email">' . esc_html__( 'Incorrect email? Update email address.', 'wporg' ) . '</a>' : '' ),
    7474                        '<code>' . esc_html( $pending_user['user_email'] ) . '</code>',
    7575                        esc_attr( $pending_user['user_email'] )
    … …  
    7777        } else {
    7878                printf(
    79                         '<h2>' . __( 'Your account is pending approval', 'wporg' ) . '</h2>' .
     79                        '<h2>' . esc_html__( 'Your account is pending approval', 'wporg' ) . '</h2>' .
    8080                        /* translators: %s Email address */
    81                         '<p>' . __( 'You will receive an email at %s to set your password when approved.', 'wporg' ) . '</p>' .
    82                         '<p>' . __( 'Please contact %s for more details.', 'wporg' ) . '</p>' .
    83                         ( $email_change_available ? '<a href="#" class="change-email">' . __( 'Incorrect email? Update email address.', 'wporg' ) . '</a>' : '' ),
     81                        '<p>' . esc_html__( 'You will receive an email at %s to set your password when approved.', 'wporg' ) . '</p>' .
     82                        /* translators: %s: Support email address. */
     83                        '<p>' . esc_html__( 'Please contact %s for more details.', 'wporg' ) . '</p>' .
     84                        ( $email_change_available ? '<a href="#" class="change-email">' . esc_html__( 'Incorrect email? Update email address.', 'wporg' ) . '</a>' : '' ),
    8485                        '<code>' . esc_html( $pending_user['user_email'] ) . '</code>',
    8586                        '<a href="mailto:' . $sso::SUPPORT_EMAIL . '">' . $sso::SUPPORT_EMAIL . '</a>'
    … …  
    9697
    9798        <p class="login-email hidden">
    98                 <label for="user_email"><?php _e( 'Email', 'wporg' ); ?></label>
     99                <label for="user_email"><?php esc_html_e( 'Email', 'wporg' ); ?></label>
    99100                <input type="text" name="user_email" value="<?php echo esc_attr( $pending_user['user_email'] ); ?>" size="20" maxlength="100" />
    100101        </p>
    … …  
    117118
    118119<p id="nav">
    119         <a href="<?php echo wporg_login_wordpress_url(); ?>"><?php _e( 'WordPress.org', 'wporg' ); ?></a>
     120        <a href="<?php echo wporg_login_wordpress_url(); ?>"><?php esc_html_e( 'WordPress.org', 'wporg' ); ?></a>
    120121</p>
    121122
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/register.php

    r14326 r15179  
    8383
    8484<?php if ( ! $user_registration_available ) : ?>
    85                 <p><?php printf( __( 'New user registration is currently unavailable. Please check back after the <a href="%s">holiday break</a>.', 'wporg' ), 'https://wordpress.org/news/2024/12/holiday-break/' ); ?></p>
     85                <?php /* translators: %s: Holiday break announcement URL. */ ?>
     86                <p><?php printf( wp_kses_post( __( 'New user registration is currently unavailable. Please check back after the <a href="%s">holiday break</a>.', 'wporg' ) ), 'https://wordpress.org/news/2024/12/holiday-break/' ); ?></p>
    8687<?php else: ?>
    8788
    88 <p class="intro"><?php _e( 'Create a WordPress.org account to start contributing to WordPress, get help in the support forums, or rate and review themes and plugins.', 'wporg' ); ?></p>
     89<p class="intro"><?php esc_html_e( 'Create a WordPress.org account to start contributing to WordPress, get help in the support forums, or rate and review themes and plugins.', 'wporg' ); ?></p>
    8990
    9091<form name="registerform" id="registerform" action="/register" method="post">
    9192
    9293        <p class="login-username">
    93                 <label for="user_login"><?php _e( 'Username', 'wporg' ); ?></label>
     94                <label for="user_login"><?php esc_html_e( 'Username', 'wporg' ); ?></label>
    9495                <input type="text" name="user_login" id="user_login" class="input <?php if ( $error_user_login ) echo 'error'; ?>" value="<?php echo esc_attr( $user_login ) ?>" size="20" maxlength="60" data-pattern-after-blur="[0-9a-z]{0,60}" required />
    95                 <span class="small"><?php _e( 'Only lower case letters (a-z) and numbers (0-9) are allowed.', 'wporg' ); ?></span>
     96                <span class="small"><?php esc_html_e( 'Only lower case letters (a-z) and numbers (0-9) are allowed.', 'wporg' ); ?></span>
    9697        </p>
    9798        <?php
    … …  
    107108
    108109        <p class="login-email">
    109                 <label for="user_email"><?php _e( 'Email', 'wporg' ); ?></label>
     110                <label for="user_email"><?php esc_html_e( 'Email', 'wporg' ); ?></label>
    110111                <input type="email" name="user_email" id="user_email" class="input <?php if ( $error_user_email ) echo 'error'; ?>" value="<?php echo esc_attr( $user_email ) ?>" size="20" maxlength="100" data-pattern-after-blur=".+@.+\..+" required />
    111                 <span class="small"><?php _e( 'A link to set your password will be sent here.', 'wporg' ); ?></span>
     112                <span class="small"><?php esc_html_e( 'A link to set your password will be sent here.', 'wporg' ); ?></span>
    112113        </p>
    113114        <?php
    … …  
    129130                                printf(
    130131                                        /* translators: %s: List of linked policies, for example: <a>Privacy Policy</a> and <a>Terms of Service</a> */
    131                                         _n( 'I have read and accept the %s', 'I have read and accept the %s', 1, 'wporg' ),
     132                                        esc_html( _n( 'I have read and accept the %s', 'I have read and accept the %s', 1, 'wporg' ) ),
    132133                                        wp_sprintf_l( '%l', [
    133134                                                "<a href='https://{$localised_domain}/about/privacy/'>" . __( 'Privacy Policy', 'wporg' ) . '</a>',
    … …  
    143144                <label for="user_mailinglist">
    144145                        <input name="user_mailinglist" type="checkbox" id="user_mailinglist" value="true" <?php checked( $user_mailinglist, true ); ?>>
    145                         <?php _e( 'Subscribe to WordPress Announcements mailing list (a few messages a year)', 'wporg' ); ?>
     146                        <?php esc_html_e( 'Subscribe to WordPress Announcements mailing list (a few messages a year)', 'wporg' ); ?>
    146147                </label>
    147148        </p>
    148149        <?php
    149150                if ( $error_recapcha_status ) {
    150                         echo '<div class="message error"><p>' . __( 'Please try again.', 'wporg' ) . '</p></div>';
     151                        echo '<div class="message error"><p>' . esc_html__( 'Please try again.', 'wporg' ) . '</p></div>';
    151152                }
    152153        ?>
    … …  
    161162
    162163<p id="nav">
    163         <a href="/" title="<?php esc_attr_e( 'Already have an account?', 'wporg' ); ?>"><?php _e( 'Already have an account?', 'wporg' ); ?></a> &nbsp; • &nbsp;
    164         <a href="<?php echo wporg_login_wordpress_url(); ?>"><?php _e( 'WordPress.org', 'wporg' ); ?></a>
     164        <a href="/" title="<?php esc_attr_e( 'Already have an account?', 'wporg' ); ?>"><?php esc_html_e( 'Already have an account?', 'wporg' ); ?></a> &nbsp; • &nbsp;
     165        <a href="<?php echo wporg_login_wordpress_url(); ?>"><?php esc_html_e( 'WordPress.org', 'wporg' ); ?></a>
    165166</p>
    166167
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/updated-tos.php

    r12429 r15179  
    5959
    6060<p>
    61         <a href="https://<?php echo $localised_domain; ?>/about/privacy/"><?php _e( 'Privacy Policy', 'wporg' ); ?></a>
     61        <a href="<?php echo esc_url( 'https://' . $localised_domain . '/about/privacy/' ); ?>"><?php esc_html_e( 'Privacy Policy', 'wporg' ); ?></a>
    6262</p>
    6363<?php /* ?>
    … …  
    8585
    8686<p id="nav">
    87         <a href="/"><?php _e( '&larr; Back to login', 'wporg' ); ?></a> &nbsp; • &nbsp;
    88         <a href="<?php echo wporg_login_wordpress_url(); ?>"><?php _e( 'WordPress.org', 'wporg' ); ?></a>
     87        <a href="/"><?php esc_html_e( '&larr; Back to login', 'wporg' ); ?></a> &nbsp; • &nbsp;
     88        <a href="<?php echo wporg_login_wordpress_url(); ?>"><?php esc_html_e( 'WordPress.org', 'wporg' ); ?></a>
    8989</p>
    9090
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/front-page.php

    r15170 r15179  
    4848?>
    4949        <aside id="download-mobile">
    50                 <span class="download-ready"><?php _e( 'Ready to get started?', 'wporg' ); ?></span><a class="button download-button" href="/download/"><?php _e( 'Get WordPress', 'wporg' ); ?></a>
     50                <span class="download-ready"><?php esc_html_e( 'Ready to get started?', 'wporg' ); ?></span><a class="button download-button" href="/download/"><?php esc_html_e( 'Get WordPress', 'wporg' ); ?></a>
    5151        </aside>
    5252
    … …  
    8686        <header id="masthead" class="site-header" role="banner">
    8787                <div class="site-branding">
    88                         <p class="site-title"><?php _e( 'Meet WordPress', 'wporg' ); ?></p>
    89 
    90                         <p class="site-description"><?php _e( 'WordPress is open source software you can use to create a beautiful website, blog, or app.', 'wporg' ); ?></p>
     88                        <p class="site-title"><?php esc_html_e( 'Meet WordPress', 'wporg' ); ?></p>
     89
     90                        <p class="site-description"><?php esc_html_e( 'WordPress is open source software you can use to create a beautiful website, blog, or app.', 'wporg' ); ?></p>
    9191                </div><!-- .site-branding -->
    9292        </header><!-- #masthead -->
    … …  
    9797
    9898                        <section class="intro">
    99                                 <p class="subheading"><?php _e( 'Beautiful designs, powerful features, and the freedom to build anything you want. WordPress is both free and priceless at the same time.', 'wporg' ); ?></p>
     99                                <p class="subheading"><?php esc_html_e( 'Beautiful designs, powerful features, and the freedom to build anything you want. WordPress is both free and priceless at the same time.', 'wporg' ); ?></p>
    100100                                <div class="screenshots">
    101101                                        <img src="https://s.w.org/images/home/screen-themes.png?4" class="dashboard" />
    … …  
    105105
    106106                        <section class="showcase">
    107                                 <h2><?php _e( 'Trusted by the Best', 'wporg' ); ?></h2>
     107                                <h2><?php esc_html_e( 'Trusted by the Best', 'wporg' ); ?></h2>
    108108                                <p class="subheading">
    109109                                        <?php
    110110                                        printf(
    111111                                                /* translators: WordPress market share: 30 - Note: The following percent sign is '%%' for escaping purposes; */
    112                                                 __( '%s%% of the web uses WordPress, from hobby blogs to the biggest news sites online.', 'wporg' ),
     112                                                esc_html__( '%s%% of the web uses WordPress, from hobby blogs to the biggest news sites online.', 'wporg' ),
    113113                                                number_format_i18n( WP_MARKET_SHARE )
    114114                                        );
    … …  
    118118
    119119                                </div>
    120                                 <p class="cta-link"><a href="https://wordpress.org/showcase/"><?php _e( 'Discover more sites built with WordPress', 'wporg' ); ?></a></p>
     120                                <p class="cta-link"><a href="https://wordpress.org/showcase/"><?php esc_html_e( 'Discover more sites built with WordPress', 'wporg' ); ?></a></p>
    121121                        </section>
    122122
    123123                        <section class="features">
    124                                 <h2><?php _e( 'Powerful Features', 'wporg' ); ?></h2>
    125                                 <p class="subheading"><?php _e( 'Limitless possibilities. What will you create?', 'wporg' ); ?></p>
     124                                <h2><?php esc_html_e( 'Powerful Features', 'wporg' ); ?></h2>
     125                                <p class="subheading"><?php esc_html_e( 'Limitless possibilities. What will you create?', 'wporg' ); ?></p>
    126126                                <ul>
    127127                                        <li>
    128128                                                <span class="dashicons dashicons-admin-customizer"></span>
    129                                                 <?php _e( 'Customizable<br />Designs', 'wporg' ); ?>
     129                                                <?php echo wp_kses_post( __( 'Customizable<br />Designs', 'wporg' ) ); ?>
    130130                                        </li>
    131131                                        <li>
    132132                                                <span class="dashicons dashicons-welcome-widgets-menus"></span>
    133                                                 <?php _e( 'SEO<br />Friendly', 'wporg' ); ?>
     133                                                <?php echo wp_kses_post( __( 'SEO<br />Friendly', 'wporg' ) ); ?>
    134134                                        </li>
    135135                                        <li>
    136136                                                <span class="dashicons dashicons-smartphone"></span>
    137                                                 <?php _e( 'Responsive<br />Mobile Sites', 'wporg' ); ?>
     137                                                <?php echo wp_kses_post( __( 'Responsive<br />Mobile Sites', 'wporg' ) ); ?>
    138138                                        </li>
    139139                                        <li>
    140140                                                <span class="dashicons dashicons-chart-line"></span>
    141                                                 <?php _e( 'High<br />Performance', 'wporg' ); ?>
     141                                                <?php echo wp_kses_post( __( 'High<br />Performance', 'wporg' ) ); ?>
    142142                                        </li>
    143143                                        <li>
    144144                                                <a href="https://wordpress.org/mobile/"><img src="https://s.w.org/images/home/icon-run-blue.svg" />
    145                                                         <?php _e( 'Manage<br />on the Go', 'wporg' ); ?></a>
     145                                                        <?php echo wp_kses_post( __( 'Manage<br />on the Go', 'wporg' ) ); ?></a>
    146146                                        </li>
    147147                                        <li>
    148148                                                <span class="dashicons dashicons-lock"></span>
    149                                                 <?php _e( 'High<br />Security', 'wporg' ); ?>
     149                                                <?php echo wp_kses_post( __( 'High<br />Security', 'wporg' ) ); ?>
    150150                                        </li>
    151151                                        <li>
    152152                                                <span class="dashicons dashicons-images-alt2"></span>
    153                                                 <?php _e( 'Powerful<br />Media Management', 'wporg' ); ?>
     153                                                <?php echo wp_kses_post( __( 'Powerful<br />Media Management', 'wporg' ) ); ?>
    154154                                        </li>
    155155                                        <li>
    156156                                                <span class="dashicons dashicons-universal-access"></span>
    157                                                 <?php _e( 'Easy and<br />Accessible', 'wporg' ); ?>
     157                                                <?php echo wp_kses_post( __( 'Easy and<br />Accessible', 'wporg' ) ); ?>
    158158                                        </li>
    159159                                </ul>
    … …  
    162162                                        $plugin_count = defined( 'WP_PLUGIN_COUNT' ) ? WP_PLUGIN_COUNT : 54000;
    163163                                        printf(
    164                                                 /* translators: 1: Rounded number of plugins. 2: Link to Plugin Directory. */
    165                                                 _n(
    166                                                         'Extend WordPress with over %1$s plugin to help your website meet your needs. Add an online store, galleries, mailing lists, forums, analytics, and <a href="%2$s">much more</a>.',
    167                                                         'Extend WordPress with over %1$s plugins to help your website meet your needs. Add an online store, galleries, mailing lists, forums, analytics, and <a href="%2$s">much more</a>.',
    168                                                         $plugin_count,
    169                                                         'wporg'
     164                                                wp_kses_post(
     165                                                        /* translators: 1: Rounded number of plugins. 2: Link to Plugin Directory. */
     166                                                        _n(
     167                                                                'Extend WordPress with over %1$s plugin to help your website meet your needs. Add an online store, galleries, mailing lists, forums, analytics, and <a href="%2$s">much more</a>.',
     168                                                                'Extend WordPress with over %1$s plugins to help your website meet your needs. Add an online store, galleries, mailing lists, forums, analytics, and <a href="%2$s">much more</a>.',
     169                                                                $plugin_count,
     170                                                                'wporg'
     171                                                        )
    170172                                                ),
    171173                                                esc_html( number_format_i18n( $plugin_count ) ),
    … …  
    179181                                <div class="screen"></div>
    180182                                <div class="container">
    181                                         <h2><?php _e( 'Community', 'wporg' ); ?></h2>
     183                                        <h2><?php esc_html_e( 'Community', 'wporg' ); ?></h2>
    182184                                        <p class="subheading">
    183185                                                <?php
    … …  
    185187
    186188                                                printf(
    187                                                         /* translators: Number of meetups. */
    188                                                         _n(
    189                                                                 'Hundreds of thousands of developers, content creators, and site owners gather at monthly meetups in %s city worldwide.',
    190                                                                 'Hundreds of thousands of developers, content creators, and site owners gather at monthly meetups in %s cities worldwide.',
    191                                                                 $meetups,
    192                                                                 'wporg'
     189                                                        esc_html(
     190                                                                /* translators: %s: Number of meetups. */
     191                                                                _n(
     192                                                                        'Hundreds of thousands of developers, content creators, and site owners gather at monthly meetups in %s city worldwide.',
     193                                                                        'Hundreds of thousands of developers, content creators, and site owners gather at monthly meetups in %s cities worldwide.',
     194                                                                        $meetups,
     195                                                                        'wporg'
     196                                                                )
    193197                                                        ),
    194198                                                        number_format_i18n( $meetups )
    … …  
    196200                                                ?>
    197201                                        </p>
    198                                         <a class="button button-secondary button-large" href="https://make.wordpress.org/community/meetups-landing-page"><?php _e( 'Find a local WordPress community', 'wporg' ); ?></a>
     202                                        <a class="button button-secondary button-large" href="https://make.wordpress.org/community/meetups-landing-page"><?php esc_html_e( 'Find a local WordPress community', 'wporg' ); ?></a>
    199203                                </div>
    200204                        </section>
    201205
    202206                        <section class="get">
    203                                 <h2><?php _e( 'Get Started with WordPress', 'wporg' ); ?></h2>
    204                                 <p class="subheading"><?php _e( 'Over 60 million people have chosen WordPress to power the place on the web they call &ldquo;home&rdquo; &mdash; join the family.', 'wporg' ); ?></p>
     207                                <h2><?php esc_html_e( 'Get Started with WordPress', 'wporg' ); ?></h2>
     208                                <p class="subheading"><?php esc_html_e( 'Over 60 million people have chosen WordPress to power the place on the web they call &ldquo;home&rdquo; &mdash; join the family.', 'wporg' ); ?></p>
    205209                                <div class="cta-wrapper">
    206                                         <a href="<?php echo esc_url( get_downloads_url() ); ?>" class="button button-primary button-xl"><?php _e( 'Get WordPress', 'wporg' ); ?></a>
     210                                        <a href="<?php echo esc_url( get_downloads_url() ); ?>" class="button button-primary button-xl"><?php esc_html_e( 'Get WordPress', 'wporg' ); ?></a>
    207211                                </div>
    208212                        </section>
    … …  
    232236                                        '<h4><a href="%s">%s</a></h4>',
    233237                                        esc_url( $news_blog_url ),
    234                                         __( 'News From Our Blog', 'wporg' )
     238                                        esc_html__( 'News From Our Blog', 'wporg' )
    235239                                );
    236240
    … …  
    256260
    257261                        <div class="col-4">
    258                                 <h4><?php _e( 'It&rsquo;s Easy&nbsp;As&hellip;', 'wporg' ); ?></h4>
     262                                <h4><?php esc_html_e( 'It&rsquo;s Easy&nbsp;As&hellip;', 'wporg' ); ?></h4>
    259263
    260264                                <ol class="steps">
    … …  
    264268                                                printf(
    265269                                                        /* translators: URL to Hosting page. */
    266                                                         __( '<a href="%s">Find a trusted web host</a> and maybe support WordPress at the same&nbsp;time.', 'wporg' ),
     270                                                        wp_kses_post( __( '<a href="%s">Find a trusted web host</a> and maybe support WordPress at the same&nbsp;time.', 'wporg' ) ),
    267271                                                        esc_url( 'https://wordpress.org/hosting/' )
    268272                                                );
    … …  
    274278                                                printf(
    275279                                                        /* translators: URL to Downloads page. */
    276                                                         __( '<a href="%s">Download &amp; install WordPress</a> with our famous 5-minute&nbsp;installation. Publishing has never been&nbsp;easier.', 'wporg' ),
     280                                                        wp_kses_post( __( '<a href="%s">Download &amp; install WordPress</a> with our famous 5-minute&nbsp;installation. Publishing has never been&nbsp;easier.', 'wporg' ) ),
    277281                                                        esc_url( get_downloads_url() )
    278282                                                );
    … …  
    284288                                                printf(
    285289                                                        /* translators: URL to HelpHub. */
    286                                                         __( '<a href="%s">Spend some time reading our documentation</a>, get to know WordPress better every day and start helping others,&nbsp;too.', 'wporg' ),
     290                                                        wp_kses_post( __( '<a href="%s">Spend some time reading our documentation</a>, get to know WordPress better every day and start helping others,&nbsp;too.', 'wporg' ) ),
    287291                                                        esc_url( __( 'https://wordpress.org/support/', 'wporg' ) )
    288292                                                );
    … …  
    293297
    294298                        <div class="<?php echo esc_attr( $swag_class ); ?> first">
    295                                 <h4><a href="https://mercantile.wordpress.org/"><?php _e( 'WordPress&nbsp;Swag', 'wporg' ); ?></a></h4>
     299                                <h4><a href="https://mercantile.wordpress.org/"><?php esc_html_e( 'WordPress&nbsp;Swag', 'wporg' ); ?></a></h4>
    296300                                <a href="https://mercantile.wordpress.org/">
    297301                                        <?php if ( $showcase ) : ?>
    … …  
    304308
    305309                        <div class="<?php echo esc_attr( $user_class ); ?>">
    306                                 <h4><a href="https://wordpress.org/showcase/"><?php _e( 'WordPress&nbsp;Users', 'wporg' ); ?></a></h4>
     310                                <h4><a href="https://wordpress.org/showcase/"><?php esc_html_e( 'WordPress&nbsp;Users', 'wporg' ); ?></a></h4>
    307311
    308312                                <?php if ( $showcase ) : ?>
    … …  
    347351                                <?php endif; ?>
    348352
    349                                 <a class="showcase-link" href="https://wordpress.org/showcase/"><?php _e( '&hellip; and hundreds more', 'wporg' ); ?></a>
     353                                <a class="showcase-link" href="https://wordpress.org/showcase/"><?php esc_html_e( '&hellip; and hundreds more', 'wporg' ); ?></a>
    350354                        </div>
    351355                </div>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download-beta-nightly.php

    r10433 r15179  
    6464                                                printf(
    6565                                                        /* translators: %s Link to https://wordpress.org/download/releases/#betas */
    66                                                         __( 'You can find the latest beta releases on the <a href="%s">Beta Releases</a> page.', 'wporg' ),
     66                                                        wp_kses_post( __( 'You can find the latest beta releases on the <a href="%s">Beta Releases</a> page.', 'wporg' ) ),
    6767                                                        'https://wordpress.org/download/releases/#betas'
    6868                                                );
    … …  
    8787                                                printf(
    8888                                                        /* translators: %s Link to the latest nightly release ZIP. */
    89                                                         __( 'You can download the latest nightly release here: <a href="%s">wordpress-latest.zip</a>.', 'wporg' ),
     89                                                        wp_kses_post( __( 'You can download the latest nightly release here: <a href="%s">wordpress-latest.zip</a>.', 'wporg' ) ),
    9090                                                        'https://wordpress.org/nightly-builds/wordpress-latest.zip'
    9191                                                );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download.php

    r11866 r15179  
    285285                                                        <?php
    286286                                                        printf(
    287                                                                 __( 'For help getting started, check out our <a href="%s">Documentation and Support Forums</a>.', 'wporg' ),
     287                                                                /* translators: %s: Support URL. */
     288                                                                wp_kses_post( __( 'For help getting started, check out our <a href="%s">Documentation and Support Forums</a>.', 'wporg' ) ),
    288289                                                                esc_url( __( 'https://wordpress.org/support/', 'wporg' ) )
    289290                                                        );
    … …  
    294295                                                        printf(
    295296                                                                /* translators: 1: URL to WordPress Meetup group, 2: URL to WordCamp Central */
    296                                                                 __( 'Meet other WordPress enthusiasts and share your knowledge at a <a href="%1$s">WordPress meetup group</a> or a <a href="%2$s">WordCamp</a>.', 'wporg' ),
     297                                                                wp_kses_post( __( 'Meet other WordPress enthusiasts and share your knowledge at a <a href="%1$s">WordPress meetup group</a> or a <a href="%2$s">WordCamp</a>.', 'wporg' ) ),
    297298                                                                esc_url( __( 'https://www.meetup.com/pro/wordpress/', 'wporg' ) ),
    298299                                                                esc_url( __( 'https://central.wordcamp.org/', 'wporg' ) )
    … …  
    303304                                                        <?php
    304305                                                        printf(
    305                                                                 __( 'To support education about WordPress and open source software, please donate to the <a href="%s">WordPress Foundation</a>.', 'wporg' ),
     306                                                                /* translators: %s: Donation URL. */
     307                                                                wp_kses_post( __( 'To support education about WordPress and open source software, please donate to the <a href="%s">WordPress Foundation</a>.', 'wporg' ) ),
    306308                                                                esc_url( __( 'https://wordpressfoundation.org/donate/', 'wporg' ) )
    307309                                                        );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/inc/template-tags.php

    r15153 r15179  
    440440        echo '<p class="wp-block-button is-small">';
    441441        echo '<button class="wp-block-button__link" type="submit">' . esc_html__( 'Save', 'wporg-plugins' ) . '</button>';
    442         echo '<span class="success-msg">' . __( 'Saved!', 'wporg-plugins' ) . '</span>';
     442        echo '<span class="success-msg">' . esc_html__( 'Saved!', 'wporg-plugins' ) . '</span>';
    443443        echo '</p>';
    444444        echo '</form>';
    … …  
    486486        echo '<p class="wp-block-button is-small">';
    487487        echo '<button class="wp-block-button__link" type="submit">' . esc_attr__( 'Save', 'wporg-plugins' ) . '</button>';
    488         echo '<span class="success-msg">' . __( 'Saved!', 'wporg-plugins' ) . '</span>';
     488        echo '<span class="success-msg">' . esc_html__( 'Saved!', 'wporg-plugins' ) . '</span>';
    489489        echo '</p>';
    490490        echo '</form>';
    … …  
    551551        if ( $active_installs >= 20000 ) {
    552552                // Translators: %s is the plugin team email address.
    553                 printf( __( '<strong>Notice:</strong> Due to the high volume of users for this plugin it cannot be closed without speaking directly to the plugins team. Please contact <a href="mailto:%1$s">%1$s</a> with a link to the plugin and explanation as to why it should be closed.', 'wporg-plugins' ), 'plugins@wordpress.org' );
     553                printf( wp_kses_post( __( '<strong>Notice:</strong> Due to the high volume of users for this plugin it cannot be closed without speaking directly to the plugins team. Please contact <a href="mailto:%1$s">%1$s</a> with a link to the plugin and explanation as to why it should be closed.', 'wporg-plugins' ) ), 'plugins@wordpress.org' );
    554554        } else {
    555555                $close_link = Template::get_self_close_link( $post );
    556                 _e( '<strong>Warning:</strong> Closing a plugin is intended to be a <em>permanent</em> action. There is no way to reopen a plugin without contacting the plugins team.', 'wporg-plugins' );
     556                echo wp_kses_post( __( '<strong>Warning:</strong> Closing a plugin is intended to be a <em>permanent</em> action. There is no way to reopen a plugin without contacting the plugins team.', 'wporg-plugins' ) );
    557557        }
    558558        echo '</p></div>';
    … …  
    568568        <dialog>
    569569                <a onclick="this.parentNode.close()" class="close dashicons dashicons-no-alt"></a>
    570                 <strong><?php _e( 'Close your plugin?', 'wporg-plugins' ); ?></strong>
     570                <strong><?php esc_html_e( 'Close your plugin?', 'wporg-plugins' ); ?></strong>
    571571                <div class="notice notice-warning notice-alt"><p>
    572                         <?php _e( '<strong>Warning:</strong> Closing a plugin is intended to be a <em>permanent</em> action. There is no way to reopen a plugin without contacting the plugins team.', 'wporg-plugins' ); ?>
     572                        <?php echo wp_kses_post( __( '<strong>Warning:</strong> Closing a plugin is intended to be a <em>permanent</em> action. There is no way to reopen a plugin without contacting the plugins team.', 'wporg-plugins' ) ); ?>
    573573                </p></div>
    574574
    … …  
    579579                                        <?php printf(
    580580                                                /* translators: %s: The plugin name. */
    581                                                 __( 'Yes, I wish to close %s.', 'wporg-plugins' ),
     581                                                esc_html__( 'Yes, I wish to close %s.', 'wporg-plugins' ),
    582582                                                '<code>' . get_the_title() . '</code>'
    583583                                        ); ?>
    … …  
    587587                                <label>
    588588                                        <input type="checkbox" name="confirm" required />
    589                                         <?php _e( 'Yes, I understand that this is permanent.', 'wporg-plugins' ); ?>
     589                                        <?php esc_html_e( 'Yes, I understand that this is permanent.', 'wporg-plugins' ); ?>
    590590                                </label>
    591591                        </p>
    … …  
    593593                                <label>
    594594                                        <input type="checkbox" name="confirm" required />
    595                                         <?php _e( 'I am not working on a newer version to submit to the plugin directory.', 'wporg-plugins' ); ?>
     595                                        <?php esc_html_e( 'I am not working on a newer version to submit to the plugin directory.', 'wporg-plugins' ); ?>
    596596                                </label>
    597597                        </p>
    … …  
    600600                                        <?php printf(
    601601                                                /* translators: %s: The plugin slug. */
    602                                                 __( 'Please enter the plugin slug %s below.', 'wporg-plugins' ),
     602                                                esc_html__( 'Please enter the plugin slug %s below.', 'wporg-plugins' ),
    603603                                                '<code>' . esc_html( $post->post_name ) . '</code>'
    604604                                        ); ?><br>
    … …  
    607607                        </p>
    608608                        <p>
    609                                 <?php printf( __( 'If you have any questions, please contact <a href="mailto:%1$s">%1$s</a> before proceeding with a link to your plugin and your questions.', 'wporg-plugins' ), 'plugins@wordpress.org' ); ?>
     609                                <?php /* translators: %1$s: Plugins team email address. */ ?>
     610                                <?php printf( wp_kses_post( __( 'If you have any questions, please contact <a href="mailto:%1$s">%1$s</a> before proceeding with a link to your plugin and your questions.', 'wporg-plugins' ) ), 'plugins@wordpress.org' ); ?>
    610611                        <p class="wp-block-button is-small">
    611612                                <input class="wp-block-button__link" type="submit" value="<?php echo esc_attr( $close_button_text ); ?>" />
    … …  
    639640        if ( !isset( $blueprints[ 'blueprint.json' ] ) ) {
    640641                echo '<div class="plugin-notice notice notice-error notice-alt"><p>';
    641                 _e( '<strong>Note:</strong> Missing or invalid blueprint.json file.', 'wporg-plugins' );
     642                echo wp_kses_post( __( '<strong>Note:</strong> Missing or invalid blueprint.json file.', 'wporg-plugins' ) );
    642643                echo '</p></div>';
    643644        } elseif ( $toggle_link ) {
    … …  
    645646                echo '<div class="plugin-notice notice notice-warning notice-alt"><p>';
    646647                if ( 'enabled' === $preview_status ) {
    647                         _e( 'This will disable the Preview button for public users.', 'wporg-plugins' );
     648                        esc_html_e( 'This will disable the Preview button for public users.', 'wporg-plugins' );
    648649                } else {
    649                         _e( 'This will enable the Preview button for public users.', 'wporg-plugins' );
     650                        esc_html_e( 'This will enable the Preview button for public users.', 'wporg-plugins' );
    650651                }
    651652
    … …  
    684685        echo '<p>' . esc_html__( 'You are the current owner of this plugin. You may transfer those rights to another person at any time, provided they have commit access to this plugin.', 'wporg-plugins' ) . '</p>';
    685686
    686         echo '<div class="plugin-notice notice notice-warning notice-alt"><p>' . __( '<strong>Warning:</strong> Transferring a plugin is intended to be <em>permanent</em>. There is no way to get plugin ownership back without contacting the plugin team.', 'wporg-plugins' ) . '</p></div>';
     687        echo '<div class="plugin-notice notice notice-warning notice-alt"><p>' . wp_kses_post( __( '<strong>Warning:</strong> Transferring a plugin is intended to be <em>permanent</em>. There is no way to get plugin ownership back without contacting the plugin team.', 'wporg-plugins' ) ) . '</p></div>';
    687688
    688689        $disabled_users = [];
    … …  
    700701        }
    701702        if ( ! $users ) {
    702                 echo '<div class="plugin-notice notice notice-error notice-alt"><p>' . __( 'To transfer a plugin, you must first add the new owner as a committer.', 'wporg-plugins' ) . '</p></div>';
     703                echo '<div class="plugin-notice notice notice-error notice-alt"><p>' . esc_html__( 'To transfer a plugin, you must first add the new owner as a committer.', 'wporg-plugins' ) . '</p></div>';
    703704                return;
    704705        }
    … …  
    706707        // Users must have 2FA enabled to be able to transfer a plugin.
    707708        if ( $disabled_users ) {
    708                 echo '<div class="plugin-notice notice notice-info notice-alt"><p>' . __( 'Only users with Two-Factor authentication enabled can be selected.', 'wporg-plugins' ) . '</p></div>';
     709                echo '<div class="plugin-notice notice notice-info notice-alt"><p>' . esc_html__( 'Only users with Two-Factor authentication enabled can be selected.', 'wporg-plugins' ) . '</p></div>';
    709710        }
    710711
    … …  
    740741        echo '<h4>' . esc_html__( 'Release Confirmation', 'wporg-plugins' ) . '</h4>';
    741742        if ( $confirmations_required ) {
    742                 echo '<p>' . __( 'Release confirmations for this plugin are <strong>enabled</strong>.', 'wporg-plugins' ) . '</p>';
     743                echo '<p>' . wp_kses_post( __( 'Release confirmations for this plugin are <strong>enabled</strong>.', 'wporg-plugins' ) ) . '</p>';
    743744        } else {
    744                 echo '<p>' . __( 'Release confirmations for this plugin are <strong>disabled</strong>', 'wporg-plugins' ) . '</p>';
     745                echo '<p>' . wp_kses_post( __( 'Release confirmations for this plugin are <strong>disabled</strong>', 'wporg-plugins' ) ) . '</p>';
    745746        }
    746747        echo '<p>' . esc_html__( 'All future releases will require email confirmation before being made available. This increases security and ensures that plugin releases are only made when intended.', 'wporg-plugins' ) . '</p>';
    … …  
    748749        if ( ! $confirmations_required && 'trunk' === $post->stable_tag ) {
    749750                echo '<div class="plugin-notice notice notice-warning notice-alt"><p>';
    750                         _e( "Release confirmations currently require tagged releases, as you're releasing from trunk they cannot be enabled.", 'wporg-plugins' );
     751                        esc_html_e( 'Release confirmations currently require tagged releases, as you&#8217;re releasing from trunk they cannot be enabled.', 'wporg-plugins' );
    751752                echo '</p></div>';
    752753
    753754        } else if ( ! $confirmations_required ) {
    754755                echo '<div class="plugin-notice notice notice-warning notice-alt"><p>';
    755                         _e( '<strong>Warning:</strong> Enabling release confirmations is intended to be a <em>permanent</em> action. There is no way to disable this without contacting the plugins team.', 'wporg-plugins' );
     756                        echo wp_kses_post( __( '<strong>Warning:</strong> Enabling release confirmations is intended to be a <em>permanent</em> action. There is no way to disable this without contacting the plugins team.', 'wporg-plugins' ) );
    756757                echo '</p></div>';
    757758
    … …  
    762763        } else {
    763764                /* translators: 1: plugins@wordpress.org */
    764                 echo '<p>' . sprintf( __( 'To disable release confirmations, please contact the plugins team by emailing %s.', 'wporg-plugins' ), 'plugins@wordpress.org' ) . '</p>';
     765                echo '<p>' . sprintf( esc_html__( 'To disable release confirmations, please contact the plugins team by emailing %s.', 'wporg-plugins' ), 'plugins@wordpress.org' ) . '</p>';
    765766        }
    766767}
    … …  
    782783                        '<div class="notice notice-alt notice-%s">%s</div>',
    783784                        esc_attr( $notice['type'] ),
    784                         '<p><strong>' . __( 'A note from the Plugins Team, visible only to the plugin author &amp; committers.', 'wporg-plugins' ) . '</strong></p>' .
     785                        '<p><strong>' . esc_html__( 'A note from the Plugins Team, visible only to the plugin author &amp; committers.', 'wporg-plugins' ) . '</strong></p>' .
    785786                        wp_kses_post( $notice['html'] ) // Should have wrapping <p> tags.
    786787                );
    … …  
    803804                printf(
    804805                        '<div class="notice notice-error notice-alt">%s</div>',
    805                         '<p><strong>' . __( 'During the last import of your plugin the following warnings were encountered. This message is visible only to the plugin authors &amp; committers.', 'wporg-plugins' ) . '</strong></p>' .
     806                        '<p><strong>' . esc_html__( 'During the last import of your plugin the following warnings were encountered. This message is visible only to the plugin authors &amp; committers.', 'wporg-plugins' ) . '</strong></p>' .
    806807                        wp_kses_post( $import_warnings )
    807808                );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/patterns/page-add.php

    r14974 r15179  
    5959                                <?php
    6060                                printf(
    61                                         __( 'Your plugin review cannot be prioritized over others, to help us approve your plugin sooner, please ensure that you have read the <a href="%s">Security chapter</a> of the Plugin Handbook.', 'wporg-plugins' ),
     61                                        /* translators: %s: Security handbook URL. */
     62                                        wp_kses_post( __( 'Your plugin review cannot be prioritized over others, to help us approve your plugin sooner, please ensure that you have read the <a href="%s">Security chapter</a> of the Plugin Handbook.', 'wporg-plugins' ) ),
    6263                                        'https://developer.wordpress.org/apis/security/'
    6364                                );
    … …  
    7172                                <li><?php printf( wp_kses_post( __( 'The plugin does not comply with the guidelines: <a href="%s">Check out the guidelines</a>', 'wporg-plugins' ) ), esc_url( 'https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/' ) ); ?></li>
    7273                        </ul>
    73                         <p><?php _e( 'If the code in your plugin falls into one of the above categories, <strong>your plugin will not be approved</strong>. The Plugins Team will refer you back to these Handbook pages, adding further delay to the review process.', 'wporg-plugins' ); ?></p>
     74                        <p><?php echo wp_kses_post( __( 'If the code in your plugin falls into one of the above categories, <strong>your plugin will not be approved</strong>. The Plugins Team will refer you back to these Handbook pages, adding further delay to the review process.', 'wporg-plugins' ) ); ?></p>
    7475
    7576                        <h3><?php esc_html_e( 'What will my plugin URL be?', 'wporg-plugins' ); ?></h3>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/404.php

    r15117 r15179  
    1414                                        <div class="col-5">
    1515                                                <div class="storycontent">
    16                                                                 <h2><?php _e( 'Page Not Found', 'wporg-showcase' ); ?></h2>
    17                                                                 <p><?php _e( 'Sorry, we could not not find that site in the Showcase. We do have many others available though. Here&#8217;s one chosen at random!', 'wporg-showcase' ); ?></p>
     16                                                                <h2><?php esc_html_e( 'Page Not Found', 'wporg-showcase' ); ?></h2>
     17                                                                <p><?php esc_html_e( 'Sorry, we could not not find that site in the Showcase. We do have many others available though. Here&#8217;s one chosen at random!', 'wporg-showcase' ); ?></p>
    1818                                                                <?php //breadcrumb(); ?>
    1919                                                                <h2><?php the_title(); ?></h2>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/archive.php

    r9933 r15179  
    3434                <?php else : // have_posts ?>
    3535
    36                         <p><?php _e( 'Sorry, no sites in the Showcase matched your criteria.', 'wporg-showcase' ); ?></p>
     36                        <p><?php esc_html_e( 'Sorry, no sites in the Showcase matched your criteria.', 'wporg-showcase' ); ?></p>
    3737
    3838                <?php endif; ?>
  • 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(),
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php

    r15170 r15179  
    107107        global $post;
    108108
    109         echo '<h2 class="heading">' . __( 'Flavor', 'wporg-showcase' ). '</h2>';
     109        echo '<h2 class="heading">' . esc_html__( 'Flavor', 'wporg-showcase' ) . '</h2>';
    110110        echo '<ul id="flavors">';
    111111
    … …  
    189189                        <?php
    190190                                /* translators: %s: search query */
    191                                 printf( __( '&raquo; Search for: %s', 'wporg-showcase' ), get_search_query() );
     191                                printf( esc_html__( '&raquo; Search for: %s', 'wporg-showcase' ), get_search_query() );
    192192                        ?>
    193193                <?php elseif ( strstr( $_SERVER['REQUEST_URI'], '/showcase/archives' ) ) : ?>
    194                         <?php _e( '&raquo; Archives', 'wporg-showcase' ); ?>
     194                        <?php esc_html_e( '&raquo; Archives', 'wporg-showcase' ); ?>
    195195                <?php else : ?>
    196196                        <?php if ( is_category() ) : ?>
    197                                 <?php _e( '&raquo; Flavor', 'wporg-showcase' ); ?>
     197                                <?php esc_html_e( '&raquo; Flavor', 'wporg-showcase' ); ?>
    198198                        <?php elseif ( is_tag() ) : ?>
    199                                 <?php _e( '&raquo; Tag', 'wporg-showcase' ); ?>
     199                                <?php esc_html_e( '&raquo; Tag', 'wporg-showcase' ); ?>
    200200                        <?php endif; // is_category ?>
    201201
    202202                        <?php
    203203                                /* translators: %s: document title */
    204                                 printf( __( '&raquo; %s', 'wporg-showcase' ), wp_get_document_title() );
     204                                printf( esc_html__( '&raquo; %s', 'wporg-showcase' ), esc_html( wp_get_document_title() ) );
    205205                        ?>
    206206                <?php endif; // is_search ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/index.php

    r9933 r15179  
    2727                <?php else : // have_posts ?>
    2828
    29                         <p><?php _e( 'Sorry, no sites in the Showcase matched your criteria.', 'wporg-showcase' ); ?></p>
     29                        <p><?php esc_html_e( 'Sorry, no sites in the Showcase matched your criteria.', 'wporg-showcase' ); ?></p>
    3030
    3131                <?php endif; ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-home.php

    r15170 r15179  
    1414?>
    1515<div id="pagebody" class="home">
    16         <h2 class="screen-reader-text"><?php _e( 'Featured Sites', 'wporg-showcase' ); ?></h2>
     16        <h2 class="screen-reader-text"><?php esc_html_e( 'Featured Sites', 'wporg-showcase' ); ?></h2>
    1717        <?php query_posts( array( 'cat' => 4, 'posts_per_page' => 9, 'post_status' => 'publish' ) ); ?>
    1818        <?php if ( have_posts() ) : ?>
    … …  
    3838                                                        <a href="<?php echo esc_url( $wpsc_url ); ?>" class="wpsc-linkout">
    3939                                                                <?php echo esc_html( str_replace( parse_url( $wpsc_url, PHP_URL_SCHEME ) . '://', '', untrailingslashit( $wpsc_url ) ) ); ?>
    40                                                                 <span class="linkout-symbol"><?php _ex( '&#10162;', 'linkout symbol', 'wporg-showcase' ); ?></span>
     40                                                                <span class="linkout-symbol"><?php echo esc_html_x( '&#10162;', 'linkout symbol', 'wporg-showcase' ); ?></span>
    4141                                                        </a>
    4242                                                        <?php endif; // $wpsc_url ?>
    … …  
    4747                                                        ?>
    4848                                                        <a class="wpsc-hero-learnmore" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
    49                                                                 <?php _e( 'Learn More &rarr;', 'wporg-showcase' ); ?>
     49                                                                <?php esc_html_e( 'Learn More &rarr;', 'wporg-showcase' ); ?>
    5050                                                        </a>
    5151                                                                </div>
    … …  
    7070                        <?php query_posts( array( 'cat' => 4, 'posts_per_page' => 3, 'tag' => 'business', 'orderby' => 'rand' ) ); ?>
    7171                        <?php if ( have_posts() ) : ?>
    72                         <h2><?php _e( 'Featured Business Sites', 'wporg-showcase' ); ?></h2>
     72                        <h2><?php esc_html_e( 'Featured Business Sites', 'wporg-showcase' ); ?></h2>
    7373                        <ul class="wpsc-recent">
    7474
    … …  
    9393                        <?php if ( have_posts() ) : ?>
    9494
    95                         <h2><?php _e( 'Recently Added Sites', 'wporg-showcase' ); ?></h2>
     95                        <h2><?php esc_html_e( 'Recently Added Sites', 'wporg-showcase' ); ?></h2>
    9696                        <ul class="wpsc-recent">
    9797
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-submit.php

    r15170 r15179  
    2828<?php if ( $_POST && ! $error ) : ?>
    2929        <div id="return">
    30         <h3><?php _e( 'Submitted!', 'wporg-showcase' ); ?></h3>
     30        <h3><?php esc_html_e( 'Submitted!', 'wporg-showcase' ); ?></h3>
    3131        <p><?php printf(
    3232                /* translators: %s: URL of the site submission form */
    33                 __( 'Thanks! You have successfully submitted a site for consideration to be added to the WordPress Showcase. If the site you submitted is added, you will be contacted via email within one week. We appreciate your interest in the WordPress Showcase! If you\'d like to submit another site, head back to the <a href="%s">submission form</a>.', 'wporg-showcase' ),
     33                wp_kses_post( __( 'Thanks! You have successfully submitted a site for consideration to be added to the WordPress Showcase. If the site you submitted is added, you will be contacted via email within one week. We appreciate your interest in the WordPress Showcase! If you&#8217;d like to submit another site, head back to the <a href="%s">submission form</a>.', 'wporg-showcase' ) ),
    3434                'https://wordpress.org/showcase/submit-a-wordpress-site/'
    3535        ); ?></p>
    … …  
    5555
    5656        <?php if ( $error ) : ?>
    57                 <h3 id="return"><?php _e( 'Whoops!', 'wporg-showcase' ); ?></h3>
     57                <h3 id="return"><?php esc_html_e( 'Whoops!', 'wporg-showcase' ); ?></h3>
    5858
    5959                <?php if ( strstr( $url, 'blogspot.com' ) || strstr( $url, 'blogger.com' ) ) : ?>
    60                         <p><?php _e( 'Please submit a WordPress blog URL. Blogspot/Blogger blogs are not accepted.', 'wporg-showcase' ); ?></p>
     60                        <p><?php esc_html_e( 'Please submit a WordPress blog URL. Blogspot/Blogger blogs are not accepted.', 'wporg-showcase' ); ?></p>
    6161
    6262                <?php elseif ( $site_detected == "NO" ) : ?>
    63                         <p><?php _e( 'We didn\'t detect WordPress at the given URL. Please submit the URL of a site running WordPress.', 'wporg-showcase' ); ?></p>
     63                        <p><?php esc_html_e( 'We didn&#8217;t detect WordPress at the given URL. Please submit the URL of a site running WordPress.', 'wporg-showcase' ); ?></p>
    6464
    6565                <?php elseif ( $site_detected == "YES" && version_compare($site_version, $latest_release, '<' ) ) : ?>
    66                         <p><?php _e( 'We were unable to detect the latest version of WordPress at the given URL. We\'d prefer submissions to the showcase to be running up-to-date versions of WordPress.', 'wporg-showcase' ); ?></p>
    67                         <p><?php _e( 'If you\'re sure the site is running the latest version of WordPress, then please check the URL to make sure it\'s accurate, and that the URL you submit points directly to the location where WordPress is running.', 'wporg-showcase' ); ?></p>
     66                        <p><?php esc_html_e( 'We were unable to detect the latest version of WordPress at the given URL. We&#8217;d prefer submissions to the showcase to be running up-to-date versions of WordPress.', 'wporg-showcase' ); ?></p>
     67                        <p><?php esc_html_e( 'If you&#8217;re sure the site is running the latest version of WordPress, then please check the URL to make sure it&#8217;s accurate, and that the URL you submit points directly to the location where WordPress is running.', 'wporg-showcase' ); ?></p>
    6868
    6969                <?php else : ?>
    70                         <p><?php _e( 'There seems to have been a problem with the information you entered. Please make sure all fields have data and resubmit.', 'wporg-showcase' ); ?></p>
     70                        <p><?php esc_html_e( 'There seems to have been a problem with the information you entered. Please make sure all fields have data and resubmit.', 'wporg-showcase' ); ?></p>
    7171
    7272                <?php endif; ?>
    … …  
    7777        <input type="hidden" name="comment_post_ID" value="<?php echo $post->ID; ?>" />
    7878
    79         <p><label for="submitname"><?php _e( 'Your Name', 'wporg-showcase' ); ?></label><br />
     79        <p><label for="submitname"><?php esc_html_e( 'Your Name', 'wporg-showcase' ); ?></label><br />
    8080        <input type="text" name="submitname" id="submitname" class="text" value="<?php echo esc_attr( $submitname ); ?>" size="28" tabindex="2" required></p>
    8181
    82         <p><label for="email"><?php _e( 'Your E-mail', 'wporg-showcase'); ?></label><br />
     82        <p><label for="email"><?php esc_html_e( 'Your E-mail', 'wporg-showcase' ); ?></label><br />
    8383        <input type="email" name="email" id="email" value="<?php echo esc_attr( $email ); ?>" size="28" tabindex="3" class="text" required></p>
    8484
    85         <p><label for="url"><?php _e( 'Site URL', 'wporg-showcase' ); ?></label><br />
     85        <p><label for="url"><?php esc_html_e( 'Site URL', 'wporg-showcase' ); ?></label><br />
    8686        <input type="url" name="url" id="url" value="<?php echo esc_url( $url ); ?>" size="28" tabindex="4" class="text" required></p>
    8787
    88         <p><label for="owner"><?php _e( "Do you own this site? (It's okay if you don't - we just want to know for contact purposes.)", 'wporg-showcase' ); ?></label><br />
     88        <p><label for="owner"><?php esc_html_e( 'Do you own this site? (It&#8217;s okay if you don&#8217;t - we just want to know for contact purposes.)', 'wporg-showcase' ); ?></label><br />
    8989        <select name="owner" id="owner" tabindex="5">
    90                 <option value="yes" <?php selected( $owner, 'yes' ); ?> ><?php _e( 'Yes', 'wporg-showcase' ); ?></option>
    91                 <option value="no" <?php selected( $owner, 'no' ); ?> ><?php _e( 'No', 'wporg-showcase' ); ?></option>
     90                <option value="yes" <?php selected( $owner, 'yes' ); ?> ><?php esc_html_e( 'Yes', 'wporg-showcase' ); ?></option>
     91                <option value="no" <?php selected( $owner, 'no' ); ?> ><?php esc_html_e( 'No', 'wporg-showcase' ); ?></option>
    9292        </select>
    9393
    94         <p><label for="description"><?php _e( 'Please describe the site and, if applicable, the person or organization it represents.', 'wporg-showcase' ); ?></label><br />
     94        <p><label for="description"><?php esc_html_e( 'Please describe the site and, if applicable, the person or organization it represents.', 'wporg-showcase' ); ?></label><br />
    9595        <textarea name="description" id="description" cols="60" rows="4" tabindex="6" class="text" required><?php echo esc_textarea( $description ); ?></textarea></p>
    9696
    97         <p><label for="why"><?php _e( 'What justifies this site being added to the WordPress Showcase? What makes it unique or interesting?', 'wporg-showcase' ); ?></label><br />
     97        <p><label for="why"><?php esc_html_e( 'What justifies this site being added to the WordPress Showcase? What makes it unique or interesting?', 'wporg-showcase' ); ?></label><br />
    9898        <textarea name="why" id="why" cols="60" rows="4" tabindex="7" class="text" required><?php echo esc_textarea( $why ); ?></textarea></p>
    9999
    100         <p class="required"><?php _e( '* All fields are required.', 'wporg-showcase' ); ?></p>
     100        <p class="required"><?php esc_html_e( '* All fields are required.', 'wporg-showcase' ); ?></p>
    101101
    102102        <?php
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/sidebar-left.php

    r15170 r15179  
    1010                        <a href="<?php echo esc_url( home_url( '/submit-a-wordpress-site/' ) ); ?>" class="wpsc-submit-site"><?php esc_html_e( 'Submit a Site &rarr;', 'wporg-showcase' ); ?></a>
    1111
    12                         <h2 class="heading search"><?php _e( 'Search', 'wporg-showcase' ); ?></h2>
     12                        <h2 class="heading search"><?php esc_html_e( 'Search', 'wporg-showcase' ); ?></h2>
    1313                        <?php // @todo: use get_search_form(); ?>
    1414                        <form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
    … …  
    2020                        <a href='<?php echo esc_url( home_url( '/tag-cloud/' ) ); ?>' class="wpsc-all-tags"><?php esc_html_e( 'View All Tags &rarr;', 'wporg-showcase' ); ?></a>
    2121
    22                         <h2 class="heading"><?php _e( 'Browse by Flavor', 'wporg-showcase' ); ?></h2>
     22                        <h2 class="heading"><?php esc_html_e( 'Browse by Flavor', 'wporg-showcase' ); ?></h2>
    2323                        <ul class="submenu">
    2424                                <?php wp_list_categories( 'exclude=4&title_li=' ); ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/404.php

    r15170 r15179  
    1818                <section class="error-404 not-found">
    1919                        <header class="page-header">
    20                                 <h1 class="page-title"><?php _e( 'Oops! That page can&rsquo;t be found.', 'wporg-forums' ); ?></h1>
     20                                <h1 class="page-title"><?php esc_html_e( 'Oops! That page can&rsquo;t be found.', 'wporg-forums' ); ?></h1>
    2121                        </header><!-- .page-header -->
    2222
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/archive-forum.php

    r14172 r15179  
    1717                                <p><?php printf(
    1818                                        /* Translators: forums welcome page URL */
    19                                         __( 'Our community-based support forums are a great place to learn, share, and help each other. <a href="%s">Find out how to get started</a>.', 'wporg-forums' ),
     19                                        wp_kses_post( __( 'Our community-based support forums are a great place to learn, share, and help each other. <a href="%s">Find out how to get started</a>.', 'wporg-forums' ) ),
    2020                                        esc_url( wporg_support_get_welcome_url() )
    2121                                ) ?></p>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/content-single-forum.php

    r13530 r15179  
    1111
    1212<header class="page-header">
    13         <h1 class="page-title"><?php printf( __( '%s Forum', 'wporg-forums' ), bbp_get_topic_title() ); ?></h1>
     13        <?php /* translators: %s: Forum name. */ ?>
     14        <h1 class="page-title"><?php printf( esc_html__( '%s Forum', 'wporg-forums' ), wp_kses_post( bbp_get_topic_title() ) ); ?></h1>
    1415        <p><?php bbp_forum_content(); ?></p>
    1516</header>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/feedback-no-search.php

    r7818 r15179  
     1<?php
     2/**
     3 * Notice shown when a forum search has no results.
     4 *
     5 * @package bbPress
     6 */
     7
     8?>
    19<div class="bbp-template-notice">
    2         <p><?php _e( 'No results found. Try a different search or start a new post.', 'wporg-forums' ); ?></p>
     10        <p><?php esc_html_e( 'No results found. Try a different search or start a new post.', 'wporg-forums' ); ?></p>
    311</div>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/feedback-no-topics.php

    r7818 r15179  
     1<?php
     2/**
     3 * Notice shown when a forum view has no topics.
     4 *
     5 * @package bbPress
     6 */
     7
     8?>
    19<div class="bbp-template-notice">
    2         <p><?php _e( 'No topics found. Select another view or start a new post.', 'wporg-forums' ); ?></p>
     10        <p><?php esc_html_e( 'No topics found. Select another view or start a new post.', 'wporg-forums' ); ?></p>
    311</div>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/feedback-search.php

    r7818 r15179  
     1<?php
     2/**
     3 * Notice shown when a forum search has no terms.
     4 *
     5 * @package bbPress
     6 */
     7
     8?>
    19<div class="bbp-template-notice">
    2         <p><?php _e( 'Please enter some search terms above', 'wporg-forums' ); ?></p>
     10        <p><?php esc_html_e( 'Please enter some search terms above', 'wporg-forums' ); ?></p>
    311</div>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-reply.php

    r15170 r15179  
    8585                                                <?php if ( bbp_allow_topic_tags() ) : ?>
    8686                                                <p>
    87                                                         <label for="bbp_topic_tags"><?php _e( 'Topic Tags:', 'wporg-forums' ); ?></label><br />
     87                                                        <label for="bbp_topic_tags"><?php esc_html_e( 'Topic Tags:', 'wporg-forums' ); ?></label><br />
    8888                                                        <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" aria-describedby="bbp_topic_tags_description" <?php disabled( bbp_is_topic_spam() ); ?> /><br />
    8989                                                        <em id="bbp_topic_tags_description"><?php esc_html_e( 'Separate tags with commas', 'wporg-forums' ); ?></em>
    … …  
    232232                                <p><?php
    233233                                        printf(
    234                                                 __( 'This may be caused by your account being marked as a brand or shared company account.', 'wporg-forums' ) . '<br>' .
     234                                                esc_html__( 'This may be caused by your account being marked as a brand or shared company account.', 'wporg-forums' ) . '<br>' .
    235235                                                /* translators: %s: Link to https://make.wordpress.org/support/2025/03/about-the-spectator-role-in-the-wordpress-support-forums/ */
    236                                                 __( '<a href="%s">Please read this announcement</a> for more information.', 'wporg-forums' ) . '<br>' .
     236                                                wp_kses_post( __( '<a href="%s">Please read this announcement</a> for more information.', 'wporg-forums' ) ) . '<br>' .
    237237                                                /* translators: %s: Email address. */
    238                                                 __( 'If you believe this to be in error, please contact the forum moderation team via <code>%s</code>.', 'wporg-forums' ),
     238                                                wp_kses_post( __( 'If you believe this to be in error, please contact the forum moderation team via <code>%s</code>.', 'wporg-forums' ) ),
    239239                                                'https://make.wordpress.org/support/2025/03/about-the-spectator-role-in-the-wordpress-support-forums/',
    240240                                                WordPressdotorg\Forums\MODERATION_EMAIL
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-topic-merge.php

    r13530 r15179  
    1616                <div id="merge-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-merge">
    1717
    18                         <h1><?php printf( __( 'Merge topic "%s"', 'wporg-forums' ), bbp_get_topic_title() ); ?></h1>
     18                        <?php /* translators: %s: Topic title. */ ?>
     19                        <h1><?php printf( esc_html__( 'Merge topic &#8220;%s&#8221;', 'wporg-forums' ), wp_kses_post( bbp_get_topic_title() ) ); ?></h1>
    1920
    2021                        <form id="merge_topic" name="merge_topic" method="post" action="<?php the_permalink(); ?>">
    … …  
    2223                                <fieldset class="bbp-form">
    2324
    24                                         <legend><?php printf( __( 'Merge topic "%s"', 'wporg-forums' ), bbp_get_topic_title() ); ?></legend>
     25                                        <?php /* translators: %s: Topic title. */ ?>
     26                                        <legend><?php printf( esc_html__( 'Merge topic &#8220;%s&#8221;', 'wporg-forums' ), wp_kses_post( bbp_get_topic_title() ) ); ?></legend>
    2527
    2628                                        <div>
    2729
    2830                                                <div class="bbp-template-notice info">
    29                                                         <p><?php _e( 'Select the topic to merge this one into. The destination topic will remain the lead topic, and this one will change into a reply.', 'wporg-forums' ); ?></p>
    30                                                         <p><?php _e( 'To keep this topic as the lead, go to the other topic and use the merge tool from there instead.', 'wporg-forums' ); ?></p>
     31                                                        <p><?php esc_html_e( 'Select the topic to merge this one into. The destination topic will remain the lead topic, and this one will change into a reply.', 'wporg-forums' ); ?></p>
     32                                                        <p><?php esc_html_e( 'To keep this topic as the lead, go to the other topic and use the merge tool from there instead.', 'wporg-forums' ); ?></p>
    3133                                                </div>
    3234
    3335                                                <div class="bbp-template-notice">
    34                                                         <p><?php _e( 'All replies within both the topics will be merged chronologically. The order of the merged replies is based on the time they were posted. If the destination topic was created after this one, its post date will be updated to a second earlier than this one.', 'wporg-forums' ); ?></p>
     36                                                        <p><?php esc_html_e( 'All replies within both the topics will be merged chronologically. The order of the merged replies is based on the time they were posted. If the destination topic was created after this one, its post date will be updated to a second earlier than this one.', 'wporg-forums' ); ?></p>
    3537                                                </div>
    3638
    3739                                                <fieldset class="bbp-form">
    38                                                         <legend><?php _e( 'Destination', 'wporg-forums' ); ?></legend>
     40                                                        <legend><?php esc_html_e( 'Destination', 'wporg-forums' ); ?></legend>
    3941                                                        <div>
    4042                                                                <?php if ( bbp_has_topics( array( 'show_stickies' => false, 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 'post__not_in' => array( bbp_get_topic_id() ) ) ) ) : ?>
    4143
    42                                                                         <label for="bbp_destination_topic"><?php _e( 'Merge with this topic:', 'wporg-forums' ); ?></label>
     44                                                                        <label for="bbp_destination_topic"><?php esc_html_e( 'Merge with this topic:', 'wporg-forums' ); ?></label>
    4345
    4446                                                                        <?php
    … …  
    5860                                                                <?php else : ?>
    5961
    60                                                                         <label><?php _e( 'There are no other topics in this forum to merge with.', 'wporg-forums' ); ?></label>
     62                                                                        <label><?php esc_html_e( 'There are no other topics in this forum to merge with.', 'wporg-forums' ); ?></label>
    6163
    6264                                                                <?php endif; ?>
    … …  
    6668
    6769                                                <fieldset class="bbp-form">
    68                                                         <legend><?php _e( 'Topic Extras', 'wporg-forums' ); ?></legend>
     70                                                        <legend><?php esc_html_e( 'Topic Extras', 'wporg-forums' ); ?></legend>
    6971
    7072                                                        <div>
    … …  
    7375
    7476                                                                        <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" />
    75                                                                         <label for="bbp_topic_subscribers"><?php _e( 'Merge topic subscribers', 'wporg-forums' ); ?></label><br />
     77                                                                        <label for="bbp_topic_subscribers"><?php esc_html_e( 'Merge topic subscribers', 'wporg-forums' ); ?></label><br />
    7678
    7779                                                                <?php endif; ?>
    7880
    7981                                                                <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" />
    80                                                                 <label for="bbp_topic_favoriters"><?php _e( 'Merge topic favoriters', 'wporg-forums' ); ?></label><br />
     82                                                                <label for="bbp_topic_favoriters"><?php esc_html_e( 'Merge topic favoriters', 'wporg-forums' ); ?></label><br />
    8183
    8284                                                                <?php if ( bbp_allow_topic_tags() ) : ?>
    8385
    8486                                                                        <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" />
    85                                                                         <label for="bbp_topic_tags"><?php _e( 'Merge topic tags', 'wporg-forums' ); ?></label><br />
     87                                                                        <label for="bbp_topic_tags"><?php esc_html_e( 'Merge topic tags', 'wporg-forums' ); ?></label><br />
    8688
    8789                                                                <?php endif; ?>
    … …  
    9193
    9294                                                <div class="bbp-template-notice error">
    93                                                         <p><?php _e( '<strong>WARNING:</strong> This process cannot be undone.', 'wporg-forums' ); ?></p>
     95                                                        <p><?php echo wp_kses_post( __( '<strong>WARNING:</strong> This process cannot be undone.', 'wporg-forums' ) ); ?></p>
    9496                                                </div>
    9597
    9698                                                <div class="bbp-submit-wrapper">
    97                                                         <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button button-primary submit"><?php _e( 'Submit', 'wporg-forums' ); ?></button>
     99                                                        <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button button-primary submit"><?php esc_html_e( 'Submit', 'wporg-forums' ); ?></button>
    98100                                                </div>
    99101                                        </div>
    … …  
    108110
    109111                <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
    110                         <div class="entry-content"><?php is_user_logged_in() ? _e( 'You do not have the permissions to edit this topic!', 'wporg-forums' ) : _e( 'You cannot edit this topic.', 'wporg-forums' ); ?></div>
     112                        <div class="entry-content"><?php is_user_logged_in() ? esc_html_e( 'You do not have the permissions to edit this topic!', 'wporg-forums' ) : esc_html_e( 'You cannot edit this topic.', 'wporg-forums' ); ?></div>
    111113                </div>
    112114
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-topic-split.php

    r13530 r15179  
    1616                <div id="split-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-split">
    1717
    18                         <h1><?php printf( __( 'Split topic "%s"', 'wporg-forums' ), bbp_get_topic_title() ); ?></h1>
     18                        <?php /* translators: %s: Topic title. */ ?>
     19                        <h1><?php printf( esc_html__( 'Split topic &#8220;%s&#8221;', 'wporg-forums' ), wp_kses_post( bbp_get_topic_title() ) ); ?></h1>
    1920
    2021                        <form id="split_topic" name="split_topic" method="post" action="<?php the_permalink(); ?>">
    … …  
    2223                                <fieldset class="bbp-form">
    2324
    24                                         <legend><?php printf( __( 'Split topic "%s"', 'wporg-forums' ), bbp_get_topic_title() ); ?></legend>
     25                                        <?php /* translators: %s: Topic title. */ ?>
     26                                        <legend><?php printf( esc_html__( 'Split topic &#8220;%s&#8221;', 'wporg-forums' ), wp_kses_post( bbp_get_topic_title() ) ); ?></legend>
    2527
    2628                                        <div>
    2729
    2830                                                <div class="bbp-template-notice info">
    29                                                         <p><?php _e( 'When you split a topic, you are slicing it in half starting with the reply you just selected. Choose to use that reply as a new topic with a new title, or merge those replies into an existing topic.', 'wporg-forums' ); ?></p>
     31                                                        <p><?php esc_html_e( 'When you split a topic, you are slicing it in half starting with the reply you just selected. Choose to use that reply as a new topic with a new title, or merge those replies into an existing topic.', 'wporg-forums' ); ?></p>
    3032                                                </div>
    3133
    3234                                                <div class="bbp-template-notice">
    33                                                         <p><?php _e( 'If you use the existing topic option, replies within both topics will be merged chronologically. The order of the merged replies is based on the time and date they were posted.', 'wporg-forums' ); ?></p>
     35                                                        <p><?php esc_html_e( 'If you use the existing topic option, replies within both topics will be merged chronologically. The order of the merged replies is based on the time and date they were posted.', 'wporg-forums' ); ?></p>
    3436                                                </div>
    3537
    3638                                                <fieldset class="bbp-form">
    37                                                         <legend><?php _e( 'Split Method', 'wporg-forums' ); ?></legend>
     39                                                        <legend><?php esc_html_e( 'Split Method', 'wporg-forums' ); ?></legend>
    3840
    3941                                                        <div>
    4042                                                                <input name="bbp_topic_split_option" id="bbp_topic_split_option_reply" type="radio" checked="checked" value="reply" />
    41                                                                 <label for="bbp_topic_split_option_reply"><?php printf( __( 'New topic in <strong>%s</strong> titled:', 'wporg-forums' ), bbp_get_forum_title( bbp_get_topic_forum_id( bbp_get_topic_id() ) ) ); ?></label>
     43                                                                <?php /* translators: %s: Forum title. */ ?>
     44                                                                <label for="bbp_topic_split_option_reply"><?php printf( wp_kses_post( __( 'New topic in <strong>%s</strong> titled:', 'wporg-forums' ) ), esc_html( bbp_get_forum_title( bbp_get_topic_forum_id( bbp_get_topic_id() ) ) ) ); ?></label>
    4245                                                                <input type="text" id="bbp_topic_split_destination_title" value="<?php echo esc_attr( sprintf( __( 'Split: %s', 'wporg-forums' ), bbp_get_topic_title() ) ); ?>" size="35" name="bbp_topic_split_destination_title" />
    4346                                                        </div>
    … …  
    4750                                                                <div>
    4851                                                                        <input name="bbp_topic_split_option" id="bbp_topic_split_option_existing" type="radio" value="existing" />
    49                                                                         <label for="bbp_topic_split_option_existing"><?php _e( 'Use an existing topic in this forum:', 'wporg-forums' ); ?></label>
     52                                                                        <label for="bbp_topic_split_option_existing"><?php esc_html_e( 'Use an existing topic in this forum:', 'wporg-forums' ); ?></label>
    5053
    5154                                                                        <?php
    … …  
    6972
    7073                                                <fieldset class="bbp-form">
    71                                                         <legend><?php _e( 'Topic Extras', 'wporg-forums' ); ?></legend>
     74                                                        <legend><?php esc_html_e( 'Topic Extras', 'wporg-forums' ); ?></legend>
    7275
    7376                                                        <div>
    … …  
    7679
    7780                                                                        <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" />
    78                                                                         <label for="bbp_topic_subscribers"><?php _e( 'Copy subscribers to the new topic', 'wporg-forums' ); ?></label><br />
     81                                                                        <label for="bbp_topic_subscribers"><?php esc_html_e( 'Copy subscribers to the new topic', 'wporg-forums' ); ?></label><br />
    7982
    8083                                                                <?php endif; ?>
    8184
    8285                                                                <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" />
    83                                                                 <label for="bbp_topic_favoriters"><?php _e( 'Copy favoriters to the new topic', 'wporg-forums' ); ?></label><br />
     86                                                                <label for="bbp_topic_favoriters"><?php esc_html_e( 'Copy favoriters to the new topic', 'wporg-forums' ); ?></label><br />
    8487
    8588                                                                <?php if ( bbp_allow_topic_tags() ) : ?>
    8689
    8790                                                                        <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" />
    88                                                                         <label for="bbp_topic_tags"><?php _e( 'Copy topic tags to the new topic', 'wporg-forums' ); ?></label><br />
     91                                                                        <label for="bbp_topic_tags"><?php esc_html_e( 'Copy topic tags to the new topic', 'wporg-forums' ); ?></label><br />
    8992
    9093                                                                <?php endif; ?>
    … …  
    9497
    9598                                                <div class="bbp-template-notice error">
    96                                                         <p><?php _e( '<strong>WARNING:</strong> This process cannot be undone.', 'wporg-forums' ); ?></p>
     99                                                        <p><?php echo wp_kses_post( __( '<strong>WARNING:</strong> This process cannot be undone.', 'wporg-forums' ) ); ?></p>
    97100                                                </div>
    98101
    99102                                                <div class="bbp-submit-wrapper">
    100                                                         <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button button-primary submit"><?php _e( 'Submit', 'wporg-forums' ); ?></button>
     103                                                        <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button button-primary submit"><?php esc_html_e( 'Submit', 'wporg-forums' ); ?></button>
    101104                                                </div>
    102105                                        </div>
    … …  
    111114
    112115                <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
    113                         <div class="entry-content"><?php is_user_logged_in() ? _e( 'You do not have the permissions to edit this topic!', 'wporg-forums' ) : _e( 'You cannot edit this topic.', 'wporg-forums' ); ?></div>
     116                        <div class="entry-content"><?php is_user_logged_in() ? esc_html_e( 'You do not have the permissions to edit this topic!', 'wporg-forums' ) : esc_html_e( 'You cannot edit this topic.', 'wporg-forums' ); ?></div>
    114117                </div>
    115118
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-topic.php

    r14796 r15179  
    1616
    1717                                <h1>
    18                                         <?php printf( __( 'Now Editing &ldquo;%s&rdquo;', 'wporg-forums' ), bbp_get_topic_title() ); ?>
     18                                        <?php /* translators: %s: Topic title. */ ?>
     19                                        <?php printf( esc_html__( 'Now Editing &ldquo;%s&rdquo;', 'wporg-forums' ), wp_kses_post( bbp_get_topic_title() ) ); ?>
    1920                                </h1>
    2021
    … …  
    2324                                <h2>
    2425                                        <?php if ( bbp_is_single_forum() ) {
    25                                                 _e( 'Create a new topic in this forum', 'wporg-forums' );
     26                                                esc_html_e( 'Create a new topic in this forum', 'wporg-forums' );
    2627                                        } elseif ( bbp_is_single_view() && 'reviews' === bbp_get_view_id() ) {
    27                                                 _e( 'Create a new review', 'wporg-forums' );
     28                                                esc_html_e( 'Create a new review', 'wporg-forums' );
    2829                                        } else {
    29                                                 _e( 'Create a new topic', 'wporg-forums' );
     30                                                esc_html_e( 'Create a new topic', 'wporg-forums' );
    3031                                        } ?>
    3132                                </h2>
    … …  
    7374                                                <?php else : ?>
    7475
    75                                                         <p><?php _e( 'Before posting a new topic, follow these steps:', 'wporg-forums' ); ?></p>
     76                                                        <p><?php esc_html_e( 'Before posting a new topic, follow these steps:', 'wporg-forums' ); ?></p>
    7677                                                        <ul>
    7778                                                                <li><?php
    7879                                                                        /* translators: %s: Handbook URL for forum welcome */
    79                                                                         printf( __( '<strong><a href="%s">Read the Welcome Guide</a></strong> to maximize your odds of getting help.', 'wporg-forums' ),
     80                                                                        printf(
     81                                                                                /* translators: %s: Welcome guide URL. */
     82                                                                                wp_kses_post( __( '<strong><a href="%s">Read the Welcome Guide</a></strong> to maximize your odds of getting help.', 'wporg-forums' ) ),
    8083                                                                                esc_url( __( 'https://wordpress.org/support/welcome/', 'wporg-forums' ) )
    8184                                                                        );
    … …  
    8386                                                                <li><?php
    8487                                                                        /* translators: %s: URL to search */
    85                                                                         printf( __( '<strong><a href="%s">Search the forums</a></strong> for similar inquiries.', 'wporg-forums' ),
     88                                                                        printf(
     89                                                                                /* translators: %s: Forum search URL. */
     90                                                                                wp_kses_post( __( '<strong><a href="%s">Search the forums</a></strong> for similar inquiries.', 'wporg-forums' ) ),
    8691                                                                                esc_url( bbp_get_search_url() )
    8792                                                                        );
    8893                                                                ?></li>
    89                                                                 <li><?php _e( '<strong>Update your plugins, themes, and WordPress site</strong> to the latest versions.', 'wporg-forums' ); ?></li>
    90                                                                 <li><?php _e( '<strong>Describe the steps</strong> needed to reproduce an issue.', 'wporg-forums' ); ?></li>
    91                                                                 <li><?php _e( '<strong>Provide relevant information</strong>, such as your browser, operating system, or server environment.', 'wporg-forums' ); ?></li>
     94                                                                <li><?php echo wp_kses_post( __( '<strong>Update your plugins, themes, and WordPress site</strong> to the latest versions.', 'wporg-forums' ) ); ?></li>
     95                                                                <li><?php echo wp_kses_post( __( '<strong>Describe the steps</strong> needed to reproduce an issue.', 'wporg-forums' ) ); ?></li>
     96                                                                <li><?php echo wp_kses_post( __( '<strong>Provide relevant information</strong>, such as your browser, operating system, or server environment.', 'wporg-forums' ) ); ?></li>
    9297                                                                <?php if ( ! bbp_is_single_view() || ! in_array( bbp_get_view_id(), array( 'theme', 'plugin' ) ) ) : ?>
    9398                                                                <li><?php
    94                                                                         /* translators: 1: Theme Directory URL, 2: Appearance icon, 3: Plugin Directory URL, 4: Plugins icon */
    95                                                                         printf( __( '<strong>Don\'t use this forum to ask for help with <a href="%1$s">themes</a> or <a href="%2$s">plugins</a></strong>.  Instead, head to the theme or plugin\'s page and find the "View support forum" link for its specific forum.', 'wporg-forums' ),
     99                                                                        printf(
     100                                                                                /* translators: 1: Theme directory URL, 2: Plugin directory URL. */
     101                                                                                wp_kses_post( __( '<strong>Don&#8217;t use this forum to ask for help with <a href="%1$s">themes</a> or <a href="%2$s">plugins</a></strong>.  Instead, head to the theme or plugin&#8217;s page and find the "View support forum" link for its specific forum.', 'wporg-forums' ) ),
    96102                                                                                esc_url( __( 'https://wordpress.org/themes/', 'wporg-forums' ) ),
    97103                                                                                esc_url( __( 'https://wordpress.org/plugins/', 'wporg-forums' ) )
    … …  
    101107                                                                <li><?php
    102108                                                                        /* translators: %s: Handbook URL for reporting security issues */
    103                                                                         printf( __( '<strong>Reporting a security issue?</strong> Please follow the guidelines on <a href="%s">reporting vulnerabilities responsibly</a>.', 'wporg-forums' ),
     109                                                                        printf(
     110                                                                                /* translators: %s: Vulnerability reporting guidelines URL. */
     111                                                                                wp_kses_post( __( '<strong>Reporting a security issue?</strong> Please follow the guidelines on <a href="%s">reporting vulnerabilities responsibly</a>.', 'wporg-forums' ) ),
    104112                                                                                esc_url( __( 'https://make.wordpress.org/core/handbook/testing/reporting-security-vulnerabilities/', 'wporg-forums' ) )
    105113                                                                        );
    … …  
    116124
    117125                                        <div class="bbp-template-notice">
    118                                                 <p><?php _e( 'This forum is marked as closed to new topics, however your posting capabilities still allow you to create a topic.', 'wporg-forums' ); ?></p>
     126                                                <p><?php esc_html_e( 'This forum is marked as closed to new topics, however your posting capabilities still allow you to create a topic.', 'wporg-forums' ); ?></p>
    119127                                        </div>
    120128
    … …  
    124132
    125133                                        <div class="bbp-template-notice">
    126                                                 <p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'wporg-forums' ); ?></p>
     134                                                <p><?php esc_html_e( 'Your account has the ability to post unrestricted HTML content.', 'wporg-forums' ); ?></p>
    127135                                        </div>
    128136
    … …  
    140148                                                <label for="bbp_topic_title"><?php
    141149                                                        if ( bbp_is_single_view() && 'reviews' === bbp_get_view_id() ) {
    142                                                                 printf( __( 'Review Title (Maximum Length: %d):', 'wporg-forums' ), bbp_get_title_max_length() );
     150                                                                /* translators: %d: Maximum title length. */
     151                                                                printf( esc_html__( 'Review Title (Maximum Length: %d):', 'wporg-forums' ), (int) bbp_get_title_max_length() );
    143152                                                        } else {
    144                                                                 printf( __( 'Topic Title (Maximum Length: %d):', 'wporg-forums' ), bbp_get_title_max_length() );
     153                                                                /* translators: %d: Maximum title length. */
     154                                                                printf( esc_html__( 'Topic Title (Maximum Length: %d):', 'wporg-forums' ), (int) bbp_get_title_max_length() );
    145155                                                        }
    146156                                                ?></label><br />
    … …  
    161171                                        <?php if ( bbp_allow_topic_tags() ) : ?>
    162172                                        <p>
    163                                                 <label for="bbp_topic_tags"><?php _e( 'Topic Tags:', 'wporg-forums' ); ?></label><br />
     173                                                <label for="bbp_topic_tags"><?php esc_html_e( 'Topic Tags:', 'wporg-forums' ); ?></label><br />
    164174                                                <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" aria-describedby="bbp_topic_tags_description" <?php disabled( bbp_is_topic_spam() ); ?> /><br />
    165175                                                <em id="bbp_topic_tags_description"><?php esc_html_e( 'Separate tags with commas', 'wporg-forums' ); ?></em>
    … …  
    174184
    175185                                                <p>
    176                                                         <label for="bbp_forum_id"><?php _e( 'Forum:', 'wporg-forums' ); ?></label><br />
     186                                                        <label for="bbp_forum_id"><?php esc_html_e( 'Forum:', 'wporg-forums' ); ?></label><br />
    177187                                                        <?php bbp_dropdown( array( 'selected' => bbp_get_form_topic_forum() ) ); ?>
    178188                                                </p>
    … …  
    191201                                                        <?php if ( bbp_is_topic_edit() && ( get_the_author_meta( 'ID' ) != bbp_get_current_user_id() ) ) : ?>
    192202
    193                                                                 <label for="bbp_topic_subscription"><?php _e( 'Notify the author of follow-up replies via email', 'wporg-forums' ); ?></label>
     203                                                                <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify the author of follow-up replies via email', 'wporg-forums' ); ?></label>
    194204
    195205                                                        <?php else : ?>
    196206
    197                                                                 <label for="bbp_topic_subscription"><?php _e( 'Notify me of follow-up replies via email', 'wporg-forums' ); ?></label>
     207                                                                <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify me of follow-up replies via email', 'wporg-forums' ); ?></label>
    198208
    199209                                                        <?php endif; ?>
    … …  
    211221                                                        <legend>
    212222                                                                <input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php bbp_form_topic_log_edit(); ?> />
    213                                                                 <label for="bbp_log_topic_edit"><?php _e( 'Keep a log of this edit:', 'wporg-forums' ); ?></label><br />
     223                                                                <label for="bbp_log_topic_edit"><?php esc_html_e( 'Keep a log of this edit:', 'wporg-forums' ); ?></label><br />
    214224                                                        </legend>
    215225
    216226                                                        <div>
    217                                                                 <label for="bbp_topic_edit_reason"><em><?php _e( 'Optional reason for editing:', 'wporg-forums' ); ?></em></label><br />
     227                                                                <label for="bbp_topic_edit_reason"><em><?php esc_html_e( 'Optional reason for editing:', 'wporg-forums' ); ?></em></label><br />
    218228                                                                <input type="text" value="<?php bbp_form_topic_edit_reason(); ?>" size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" />
    219229                                                        </div>
    … …  
    230240                                                <?php do_action( 'bbp_theme_before_topic_form_submit_button' ); ?>
    231241
    232                                                 <button type="submit" id="bbp_topic_submit" name="bbp_topic_submit" class="button button-primary submit"><?php _e( 'Submit', 'wporg-forums' ); ?></button>
     242                                                <button type="submit" id="bbp_topic_submit" name="bbp_topic_submit" class="button button-primary submit"><?php esc_html_e( 'Submit', 'wporg-forums' ); ?></button>
    233243
    234244                                                <?php do_action( 'bbp_theme_after_topic_form_submit_button' ); ?>
    … …  
    253263        <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
    254264                <div class="bbp-template-notice">
    255                         <p><?php printf( __( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'wporg-forums' ), bbp_get_forum_title() ); ?></p>
     265                        <?php /* translators: %s: Forum title. */ ?>
     266                        <p><?php printf( esc_html__( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'wporg-forums' ), esc_html( bbp_get_forum_title() ) ); ?></p>
    256267                </div>
    257268        </div>
    … …  
    261272        <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
    262273                <div class="bbp-template-notice">
    263                         <p><?php _e( 'You cannot create new topics at this time.', 'wporg-forums' ); ?></p>
     274                        <p><?php esc_html_e( 'You cannot create new topics at this time.', 'wporg-forums' ); ?></p>
    264275                        <?php if ( current_user_can( bbp_get_spectator_role() ) ) : ?>
    265276                                <p><?php
    266277                                        printf(
    267                                                 __( 'This may be caused by your account being marked as a brand or shared company account.', 'wporg-forums' ) . '<br>' .
     278                                                esc_html__( 'This may be caused by your account being marked as a brand or shared company account.', 'wporg-forums' ) . '<br>' .
    268279                                                /* translators: %s: Link to https://make.wordpress.org/support/2025/03/about-the-spectator-role-in-the-wordpress-support-forums/ */
    269                                                 __( '<a href="%s">Please read this announcement</a> for more information.', 'wporg-forums' ) . '<br>' .
     280                                                wp_kses_post( __( '<a href="%s">Please read this announcement</a> for more information.', 'wporg-forums' ) ) . '<br>' .
    270281                                                /* translators: %s: Email address. */
    271                                                 __( 'If you believe this to be in error, please contact the forum moderation team via <code>%s</code>.', 'wporg-forums' ),
     282                                                wp_kses_post( __( 'If you believe this to be in error, please contact the forum moderation team via <code>%s</code>.', 'wporg-forums' ) ),
    272283                                                'https://make.wordpress.org/support/2025/03/about-the-spectator-role-in-the-wordpress-support-forums/',
    273284                                                WordPressdotorg\Forums\MODERATION_EMAIL
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/form-user-edit.php

    r15170 r15179  
    120120                        <p id="security">
    121121                                <?php printf(
    122                                         __( 'Your password and two-factor authentication settings can be changed in <a href="%s">the Account section</a>.', 'wporg' ),
     122                                        /* translators: %s: Account settings URL. */
     123                                        wp_kses_post( __( 'Your password and two-factor authentication settings can be changed in <a href="%s">the Account section</a>.', 'wporg' ) ),
    123124                                        esc_url( get_edit_account_url( bbp_get_displayed_user_id() ) )
    124125                                ); ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/loop-forums-homepage.php

    r13329 r15179  
    33
    44<section class="forums-homepage-list">
    5         <h2 class="has-heading-5-font-size"><?php _e( 'Forums', 'wporg-forums' ); ?></h2>
     5        <h2 class="has-heading-5-font-size"><?php esc_html_e( 'Forums', 'wporg-forums' ); ?></h2>
    66
    77        <?php echo do_blocks(
    … …  
    1818
    1919<section class="forums-homepage-topics">
    20         <h2 class="has-heading-5-font-size"><?php _e( 'Topics', 'wporg-forums' ); ?></h2>
     20        <h2 class="has-heading-5-font-size"><?php esc_html_e( 'Topics', 'wporg-forums' ); ?></h2>
    2121
    2222        <?php echo do_blocks(
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/loop-forums.php

    r7818 r15179  
    66
    77                <ul class="forum-titles">
    8                         <li class="bbp-forum-info"><?php _e( 'Forum', 'wporg-forums' ); ?></li>
    9                         <li class="bbp-forum-topic-count"><?php _e( 'Topics', 'wporg-forums' ); ?></li>
    10                         <li class="bbp-forum-reply-count"><?php _e( 'Posts', 'wporg-forums' ); ?></li>
     8                        <li class="bbp-forum-info"><?php esc_html_e( 'Forum', 'wporg-forums' ); ?></li>
     9                        <li class="bbp-forum-topic-count"><?php esc_html_e( 'Topics', 'wporg-forums' ); ?></li>
     10                        <li class="bbp-forum-reply-count"><?php esc_html_e( 'Posts', 'wporg-forums' ); ?></li>
    1111                </ul>
    1212
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/loop-single-reply-topic.php

    r15170 r15179  
    1919                        <?php do_action( 'bbp_theme_before_topic_started_by' ); ?>
    2020
    21                         <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'wporg-forums' ), bbp_get_topic_author_link( array( 'post_id' => $topic_id, 'size' => '14' ) ) ); ?></span>
     21                        <span class="bbp-topic-started-by">
     22                        <?php
     23                        printf(
     24                                /* translators: %1$s: Topic author link. */
     25                                esc_html__( 'Started by: %1$s', 'wporg-forums' ),
     26                                // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- bbPress builds this markup; wp_kses_post() would strip the avatar's srcset and decoding attributes.
     27                                bbp_get_topic_author_link(
     28                                        array(
     29                                                'post_id' => $topic_id,
     30                                                'size'    => '14',
     31                                        )
     32                                )
     33                        );
     34                        ?>
     35                        </span>
    2236
    2337                        <?php do_action( 'bbp_theme_after_topic_started_by' ); ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/loop-single-topic.php

    r15170 r15179  
    4747                        <?php do_action( 'bbp_theme_before_topic_started_by' ); ?>
    4848
    49                         <span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'wporg-forums' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span>
     49                        <?php /* translators: %1$s: Topic author link. */ ?>
     50                        <span class="bbp-topic-started-by"><?php printf( esc_html__( 'Started by: %1$s', 'wporg-forums' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- bbPress builds this markup; wp_kses_post() would strip the avatar's srcset and decoding attributes. ?></span>
    5051
    5152                        <?php do_action( 'bbp_theme_after_topic_started_by' ); ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/user-profile.php

    r15045 r15179  
    7272
    7373                        if ( $slack_username && $slack_username != $user_nicename ) {
    74                                 /* translators: 1: user's WordPress.org profile link, 2: user's Slack username, 3: make.wordpress.org/chat URL */
    75                                 printf( __( '%1$s on WordPress.org, %2$s on <a href="%3$s">Slack</a>', 'wporg-forums' ),
     74                                printf(
     75                                        /* translators: 1: User's WordPress.org profile link, 2: User's Slack username, 3: make.wordpress.org/chat URL. */
     76                                        wp_kses_post( __( '%1$s on WordPress.org, %2$s on <a href="%3$s">Slack</a>', 'wporg-forums' ) ),
    7677                                        wporg_support_get_wporg_profile_link(),
    7778                                        '@' . esc_html( $slack_username ),
    … …  
    7980                                );
    8081                        } elseif( $slack_username ) {
    81                                 /* translators: 1: WordPress.org and Slack username, 2: URL for information about Slack */
    82                                 printf( __( '%1$s on WordPress.org and <a href="%2$s">Slack</a>', 'wporg-forums' ),
     82                                printf(
     83                                        /* translators: 1: WordPress.org and Slack username, 2: URL for information about Slack. */
     84                                        wp_kses_post( __( '%1$s on WordPress.org and <a href="%2$s">Slack</a>', 'wporg-forums' ) ),
    8385                                        wporg_support_get_wporg_profile_link(),
    8486                                        'https://make.wordpress.org/chat/'
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/user-subscriptions.php

    r9475 r15179  
    3434                                <?php else :
    3535                                        if ( bbp_get_user_id() == get_current_user_id() ) {
    36                                                 echo '<p>' . __( 'You are not currently subscribed to any topics.', 'wporg-forums' ) . '</p>';
     36                                                echo '<p>' . esc_html__( 'You are not currently subscribed to any topics.', 'wporg-forums' ) . '</p>';
    3737                                        } else {
    38                                                 echo '<p>' . __( 'This user is not currently subscribed to any topics.', 'wporg-forums' ) . '</p>';
     38                                                echo '<p>' . esc_html__( 'This user is not currently subscribed to any topics.', 'wporg-forums' ) . '</p>';
    3939                                        }
    4040                                endif ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/functions.php

    r15071 r15179  
    13561356        <form role="search" method="get" id="searchform" action="https://wordpress.org/search/do-search.php">
    13571357                <div>
    1358                         <h3><?php _e( 'Forum Search', 'wporg-forums' ); ?></h3>
    1359                         <label class="screen-reader-text hidden" for="search"><?php _e( 'Search for:', 'wporg-forums' ); ?></label>
     1358                        <h3><?php esc_html_e( 'Forum Search', 'wporg-forums' ); ?></h3>
     1359                        <label class="screen-reader-text hidden" for="search"><?php esc_html_e( 'Search for:', 'wporg-forums' ); ?></label>
    13601360                        <input name="search" class="text" id="forumsearchbox" value type="text" />
    13611361                        <input name="go" class="button" type="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'wporg-forums' ); ?>" />
    … …  
    13721372        <form role="search" method="get" id="searchform" action="">
    13731373                <div>
    1374                         <h3><?php _e( 'Forum Search', 'wporg-forums' ); ?></h3>
    1375                         <label class="screen-reader-text hidden" for="ts"><?php _e( 'Search for:', 'wporg-forums' ); ?></label>
     1374                        <h3><?php esc_html_e( 'Forum Search', 'wporg-forums' ); ?></h3>
     1375                        <label class="screen-reader-text hidden" for="ts"><?php esc_html_e( 'Search for:', 'wporg-forums' ); ?></label>
    13761376                        <input type="text" value="<?php echo bb_base_topic_search_query(); ?>" name="ts" id="ts" />
    13771377                        <input class="button" type="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'wporg-forums' ); ?>" />
    … …  
    13871387        <form role="search" method="get" id="searchform" action="">
    13881388                <div>
    1389                         <h3><?php _e( 'Reply Search', 'wporg-forums' ); ?></h3>
    1390                         <label class="screen-reader-text hidden" for="rs"><?php _e( 'Search for:', 'wporg-forums' ); ?></label>
     1389                        <h3><?php esc_html_e( 'Reply Search', 'wporg-forums' ); ?></h3>
     1390                        <label class="screen-reader-text hidden" for="rs"><?php esc_html_e( 'Search for:', 'wporg-forums' ); ?></label>
    13911391                        <input type="text" value="<?php echo bb_base_reply_search_query(); ?>" name="rs" id="rs" />
    13921392                        <input class="button" type="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'wporg-forums' ); ?>" />
    … …  
    14021402        <form role="search" method="get" id="searchform" action="">
    14031403                <div>
    1404                         <h3><?php _e( 'Plugin Search', 'wporg-forums' ); ?></h3>
    1405                         <label class="screen-reader-text hidden" for="ps"><?php _e( 'Search for:', 'wporg-forums' ); ?></label>
     1404                        <h3><?php esc_html_e( 'Plugin Search', 'wporg-forums' ); ?></h3>
     1405                        <label class="screen-reader-text hidden" for="ps"><?php esc_html_e( 'Search for:', 'wporg-forums' ); ?></label>
    14061406                        <input type="text" value="<?php echo bb_base_plugin_search_query(); ?>" name="ps" id="ts" />
    14071407                        <input class="button" type="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'wporg-forums' ); ?>" />
    … …  
    14861486                printf(
    14871487                        /* translators: %s: forum title */
    1488                         __( 'In: %s', 'wporg-forums' ),
     1488                        esc_html__( 'In: %s', 'wporg-forums' ),
    14891489                        sprintf( '<a href="%s">%s</a>',
    14901490                                esc_url( bbp_get_forum_permalink( bbp_get_topic_forum_id() ) ),
    1491                                 bbp_get_topic_forum_title()
     1491                                esc_html( bbp_get_topic_forum_title() )
    14921492                        )
    14931493                );
    … …  
    15041504        <?php if ( !empty( $last_reply  ) ) : ?>
    15051505                <li class="topic-freshness-author"><?php
    1506                         /* translators: %s: reply author link */
    1507                         printf( __( 'Last reply from: %s', 'wporg-forums' ),
    1508                                 bbp_get_author_link( array( 'type' => 'name', 'post_id' => $last_reply, 'size' => '15' ) )
     1506                        printf(
     1507                                /* translators: %s: Reply author link. */
     1508                                esc_html__( 'Last reply from: %s', 'wporg-forums' ),
     1509                                wp_kses_post(
     1510                                        bbp_get_author_link(
     1511                                                array(
     1512                                                        'type'    => 'name',
     1513                                                        'post_id' => $last_reply,
     1514                                                        'size'    => '15',
     1515                                                )
     1516                                        )
     1517                                )
    15091518                        );
    15101519                ?></li>
    … …  
    15131522                <li class="topic-freshness-time"><?php
    15141523                        /* translators: %s: date/time link to the latest post */
    1515                         printf( __( 'Last activity: %s', 'wporg-forums' ), $time_since );
     1524                        printf( esc_html__( 'Last activity: %s', 'wporg-forums' ), wp_kses_post( $time_since ) );
    15161525                ?></li>
    15171526        <?php endif; ?>
    … …  
    15271536                <li class="create-reply"><a href="#new-post"><?php
    15281537                        if ( wporg_support_is_single_review() ) {
    1529                                 _e( 'Reply to Review', 'wporg-forums' );
     1538                                esc_html_e( 'Reply to Review', 'wporg-forums' );
    15301539                        } else {
    1531                                 _e( 'Reply to Topic', 'wporg-forums' );
     1540                                esc_html_e( 'Reply to Topic', 'wporg-forums' );
    15321541                        }
    15331542                ?></a></li>
    … …  
    15501559        if ( bbp_get_forum_parent_id() ) : ?>
    15511560                <li class="topic-parent"><?php
    1552                         /* translators: %s: forum title */
    1553                         printf( __( 'In: %s', 'wporg-forums' ),
    1554                                 sprintf( '<a href="%s">%s</a>',
     1561                        printf(
     1562                                /* translators: %s: Forum title. */
     1563                                esc_html__( 'In: %s', 'wporg-forums' ),
     1564                                sprintf(
     1565                                        '<a href="%s">%s</a>',
    15551566                                        esc_url( bbp_get_forum_permalink( bbp_get_forum_parent_id() ) ),
    1556                                         bbp_get_forum_title( bbp_get_forum_parent_id() )
     1567                                        esc_html( bbp_get_forum_title( bbp_get_forum_parent_id() ) )
    15571568                                )
    15581569                        );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/page-homepage.php

    r13604 r15179  
    3333
    3434                <section class="forums-homepage-topics">
    35                         <h2 class="has-heading-5-font-size"><?php _e( 'Topics', 'wporg-forums' ); ?></h2>
     35                        <h2 class="has-heading-5-font-size"><?php esc_html_e( 'Topics', 'wporg-forums' ); ?></h2>
    3636
    3737                        <?php echo do_blocks( '<!-- wp:pattern {"slug":"wporg-support/forums-views"} /-->' ); ?>
    … …  
    4040                <section class="clear helpful-links">
    4141                        <div>
    42                                 <h2 class="has-heading-5-font-size"><?php _e( 'Helpful Links', 'wporg-forums' ); ?></h2>
     42                                <h2 class="has-heading-5-font-size"><?php esc_html_e( 'Helpful Links', 'wporg-forums' ); ?></h2>
    4343                                <ul class="meta-list">
    44                                         <li><?php _e( '<a href="https://wordpress.org/support/article/new_to_wordpress_-_where_to_start/">New to WordPress &mdash; Where to Start</a>', 'wporg-forums' ); ?></li>
    45                                         <li><?php _e( '<a href="https://wordpress.org/support/article/faq-installation/">Frequently Asked Questions about Installing WordPress</a>', 'wporg-forums' ); ?></li>
    46                                         <li><?php _e( '<a href="https://wordpress.org/support/article/first-steps-with-wordpress-classic/">First Steps with WordPress</a>', 'wporg-forums' ); ?></li>
    47                                         <li><?php _e( '<a href="https://wordpress.org/support/article/writing-posts/">Writing Posts</a>', 'wporg-forums' ); ?></li>
     44                                        <li><?php echo wp_kses_post( __( '<a href="https://wordpress.org/support/article/new_to_wordpress_-_where_to_start/">New to WordPress &mdash; Where to Start</a>', 'wporg-forums' ) ); ?></li>
     45                                        <li><?php echo wp_kses_post( __( '<a href="https://wordpress.org/support/article/faq-installation/">Frequently Asked Questions about Installing WordPress</a>', 'wporg-forums' ) ); ?></li>
     46                                        <li><?php echo wp_kses_post( __( '<a href="https://wordpress.org/support/article/first-steps-with-wordpress-classic/">First Steps with WordPress</a>', 'wporg-forums' ) ); ?></li>
     47                                        <li><?php echo wp_kses_post( __( '<a href="https://wordpress.org/support/article/writing-posts/">Writing Posts</a>', 'wporg-forums' ) ); ?></li>
    4848                                </ul>
    4949                        </div>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/searchform.php

    r13961 r15179  
    66
    77<form role="search" method="get" class="search-form" action="<?php bbp_search_url(); ?>">
    8         <label for="s" class="screen-reader-text"><?php _ex( 'Search for:', 'label', 'wporg-forums' ); ?></label>
     8        <label for="s" class="screen-reader-text"><?php echo esc_html_x( 'Search for:', 'label', 'wporg-forums' ); ?></label>
    99        <input type="hidden" name="action" value="bbp-search-request" />
    1010        <input type="search" id="s" class="search-field" placeholder="<?php echo esc_attr_x( 'Search forums', 'placeholder', 'wporg-forums' ); ?>" value="<?php echo esc_attr( bbp_get_search_terms() ); ?>" name="bbp_search" required />
    … …  
    1313                        <path d="M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"></path>
    1414                </svg>
    15                 <span class="screen-reader-text"><?php _e( 'Search forums', 'wporg-forums' ); ?></span>
     15                <span class="screen-reader-text"><?php esc_html_e( 'Search forums', 'wporg-forums' ); ?></span>
    1616        </button>
    1717</form>
    … …  
    2020
    2121<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
    22         <label for="s" class="screen-reader-text"><?php _ex( 'Search for:', 'label', 'wporg-forums' ); ?></label>
     22        <label for="s" class="screen-reader-text"><?php echo esc_html_x( 'Search for:', 'label', 'wporg-forums' ); ?></label>
    2323        <?php
    2424                $tab = null;
    … …  
    4646                        <path d="M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"></path>
    4747                </svg>
    48                 <span class="screen-reader-text"><?php _e( 'Search forums', 'wporg-forums' ); ?></span>
     48                <span class="screen-reader-text"><?php esc_html_e( 'Search forums', 'wporg-forums' ); ?></span>
    4949        </button>
    5050</form>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/sidebar.php

    r15170 r15179  
    77                        <ul>
    88                                <li><?php
    9                                         /* translators: %s: user's display name */
    10                                         printf( __( 'Howdy, %s', 'wporg-forums' ),
    11                                                 '<a href="' . esc_url( bbp_get_user_profile_url( bbp_get_current_user_id() ) ) . '">' . bbp_get_current_user_name() . '</a>'
     9                                        printf(
     10                                                /* translators: %s: Current user's profile link. */
     11                                                esc_html__( 'Howdy, %s', 'wporg-forums' ),
     12                                                '<a href="' . esc_url( bbp_get_user_profile_url( bbp_get_current_user_id() ) ) . '">' . esc_html( bbp_get_current_user_name() ) . '</a>'
    1213                                        );
    1314                                ?></li>
    14                                 <li><a href="<?php echo esc_url( wp_logout_url() ); ?>"><?php _e( 'Log Out', 'wporg-forums' ); ?></a></li>
     15                                <li><a href="<?php echo esc_url( wp_logout_url() ); ?>"><?php esc_html_e( 'Log Out', 'wporg-forums' ); ?></a></li>
    1516                        </ul>
    1617                </div>
    … …  
    2526                                <ul class="forum-info">
    2627                                        <?php bb_base_single_forum_description(); ?>
    27                                         <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/"><?php _e( 'RSS Recent Posts', 'wporg-forums' ); ?></a></li>
    28                                         <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/?type=topic"><?php _e( 'RSS Recent Topics', 'wporg-forums' ); ?></a></li>
     28                                        <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/"><?php esc_html_e( 'RSS Recent Posts', 'wporg-forums' ); ?></a></li>
     29                                        <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/?type=topic"><?php esc_html_e( 'RSS Recent Topics', 'wporg-forums' ); ?></a></li>
    2930                                        <?php if ( is_user_logged_in() && $forum_subscription_link = bbp_get_forum_subscription_link() ) : ?>
    3031                                                <li class="forum-subscribe"><?php echo wp_kses_post( $forum_subscription_link ); ?></li>
    … …  
    8687
    8788                        <div>
    88                                 <h2><?php _e( 'Topics', 'wporg-forums' ); ?></h2>
     89                                <h2><?php esc_html_e( 'Topics', 'wporg-forums' ); ?></h2>
    8990
    9091                                <?php echo do_blocks(
    … …  
    103104
    104105                        <div>
    105                                 <h2><?php _e( 'Feeds', 'wporg-forums' ); ?></h2>
     106                                <h2><?php esc_html_e( 'Feeds', 'wporg-forums' ); ?></h2>
    106107                                <ul class="forum-feeds">
    107                                         <li><a class="feed" href="<?php bbp_forums_url(); ?>feed/"><?php _e( 'RSS Recent Posts', 'wporg-forums' ); ?></a></li>
    108                                         <li><a class="feed" href="<?php bbp_topics_url(); ?>feed/"><?php _e( 'RSS Recent Topics', 'wporg-forums' ); ?></a></li>
     108                                        <li><a class="feed" href="<?php bbp_forums_url(); ?>feed/"><?php esc_html_e( 'RSS Recent Posts', 'wporg-forums' ); ?></a></li>
     109                                        <li><a class="feed" href="<?php bbp_topics_url(); ?>feed/"><?php esc_html_e( 'RSS Recent Topics', 'wporg-forums' ); ?></a></li>
    109110                                </ul>
    110111                        </div>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/404.php

    r6277 r15179  
    2424                                        printf(
    2525                                                /* translators: Home URL. */
    26                                                 __( 'Try searching from the field above, or go to the <a href="%s">home page</a>.', 'wporg' ), // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
     26                                                wp_kses_post( __( 'Try searching from the field above, or go to the <a href="%s">home page</a>.', 'wporg' ) ),
    2727                                                esc_url( get_home_url() )
    2828                                        );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/inc/template-tags.php

    r9923 r15179  
    3131                        printf(
    3232                                /* translators: 1: post date 2: post author */
    33                                 '<span class="posted-on">' . __( 'Posted on %1$s by %2$s.', 'wporg' ) . '</span>',
     33                                '<span class="posted-on">' . esc_html__( 'Posted on %1$s by %2$s.', 'wporg' ) . '</span>',
    3434                                $time_string,
    3535                                $author_string
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/template-parts/content-none.php

    r9923 r15179  
    2020                                printf(
    2121                                        /* translators: Link to post editor. */
    22                                         __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'wporg' ), // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
     22                                        wp_kses_post( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'wporg' ) ),
    2323                                        esc_url( admin_url( 'post-new.php' ) )
    2424                                );
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/404.php

    r15170 r15179  
    2020                        <div class="baron-von-pick">
    2121                                <img src="<?php echo esc_url( get_theme_file_uri( 'i/michael-pick-stashes-a-guinness.gif' ) ); ?>" alt="" /><br />
    22                                 <?php printf( __( 'Photo animation credit: %s.', 'wptv' ), '<a href="https://markjaquith.com/">Mark Jaquith</a>' ); ?>
     22                                <?php /* translators: %s: Photo credit link. */ ?>
     23                                <?php printf( esc_html__( 'Photo animation credit: %s.', 'wptv' ), '<a href="https://markjaquith.com/">Mark Jaquith</a>' ); ?>
    2324                        </div>
    2425                        <div class="message-404">
    … …  
    2728                                <p><?php esc_html_e( 'Try searching for what you were looking for.', 'wptv' ); ?></p>
    2829                                <p><?php echo get_search_form(); ?></p>
    29                                 <p><?php printf( __( 'Or, <a href="%s">visit the homepage</a> to start a fresh journey.', 'wptv' ), '/' ); ?></p>
     30                                <?php /* translators: %s: Homepage URL. */ ?>
     31                                <p><?php printf( wp_kses_post( __( 'Or, <a href="%s">visit the homepage</a> to start a fresh journey.', 'wptv' ) ), '/' ); ?></p>
    3032                        </div>
    3133                </div>
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/archive.php

    r8368 r15179  
    1616        <h2 class="page-title"><?php
    1717                if ( is_category() ) :
    18                         printf( __( '&#8216;%s&#8217; Videos', 'wptv' ), single_cat_title( '', false ) );
     18                        /* translators: %s: Category name. */
     19                        printf( esc_html__( '&#8216;%s&#8217; Videos', 'wptv' ), esc_html( single_cat_title( '', false ) ) );
    1920
    2021                elseif ( is_tag() ) :
    21                         printf( __( '&#8216;%s&#8217; Videos', 'wptv' ), single_tag_title( '', false ) );
     22                        /* translators: %s: Tag name. */
     23                        printf( esc_html__( '&#8216;%s&#8217; Videos', 'wptv' ), esc_html( single_tag_title( '', false ) ) );
    2224
    2325                elseif ( is_day() ) :
    24                         printf( _x( 'Archive for %s', 'Daily archive page', 'wptv' ), get_the_time( __( 'F jS, Y', 'wptv' ) ) );
     26                        $archive_date = get_the_time( __( 'F jS, Y', 'wptv' ) );
     27                        /* translators: %s: Date. */
     28                        printf( esc_html_x( 'Archive for %s', 'Daily archive page', 'wptv' ), esc_html( $archive_date ) );
    2529
    2630                elseif ( is_month() ) :
    27                         printf( _x( 'Archive for %s', 'Monthly archive page', 'wptv' ), get_the_time( __( 'F, Y', 'wptv' ) ) );
     31                        $archive_date = get_the_time( __( 'F, Y', 'wptv' ) );
     32                        /* translators: %s: Month. */
     33                        printf( esc_html_x( 'Archive for %s', 'Monthly archive page', 'wptv' ), esc_html( $archive_date ) );
    2834
    2935                elseif ( is_year() ) :
    30                         printf( _x( 'Archive for %s', 'Yearly archive page', 'wptv' ), get_the_time( __( 'Y', 'wptv' ) ) );
     36                        $archive_date = get_the_time( __( 'Y', 'wptv' ) );
     37                        /* translators: %s: Year. */
     38                        printf( esc_html_x( 'Archive for %s', 'Yearly archive page', 'wptv' ), esc_html( $archive_date ) );
    3139
    3240                elseif ( is_author() ) :
    … …  
    3947
    4048                elseif ( is_search() ) :
    41                         printf( __( 'Search Results for &#8216;%s&#8217;', 'wptv' ), '<span>' . get_search_query() . '</span>' );
     49                        /* translators: %s: Search query. */
     50                        printf( esc_html__( 'Search Results for &#8216;%s&#8217;', 'wptv' ), '<span>' . get_search_query() . '</span>' );
    4251
    4352                else :
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/breadcrumbs.php

    r7676 r15179  
    99?>
    1010<div class="breadcrumb">
    11         <a href="<?php echo esc_url( home_url() ); ?>"><?php _e( 'Home', 'wptv' ); ?></a>
     11        <a href="<?php echo esc_url( home_url() ); ?>"><?php esc_html_e( 'Home', 'wptv' ); ?></a>
    1212        <?php
    1313                $wptv->the_category( '<span class="arrow">&raquo;</span>' );
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/comments.php

    r7675 r15179  
    2424                        if ( 1 == $comments_number ) {
    2525                                /* translators: %s: post title */
    26                                 printf( _x( 'One response on &ldquo;%s&rdquo;', 'comments title', 'wptv' ), '<span>' . get_the_title() . '</span>' );
     26                                printf( esc_html_x( 'One response on &ldquo;%s&rdquo;', 'comments title', 'wptv' ), '<span>' . esc_html( get_the_title() ) . '</span>' );
    2727                        } else {
    2828                                printf(
    29                                         /* translators: 1: number of comments, 2: post title */
    30                                         _nx(
    31                                                 '%1$s response on &ldquo;%2$s&rdquo;',
    32                                                 '%1$s responses on &ldquo;%2$s&rdquo;',
    33                                                 $comments_number,
    34                                                 'comments title',
    35                                                 'wptv'
     29                                        esc_html(
     30                                                /* translators: 1: Number of comments, 2: Post title. */
     31                                                _nx(
     32                                                        '%1$s response on &ldquo;%2$s&rdquo;',
     33                                                        '%1$s responses on &ldquo;%2$s&rdquo;',
     34                                                        $comments_number,
     35                                                        'comments title',
     36                                                        'wptv'
     37                                                )
    3638                                        ),
    3739                                        number_format_i18n( $comments_number ),
    38                                         '<span>' . get_the_title() . '</span>'
     40                                        '<span>' . esc_html( get_the_title() ) . '</span>'
    3941                                );
    4042                        }
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/functions.php

    r15170 r15179  
    478478
    479479                                <small class="commentmetadata">
    480                                         <a href="#comment-<?php comment_ID() ?>" title=""><?php printf( __( '%1$s at %2$s', 'wptv' ), get_comment_date(), get_comment_time() ); ?></a>
     480                                        <?php /* translators: 1: Comment date, 2: Comment time. */ ?>
     481                                        <a href="#comment-<?php comment_ID(); ?>" title=""><?php printf( esc_html__( '%1$s at %2$s', 'wptv' ), esc_html( get_comment_date() ), esc_html( get_comment_time() ) ); ?></a>
    481482                                        <?php
    482483                                                edit_comment_link( __( 'edit', 'wptv' ), '&nbsp;&nbsp;', '' );
    … …  
    493494                        <div class="commenttext">
    494495                                <?php if ( $comment->comment_approved == '0' ) : ?>
    495                                         <em><?php _e( 'Your comment is awaiting moderation.', 'wptv' ); ?></em>
     496                                        <em><?php esc_html_e( 'Your comment is awaiting moderation.', 'wptv' ); ?></em>
    496497                                <?php endif; // comment_approved == 0 ?>
    497498
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/index.php

    r15170 r15179  
    7575                                <p class="center"><?php esc_html_e( 'Try searching for what you were looking for.' ); ?></p>
    7676                                <p><?php echo get_search_form(); ?></p>
    77                                 <p><?php printf ( __( 'Or, <a href="%s">visit the homepage</a> to start a fresh journey.', 'wptv' ), '/' ); ?></p>
     77                                <?php /* translators: %s: Homepage URL. */ ?>
     78                                <p><?php printf( wp_kses_post( __( 'Or, <a href="%s">visit the homepage</a> to start a fresh journey.', 'wptv' ) ), '/' ); ?></p>
    7879                                <p>
    7980                                        <img src="<?php echo esc_url( get_theme_file_uri( 'i/michael-pick-stashes-a-guinness.gif' ) ); ?>" alt="" /><br />
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/upload-subtitles-template.php

    r15170 r15179  
    167167        <div class="container">
    168168                <div class="video-upload">
    169                         <p><?php printf( __( 'Hey there! If you&#8217;re interested in subtitling or captioning videos for WordPress.tv, please fill out the <a href="%s">contact form</a>, and we&#8217;ll be in touch.', 'wptv' ), 'https://wordpress.tv/contact/' ); ?></p>
     169                        <?php /* translators: %s: Contact form URL. */ ?>
     170                        <p><?php printf( wp_kses_post( __( 'Hey there! If you&#8217;re interested in subtitling or captioning videos for WordPress.tv, please fill out the <a href="%s">contact form</a>, and we&#8217;ll be in touch.', 'wptv' ) ), 'https://wordpress.tv/contact/' ); ?></p>
    170171                        <div class="pass-form">
    171172                                <?php echo get_the_password_form(); ?>
    … …  
    255256                        <table>
    256257                                <tr>
    257                                         <th><label for="wptv_wporg_username"><?php _e( 'WordPress.org Username' ); ?><span class="required"> * </span></label></th>
     258                                        <th><label for="wptv_wporg_username"><?php esc_html_e( 'WordPress.org Username' ); ?><span class="required"> * </span></label></th>
    258259                                        <td>
    259260                                                <input type="text" id="wptv_wporg_username" name="wptv_wporg_username" /><br />
    … …  
    272273
    273274                                <tr>
    274                                         <th><label for="wptv_language"><?php _e( 'Language' ); ?><span class="required"> * </span></label></th>
     275                                        <th><label for="wptv_language"><?php esc_html_e( 'Language' ); ?><span class="required"> * </span></label></th>
    275276                                        <td>
    276277                                                <select name="wptv_language">
    … …  
    284285
    285286                                <tr>
    286                                         <th><label for="wptv_subtitles_file"><?php _e( 'Subtitles File' ); ?><span class="required"> * </span></label></th>
     287                                        <th><label for="wptv_subtitles_file"><?php esc_html_e( 'Subtitles File' ); ?><span class="required"> * </span></label></th>
    287288                                        <td><input type="file" name="wptv_subtitles_file" id="wptv_subtitles_file" /></td>
    288289                                </tr>
  • sites/trunk/wp15.wordpress.net/public_html/content/mu-plugins/locales.php

    r7080 r15179  
    242242                        </p>
    243243                        <button type="button" class="wp15-locale-notice-dismiss">
    244                                 <span class="screen-reader-text"><?php _e( 'Dismiss this notice.' ); ?></span>
     244                                <span class="screen-reader-text"><?php esc_html_e( 'Dismiss this notice.' ); ?></span>
    245245                        </button>
    246246                </div>
Note: See TracChangeset for help on using the changeset viewer.