Making WordPress.org


Ignore:
Timestamp:
12/15/2017 12:13:33 AM (7 years ago)
Author:
obenland
Message:

Main: Conform to WPCS.

See #2861.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/template-parts/content-none.php

    r5892 r6277  
    55 * @package WordPressdotorg\Theme
    66 */
     7
    78?>
    89
    910<section class="no-results not-found">
    1011    <header class="page-header">
    11         <h1 class="page-title"><?php _e( 'Nothing Found', 'wporg' ); ?></h1>
     12        <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'wporg' ); ?></h1>
    1213    </header><!-- .page-header -->
    1314
     
    1516        <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
    1617
    17             <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'wporg' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
     18            <p>
     19                <?php
     20                printf(
     21                    /* 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
     23                    esc_url( admin_url( 'post-new.php' ) )
     24                );
     25                ?>
     26            </p>
    1827
    1928        <?php elseif ( is_search() ) : ?>
    2029
    21             <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'wporg' ); ?></p>
     30            <p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'wporg' ); ?></p>
    2231            <?php get_search_form(); ?>
    2332
    2433        <?php else : ?>
    2534
    26             <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'wporg' ); ?></p>
     35            <p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'wporg' ); ?></p>
    2736            <?php get_search_form(); ?>
    2837
Note: See TracChangeset for help on using the changeset viewer.