Changeset 6277 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/template-parts/content-none.php
- Timestamp:
- 12/15/2017 12:13:33 AM (7 years ago)
- 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 5 5 * @package WordPressdotorg\Theme 6 6 */ 7 7 8 ?> 8 9 9 10 <section class="no-results not-found"> 10 11 <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> 12 13 </header><!-- .page-header --> 13 14 … … 15 16 <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?> 16 17 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> 18 27 19 28 <?php elseif ( is_search() ) : ?> 20 29 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> 22 31 <?php get_search_form(); ?> 23 32 24 33 <?php else : ?> 25 34 26 <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'wporg' ); ?></p>35 <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'wporg' ); ?></p> 27 36 <?php get_search_form(); ?> 28 37
Note: See TracChangeset
for help on using the changeset viewer.