Changeset 6277
- Timestamp:
- 12/15/2017 12:13:33 AM (7 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub
- Files:
-
- 33 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/Gruntfile.js
r5878 r6277 1 /** 2 * Gruntfile.js 3 * 4 * @package WordPressdotorg\MainTheme 5 */ 6 1 7 /* global module:false, require:function, process:object */ 2 8 … … 23 29 cascade: false 24 30 } ), 25 require( 'pixrem' ) 31 require( 'pixrem' ), 26 32 ] 27 33 }, … … 31 37 }, 32 38 jshint: { 33 files: [ 34 'Gruntfile.js', 35 'js/**/*.js' 36 ], 39 files: [ 'Gruntfile.js', 'js/**/*.js' ], 37 40 options: grunt.file.readJSON( '.jshintrc' ) 38 41 }, … … 56 59 57 60 ['settings', 'tools', 'generic', 'base', 'objects', 'components', 'trumps'].forEach( function( component ) { 58 var paths = [ 59 '../wporg/css/' + component + '/**/*.scss', 60 '!../wporg/css/' + component + '/_' + component + '.scss' 61 ]; 61 var paths = ['../wporg/css/' + component + '/**/*.scss', '!../wporg/css/' + component + '/_' + component + '.scss']; 62 62 63 63 if ( isChild ) { … … 76 76 rtlcss: { 77 77 options: { 78 // rtlcss options 78 // rtlcss options. 79 79 opts: { 80 80 clean: false, … … 91 91 ignoreCase: false 92 92 } 93 } 93 } // phpcs:ignore Generic.WhiteSpace.ScopeIndent.IncorrectExact 94 94 ] 95 95 }, … … 107 107 expr: /content/im, 108 108 action: function( prop, value ) { 109 if ( value === '"\\f141"' ) { // dashicons-arrow-left 109 if ( value === '"\\f141"' ) { // dashicons-arrow-left. 110 110 value = '"\\f139"'; 111 } else if ( value === '"\\f340"' ) { // dashicons-arrow-left-alt 111 } else if ( value === '"\\f340"' ) { // dashicons-arrow-left-alt. 112 112 value = '"\\f344"'; 113 } else if ( value === '"\\f341"' ) { // dashicons-arrow-left-alt2 113 } else if ( value === '"\\f341"' ) { // dashicons-arrow-left-alt2. 114 114 value = '"\\f345"'; 115 } else if ( value === '"\\f139"' ) { // dashicons-arrow-right 115 } else if ( value === '"\\f139"' ) { // dashicons-arrow-right. 116 116 value = '"\\f141"'; 117 } else if ( value === '"\\f344"' ) { // dashicons-arrow-right-alt 117 } else if ( value === '"\\f344"' ) { // dashicons-arrow-right-alt. 118 118 value = '"\\f340"'; 119 } else if ( value === '"\\f345"' ) { // dashicons-arrow-right-alt2 119 } else if ( value === '"\\f345"' ) { // dashicons-arrow-right-alt2. 120 120 value = '"\\f341"'; 121 121 } 122 122 return { prop: prop, value: value }; 123 123 } 124 } 124 } // phpcs:ignore Generic.WhiteSpace.ScopeIndent.IncorrectExact 125 125 ] 126 } 126 } // phpcs:ignore Generic.WhiteSpace.ScopeIndent.IncorrectExact 127 127 ] 128 128 }, … … 151 151 } 152 152 153 grunt.loadNpmTasks( 'grunt-sass');154 grunt.loadNpmTasks( 'grunt-rtlcss');155 grunt.loadNpmTasks( 'grunt-postcss');156 grunt.loadNpmTasks( 'grunt-sass-globbing');157 grunt.loadNpmTasks( 'grunt-contrib-watch');158 grunt.loadNpmTasks( 'grunt-contrib-jshint');153 grunt.loadNpmTasks( 'grunt-sass' ); 154 grunt.loadNpmTasks( 'grunt-rtlcss' ); 155 grunt.loadNpmTasks( 'grunt-postcss' ); 156 grunt.loadNpmTasks( 'grunt-sass-globbing' ); 157 grunt.loadNpmTasks( 'grunt-contrib-watch' ); 158 grunt.loadNpmTasks( 'grunt-contrib-jshint' ); 159 159 160 grunt.registerTask( 'css', ['sass_globbing', 'sass', 'postcss', 'rtlcss:dynamic']);161 grunt.registerTask( 'default', ['jshint', 'css']);162 grunt.registerTask( 'build', ['css']);160 grunt.registerTask( 'css', ['sass_globbing', 'sass', 'postcss', 'rtlcss:dynamic'] ); 161 grunt.registerTask( 'default', ['jshint', 'css'] ); 162 grunt.registerTask( 'build', ['css'] ); 163 163 }; -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/front-page.php
r6246 r6277 13 13 */ 14 14 15 // phpcs:disable WordPress.XSS.EscapeOutput.UnsafePrintingFunction, WordPress.XSS.EscapeOutput.OutputNotEscaped 16 15 17 namespace WordPressdotorg\MainTheme; 16 18 … … 45 47 <section class="showcase"> 46 48 <h2><?php _e( 'Trusted by the Best', 'wporg' ); ?></h2> 47 <p class="subheading"><?php printf( __( '%s of the web uses WordPress, from hobby blogs to the biggest news sites online.', 'wporg' ), WP_MARKET_SHARE . '%' ); ?></p> 49 <p class="subheading"> 50 <?php 51 printf( 52 /* translators: WordPress market share: 29%; */ 53 __( '%s of the web uses WordPress, from hobby blogs to the biggest news sites online.', 'wporg' ), 54 WP_MARKET_SHARE . '%' 55 ); 56 ?> 57 </p> 48 58 <div class="collage"> 49 59 … … 89 99 </li> 90 100 </ul> 91 <p><?php 101 <p> 102 <?php 92 103 /* translators: %s: Link to Plugin Directory. */ 93 printf( __( 'Extend WordPress with over 45,000 plugins to help your website meet your needs. Add an online store, galleries, mailing lists, forums, analytics, and <a href="%s">much more</a>.', 'wporg' ), esc_url( home_url( '/plugins/' ) ) ); ?></p> 104 printf( __( 'Extend WordPress with over 45,000 plugins to help your website meet your needs. Add an online store, galleries, mailing lists, forums, analytics, and <a href="%s">much more</a>.', 'wporg' ), esc_url( home_url( '/plugins/' ) ) ); 105 ?> 106 </p> 94 107 </section> 95 108 … … 123 136 'no_found_rows' => true, 124 137 ] ); 138 125 139 while ( $featured->have_posts() ) : 126 140 $featured->the_post(); 141 127 142 the_title( sprintf( '<h5><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h5>' ); 128 143 echo '<div class="entry-summary">' . apply_filters( 'the_excerpt', get_the_excerpt() ) . '</div>'; … … 136 151 137 152 <ol class="steps"> 138 <li class="one"><span></span><?php printf( __( '<a href="%s">Find a Web Host</a> and get great hosting while supporting WordPress at the same time.', 'wporg' ), esc_url( 'https://wordpress.org/hosting/' ) ); ?></li> 139 <li class="two"><span></span><?php printf( __( '<a href="%s">Download & Install WordPress</a> with our famous 5-minute installation. Feel like a rock star.', 'wporg' ), esc_url( get_downloads_url() ) ); ?></li> 140 <li class="three"><span></span><?php printf( __( '<a href="%s">Read the Documentation</a> and become a WordPress expert yourself, impress your friends.', 'wporg' ), esc_url( 'https://developer.wordpress.org' ) ); ?></li> 153 <li class="one"> 154 <span></span> 155 <?php 156 printf( 157 /* translators: URL to Hosting page. */ 158 __( '<a href="%s">Find a Web Host</a> and get great hosting while supporting WordPress at the same time.', 'wporg' ), 159 esc_url( 'https://wordpress.org/hosting/' ) 160 ); 161 ?> 162 </li> 163 <li class="two"> 164 <span></span> 165 <?php 166 printf( 167 /* translators: URL to Downloads page. */ 168 __( '<a href="%s">Download & Install WordPress</a> with our famous 5-minute installation. Feel like a rock star.', 'wporg' ), 169 esc_url( get_downloads_url() ) 170 ); 171 ?> 172 </li> 173 <li class="three"> 174 <span></span> 175 <?php 176 printf( 177 /* translators: URL to Developer Hub. */ 178 __( '<a href="%s">Read the Documentation</a> and become a WordPress expert yourself, impress your friends.', 'wporg' ), 179 esc_url( 'https://developer.wordpress.org' ) 180 ); 181 ?> 182 </li> 141 183 </ol> 142 184 </div> … … 204 246 </main><!-- #main --> 205 247 206 248 <?php 207 249 get_footer(); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/functions.php
r6173 r6277 35 35 36 36 add_filter( 'widget_links_args', function( $args ) { 37 $args['categorize'] = 0; 38 $args['category_before'] = ''; 39 $args['category_after'] = ''; 40 $args['title_li'] = __( 'Resources', 'wporg' ); 37 $args['categorize'] = 0; 38 $args['title_li'] = __( 'Resources', 'wporg' ); 41 39 42 40 return $args; -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/inc/template-tags.php
r6142 r6277 6 6 */ 7 7 8 // phpcs:disable WordPress.VIP.RestrictedFunctions.get_page_by_path_get_page_by_path 9 8 10 namespace WordPressdotorg\MainTheme; 9 11 … … 11 13 * Displays a table row with release information. 12 14 * 13 * @param array $release 15 * @param array $release Release to be processed. 14 16 */ 15 17 function release_row( $release ) { … … 29 31 30 32 /** 31 * Re rieve the localised downloads link.33 * Retrieve the localised downloads link. 32 34 * 33 35 * Uses the 'txt-download' page if exists, falling back to the 'releases' page for older sites, and finally, the english downloads page. -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-releases.php
r6135 r6277 7 7 8 8 namespace WordPressdotorg\MainTheme; 9 9 10 $releases = $GLOBALS['rosetta']->rosetta->get_releases_breakdown(); 10 11 11 12 the_post(); 12 get_header( 'page' ); ?> 13 get_header(); 14 ?> 13 15 14 16 <article id="post-<?php the_ID(); ?>" <?php post_class( 'col-12' ); ?> role="main"> … … 22 24 if ( isset( $releases['latest'] ) ) : 23 25 ?> 24 <h3 id="latest"><?php _e( 'Latest release', 'wporg' ); ?></h3>26 <h3 id="latest"><?php esc_html_e( 'Latest release', 'wporg' ); ?></h3> 25 27 <table class="releases latest"> 26 28 <?php release_row( $releases['latest'] ); ?> … … 32 34 echo '<a name="older" id="older"></a>'; 33 35 34 foreach ( $releases['branches'] as $branch => $branch_release ) :36 foreach ( $releases['branches'] as $branch => $branch_release ) : 35 37 ?> 36 <h3><?php printf( __( '%s Branch', 'wporg' ), $branch );?></h3> 38 <h3> 39 <?php 40 printf( 41 /* translators: Version number. */ 42 esc_html__( '%s Branch', 'wporg' ), 43 esc_html( $branch ) 44 ); 45 ?> 46 </h3> 37 47 <table class="releases"> 38 48 <?php … … 44 54 <?php 45 55 endforeach; 46 endif; // any branches56 endif; // Any branches. 47 57 48 58 if ( ! empty( $releases['betas'] ) ) : 49 59 ?> 50 <h3 id="betas"><?php _e( 'Beta & RC releases', 'wporg' ); ?></h3>60 <h3 id="betas"><?php esc_html_e( 'Beta & RC releases', 'wporg' ); ?></h3> 51 61 <table id="beta" class="releases"> 52 62 <?php 53 foreach ( $releases['betas'] as $release ) :63 foreach ( $releases['betas'] as $release ) : 54 64 release_row( $release ); 55 65 endforeach; … … 58 68 59 69 <?php 60 endif; // any betas61 else : // no releases62 echo '<p>' . __( 'There are no releases, yet.', 'wporg' ) . '</p>';63 endif; // if releases 70 endif; // Any betas. 71 else : // No releases. 72 echo '<p>' . esc_html__( 'There are no releases, yet.', 'wporg' ) . '</p>'; 73 endif; // if releases. 64 74 ?> 65 75 </div><!-- .entry-content --> … … 77 87 ?> 78 88 </article><!-- #post-## --> 89 79 90 <?php 80 91 get_footer(); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-templates/download.php
r6145 r6277 1 <?php 1 <?php // phpcs:ignore Squiz.Commenting.FileComment.Missing -- See https://github.com/squizlabs/PHP_CodeSniffer/commit/ee0f50bf8f9f6d2ea1fa290c91cdadffd4b8d5d1 2 2 /** 3 3 * Template Name: Downloads -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-txt-download.php
r6093 r6277 9 9 10 10 the_post(); 11 get_header( 'page' ); ?> 11 get_header(); 12 ?> 12 13 13 14 <main id="main" class="site-main col-12" role="main"> … … 22 23 the_widget( __NAMESPACE__ . '\WPORG_Widget_Download' ); 23 24 24 printf( '<div class="widget %s">', 'widget_links' );25 25 the_widget( 'WP_Widget_Links', array(), array( 26 26 'before_title' => '<h4>', 27 'after_title' => '</h4> ' . '<p>' . __( 'For help with installing or using WordPress, consult our documentation in your language.', 'wporg' ) . '</p>',27 'after_title' => '</h4><p>' . __( 'For help with installing or using WordPress, consult our documentation in your language.', 'wporg' ) . '</p>', 28 28 ) ); 29 echo '</div>';30 29 ?> 31 30 </aside> … … 57 56 </main><!-- #main --> 58 57 59 58 <?php 60 59 get_footer(); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/style.css
r6057 r6277 1 /* phpcs:ignore */ 1 2 /*! 2 3 Theme Name: WordPress.org Main -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/widgets/class-wporg-widget-download.php
r6063 r6277 24 24 public function __construct() { 25 25 parent::__construct( 'wporg_download', __( 'Download', 'wporg' ), array( 26 'classname' => 'widget_download',27 'description' => __( 'WordPress download button.', 'wporg' ),26 'classname' => 'widget_download', 27 'description' => __( 'WordPress download button.', 'wporg' ), 28 28 'customize_selective_refresh' => true, 29 29 ) ); … … 51 51 } 52 52 53 // phpcs:disable WordPress.XSS.EscapeOutput.OutputNotEscaped 54 53 55 echo $args['before_widget']; 54 56 ?> 55 57 <div> 56 58 <a class="button button-primary button-large" href="<?php echo esc_url( $latest_release['zip_url'] ); ?>" role="button"> 57 <?php echo apply_filters( 'no_orphans', sprintf( __( 'Download WordPress %s', 'wporg' ), $latest_release['version'] ) ); ?> 59 <?php 60 echo apply_filters( 'no_orphans', sprintf( 61 /* translators: WordPress version. */ 62 __( 'Download WordPress %s', 'wporg' ), 63 $latest_release['version'] 64 ) ); 65 ?> 58 66 </a> 59 <div><?php printf( __( '.zip — %s MB', 'wporg' ), esc_html( $latest_release['zip_size_mb'] ) ); ?></div> 67 <div> 68 <?php 69 printf( 70 /* translators: Size of .zip file. */ 71 __( '.zip — %s MB', 'wporg' ), 72 esc_html( $latest_release['zip_size_mb'] ) 73 ); 74 ?> 75 </div> 60 76 </div> 61 77 62 78 <div> 63 79 <a href="<?php echo esc_url( $latest_release['targz_url'] ); ?>"> 64 <?php printf( __( 'Download .tar.gz — %s MB', 'wporg' ), esc_html( $latest_release['tar_size_mb'] ) ); ?> 80 <?php 81 printf( 82 /* translators: Size of .tar.gz file. */ 83 __( 'Download .tar.gz — %s MB', 'wporg' ), 84 esc_html( $latest_release['tar_size_mb'] ) 85 ); 86 ?> 65 87 </a> 66 88 </div> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/404.php
r6154 r6277 20 20 21 21 <div class="page-content"> 22 <p><?php printf( __( 'Try searching from the field above, or go to the <a href="%s">home page</a>.', 'wporg' ), get_home_url() ); ?></p> 22 <p> 23 <?php 24 printf( 25 /* 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 27 esc_url( get_home_url() ) 28 ); 29 ?> 30 </p> 23 31 24 32 <div class="logo-swing"> 25 <img src="<?php echo get_theme_file_uri( '/images/wp-logo-blue-trans-blur.png'); ?>" class="wp-logo" />26 <img id="hinge" src="<?php echo get_theme_file_uri( '/images/wp-logo-blue.png'); ?>" class="wp-logo hinge" />33 <img src="<?php echo esc_url( get_theme_file_uri( '/images/wp-logo-blue-trans-blur.png' ) ); ?>" class="wp-logo" /> 34 <img id="hinge" src="<?php echo esc_url( get_theme_file_uri( '/images/wp-logo-blue.png' ) ); ?>" class="wp-logo hinge" /> 27 35 </div> 28 36 </div><!-- .page-content --> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/Gruntfile.js
r4879 r6277 1 /** 2 * Gruntfile.js 3 * 4 * @package WordPressdotorg\Theme 5 */ 6 1 7 /* global module:false, require:function, process:object */ 2 8 … … 23 29 cascade: false 24 30 } ), 25 require( 'pixrem' ) 31 require( 'pixrem' ), 26 32 ] 27 33 }, … … 31 37 }, 32 38 jshint: { 33 files: [ 34 'Gruntfile.js', 35 'js/**/*.js' 36 ], 39 files: [ 'Gruntfile.js', 'js/**/*.js' ], 37 40 options: grunt.file.readJSON( '.jshintrc' ) 38 41 }, … … 56 59 57 60 ['settings', 'tools', 'generic', 'base', 'objects', 'components', 'trumps'].forEach( function( component ) { 58 var paths = [ 59 '../wporg/css/' + component + '/**/*.scss', 60 '!../wporg/css/' + component + '/_' + component + '.scss' 61 ]; 61 var paths = [ '../wporg/css/' + component + '/**/*.scss', '!../wporg/css/' + component + '/_' + component + '.scss' ]; 62 62 63 63 if ( isChild ) { … … 76 76 rtlcss: { 77 77 options: { 78 // rtlcss options 78 // rtlcss options. 79 79 opts: { 80 80 clean: false, … … 91 91 ignoreCase: false 92 92 } 93 } 93 } // phpcs:ignore Generic.WhiteSpace.ScopeIndent.IncorrectExact 94 94 ] 95 95 }, … … 107 107 expr: /content/im, 108 108 action: function( prop, value ) { 109 if ( value === '"\\f141"' ) { // dashicons-arrow-left 109 if ( value === '"\\f141"' ) { // dashicons-arrow-left. 110 110 value = '"\\f139"'; 111 } else if ( value === '"\\f340"' ) { // dashicons-arrow-left-alt 111 } else if ( value === '"\\f340"' ) { // dashicons-arrow-left-alt. 112 112 value = '"\\f344"'; 113 } else if ( value === '"\\f341"' ) { // dashicons-arrow-left-alt2 113 } else if ( value === '"\\f341"' ) { // dashicons-arrow-left-alt2. 114 114 value = '"\\f345"'; 115 } else if ( value === '"\\f139"' ) { // dashicons-arrow-right 115 } else if ( value === '"\\f139"' ) { // dashicons-arrow-right. 116 116 value = '"\\f141"'; 117 } else if ( value === '"\\f344"' ) { // dashicons-arrow-right-alt 117 } else if ( value === '"\\f344"' ) { // dashicons-arrow-right-alt. 118 118 value = '"\\f340"'; 119 } else if ( value === '"\\f345"' ) { // dashicons-arrow-right-alt2 119 } else if ( value === '"\\f345"' ) { // dashicons-arrow-right-alt2. 120 120 value = '"\\f341"'; 121 121 } 122 122 return { prop: prop, value: value }; 123 123 } 124 } 124 } // phpcs:ignore Generic.WhiteSpace.ScopeIndent.IncorrectExact 125 125 ] 126 } 126 } // phpcs:ignore Generic.WhiteSpace.ScopeIndent.IncorrectExact 127 127 ] 128 128 }, … … 151 151 } 152 152 153 grunt.loadNpmTasks( 'grunt-sass');154 grunt.loadNpmTasks( 'grunt-rtlcss');155 grunt.loadNpmTasks( 'grunt-postcss');156 grunt.loadNpmTasks( 'grunt-sass-globbing');157 grunt.loadNpmTasks( 'grunt-contrib-watch');158 grunt.loadNpmTasks( 'grunt-contrib-jshint');153 grunt.loadNpmTasks( 'grunt-sass' ); 154 grunt.loadNpmTasks( 'grunt-rtlcss' ); 155 grunt.loadNpmTasks( 'grunt-postcss' ); 156 grunt.loadNpmTasks( 'grunt-sass-globbing' ); 157 grunt.loadNpmTasks( 'grunt-contrib-watch' ); 158 grunt.loadNpmTasks( 'grunt-contrib-jshint' ); 159 159 160 grunt.registerTask( 'css', ['sass_globbing', 'sass', 'postcss', 'rtlcss:dynamic']);161 grunt.registerTask( 'default', ['jshint', 'css']);162 grunt.registerTask( 'build', ['css']);160 grunt.registerTask( 'css', ['sass_globbing', 'sass', 'postcss', 'rtlcss:dynamic'] ); 161 grunt.registerTask( 'default', ['jshint', 'css'] ); 162 grunt.registerTask( 'build', ['css'] ); 163 163 }; -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/archive.php
r5945 r6277 10 10 namespace WordPressdotorg\Theme; 11 11 12 get_header( 'page' ); ?> 12 get_header(); 13 ?> 13 14 14 15 <main id="main" class="site-main col-8" role="main"> 15 16 16 <?php 17 if ( have_posts() ) : ?> 17 <?php if ( have_posts() ) : ?> 18 18 19 19 <header class="page-header"> … … 37 37 get_template_part( 'template-parts/content', 'none' ); 38 38 39 endif; ?> 39 endif; 40 ?> 40 41 41 42 </main><!-- #main --> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/comments.php
r5892 r6277 27 27 <?php 28 28 // You can start editing here -- including this comment! 29 if ( have_comments() ) : ?> 29 if ( have_comments() ) : 30 ?> 30 31 <h2 class="comments-title"> 31 32 <?php … … 33 34 if ( 1 === $comment_count ) { 34 35 printf( 35 /* translators: 1: title. */36 /* translators: 1: title. */ 36 37 esc_html_e( 'One thought on “%1$s”', 'wporg' ), 37 38 '<span>' . get_the_title() . '</span>' … … 39 40 } else { 40 41 printf( // WPCS: XSS OK. 41 /* translators: 1: comment count number, 2: title. */42 /* translators: 1: comment count number, 2: title. */ 42 43 esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $comment_count, 'comments title', 'wporg' ) ), 43 44 number_format_i18n( $comment_count ), … … 59 60 </ol><!-- .comment-list --> 60 61 61 <?php the_comments_navigation(); 62 <?php 63 the_comments_navigation(); 62 64 63 65 // If comments are closed and there are comments, let's leave a little note, shall we? 64 if ( ! comments_open() ) : ?> 66 if ( ! comments_open() ) : 67 ?> 65 68 <p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'wporg' ); ?></p> 66 69 <?php 67 70 endif; 68 71 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/footer.php
r3879 r6277 11 11 12 12 namespace WordPressdotorg\Theme; 13 13 14 ?> 14 15 15 16 </div><!-- #content --> 16 17 17 <?php 18 18 <?php 19 19 require WPORGPATH . 'footer.php'; -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/functions.php
r6248 r6277 32 32 add_theme_support( 'automatic-feed-links' ); 33 33 34 // Don't include Adjacent Posts functionality 34 // Don't include Adjacent Posts functionality. 35 35 remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' ); 36 36 … … 81 81 function scripts() { 82 82 $suffix = is_rtl() ? '-rtl' : ''; 83 wp_enqueue_style( 'wporg-style', get_stylesheet_directory_uri() . "/css/style{$suffix}.css", ['dashicons', 'open-sans'], '20171207' ); 84 85 //wp_enqueue_script( 'wporg-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20151215', true ); 83 wp_enqueue_style( 'wporg-style', get_stylesheet_directory_uri() . "/css/style{$suffix}.css", [ 'dashicons', 'open-sans' ], '20171207' ); 84 85 // phpcs:ignore Squiz.PHP.CommentedOutCode.Found, Squiz.Commenting.InlineComment.InvalidEndChar 86 // wp_enqueue_script( 'wporg-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20151215', true ); 86 87 wp_enqueue_script( 'wporg-plugins-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151215', true ); 87 88 … … 123 124 124 125 // Remove version argument. 125 if ( in_array( $handle, [ 'open-sans'], true ) ) {126 if ( in_array( $handle, [ 'open-sans' ], true ) ) { 126 127 $src = remove_query_arg( 'ver', $src ); 127 128 } … … 137 138 */ 138 139 function customize_register( $wp_customize ) { 139 $wp_customize->get_setting( 'blogname' )->transport 140 $wp_customize->get_setting( 'blogdescription' )->transport 140 $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; 141 $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; 141 142 } 142 143 add_action( 'customize_register', __NAMESPACE__ . '\customize_register' ); … … 148 149 wp_enqueue_script( 'wporg_plugins_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20151215', true ); 149 150 } 150 add_action( 'customize_preview_init', 151 add_action( 'customize_preview_init', __NAMESPACE__ . '\customize_preview_js' ); 151 152 152 153 … … 160 161 wp_cache_add_global_groups( array( 'locale-associations' ) ); 161 162 162 if ( false === ( $sites = wp_cache_get( 'local-sites', 'locale-associations' ) ) ) { 163 $sites = wp_cache_get( 'local-sites', 'locale-associations' ); 164 165 if ( false === $sites ) { 163 166 global $wpdb; 164 167 168 // phpcs:ignore WordPress.VIP.DirectDatabaseQuery.DirectQuery 165 169 $sites = $wpdb->get_results( 'SELECT locale, subdomain FROM locales', OBJECT_K ); 166 170 if ( ! $sites ) { … … 188 192 'locale' => 'en_US', 189 193 'hreflang' => 'en', 190 'subdomain' => '' 194 'subdomain' => '', 191 195 ); 192 196 … … 202 206 'https://%swordpress.org%s', 203 207 $site->subdomain ? "{$site->subdomain}." : '', 204 $_SERVER[ 'REQUEST_URI' ]208 $_SERVER['REQUEST_URI'] // phpcs:ignore 205 209 ); 206 210 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/header-page.php
r6060 r6277 1 1 <?php 2 2 /** 3 * The template for displaying all pages.3 * The Header template for pages in our theme. 4 4 * 5 * This is the template that displays all pages by default. 6 * Please note that this is the WordPress construct of pages 7 * and that other 'pages' on your WordPress site may use a 8 * different template. 5 * Displays all of the <head> section and everything up till <div id="content"> 9 6 * 10 7 * @link https://codex.wordpress.org/Template_Hierarchy 11 8 * 12 * @package WordPressdotorg\ Plugin_Directory\Theme9 * @package WordPressdotorg\Theme 13 10 */ 14 11 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/header-wporg.php
r6060 r6277 1 1 <?php 2 /** 3 * The Header template for pages in our theme. 4 * 5 * Displays all of the <head> section and the wp.org header. 6 * 7 * @link https://codex.wordpress.org/Template_Hierarchy 8 * 9 * @package WordPressdotorg\Theme 10 */ 11 2 12 namespace WordPressdotorg\Theme; 3 13 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/header.php
r6060 r6277 1 1 <?php 2 2 /** 3 * The template for displaying all pages.3 * The Header template for our theme. 4 4 * 5 * This is the template that displays all pages by default. 6 * Please note that this is the WordPress construct of pages 7 * and that other 'pages' on your WordPress site may use a 8 * different template. 5 * Displays all of the <head> section and everything up till <div id="content"> 9 6 * 10 7 * @link https://codex.wordpress.org/Template_Hierarchy 11 8 * 12 * @package WordPressdotorg\ Plugin_Directory\Theme9 * @package WordPressdotorg\Theme 13 10 */ 14 11 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/inc/footer.php
r6144 r6277 9 9 * @package WordPressdotorg\Theme 10 10 */ 11 11 12 ?> 12 13 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/inc/header.php
r6144 r6277 11 11 12 12 namespace WordPressdotorg\Theme; 13 13 14 ?> 14 15 <!doctype html> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/inc/template-tags.php
r6149 r6277 9 9 10 10 if ( ! function_exists( __NAMESPACE__ . '\entry_meta' ) ) : 11 /** 12 * Prints HTML with meta information for the categories, tags. 13 * 14 * Create your own WordPressdotorg\Theme\entry_meta() function to override in a child theme. 15 */ 16 function entry_meta() { 17 if ( in_array( get_post_type(), array( 'post', 'attachment' ) ) ) { 18 $time_string = sprintf( '<a href="%1$s" rel="bookmark">%2$s</a>', 19 esc_url( get_permalink() ), 20 get_entry_date() 21 ); 11 /** 12 * Prints HTML with meta information for the categories, tags. 13 * 14 * Create your own WordPressdotorg\Theme\entry_meta() function to override in a child theme. 15 */ 16 function entry_meta() { 17 if ( in_array( get_post_type(), array( 'post', 'attachment' ), true ) ) { 18 $time_string = sprintf( 19 '<a href="%1$s" rel="bookmark">%2$s</a>', 20 esc_url( get_permalink() ), 21 get_entry_date() 22 ); 22 23 23 $author_string = sprintf(24 '<span class="entry-author vcard"><a class="url fn n" href="%1$s">%2$s</a></span>',25 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),26 get_the_author()27 );24 $author_string = sprintf( 25 '<span class="entry-author vcard"><a class="url fn n" href="%1$s">%2$s</a></span>', 26 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), 27 get_the_author() 28 ); 28 29 29 printf( 30 /* translators: 1: post date 2: post author */ 31 '<span class="posted-on">' . __( 'Posted on %1$s by %2$s.', 'wporg' ) . '</span>', 32 $time_string, 33 $author_string 34 ); 30 // phpcs:disable WordPress.XSS.EscapeOutput.OutputNotEscaped 31 printf( 32 /* translators: 1: post date 2: post author */ 33 '<span class="posted-on">' . __( 'Posted on %1$s by %2$s.', 'wporg' ) . '</span>', 34 $time_string, 35 $author_string 36 ); 37 // phpcs:enable WordPress.XSS.EscapeOutput.OutputNotEscaped 38 } 39 40 $format = get_post_format(); 41 if ( current_theme_supports( 'post-formats', $format ) ) { 42 printf( 43 '<span class="entry-format">%1$s<a href="%2$s">%3$s</a></span>', 44 sprintf( '<span class="screen-reader-text">%s </span>', esc_html_x( 'Format', 'Used before post format.', 'wporg' ) ), 45 esc_url( get_post_format_link( $format ) ), 46 esc_html( get_post_format_string( $format ) ) 47 ); 48 } 49 50 if ( 'post' === get_post_type() ) { 51 entry_taxonomies(); 52 } 53 54 if ( ! is_singular() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { 55 echo '<span class="comments-link">'; 56 comments_popup_link( sprintf( 57 /* translators: Post title. */ 58 __( 'Leave a comment<span class="screen-reader-text"> on %s</span>', 'wporg' ), 59 get_the_title() 60 ) ); 61 echo '</span>'; 62 } 35 63 } 36 37 $format = get_post_format();38 if ( current_theme_supports( 'post-formats', $format ) ) {39 printf( '<span class="entry-format">%1$s<a href="%2$s">%3$s</a></span>',40 sprintf( '<span class="screen-reader-text">%s </span>', _x( 'Format', 'Used before post format.', 'wporg' ) ),41 esc_url( get_post_format_link( $format ) ),42 get_post_format_string( $format )43 );44 }45 46 if ( 'post' === get_post_type() ) {47 entry_taxonomies();48 }49 50 if ( ! is_singular() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {51 echo '<span class="comments-link">';52 comments_popup_link( sprintf( __( 'Leave a comment<span class="screen-reader-text"> on %s</span>', 'wporg' ), get_the_title() ) );53 echo '</span>';54 }55 }56 64 endif; 57 65 … … 69 77 } 70 78 71 return sprintf( $time_string, 79 return sprintf( 80 $time_string, 72 81 esc_attr( get_the_date( 'c' ) ), 73 82 get_the_date(), … … 85 94 */ 86 95 function entry_date() { 87 printf( '<span class="posted-on">%1$s <a href="%2$s" rel="bookmark">%3$s</a></span>', 88 _x( 'Posted on', 'Used before publish date.', 'wporg' ), 96 printf( 97 '<span class="posted-on">%1$s <a href="%2$s" rel="bookmark">%3$s</a></span>', 98 esc_html_x( 'Posted on', 'Used before publish date.', 'wporg' ), 89 99 esc_url( get_permalink() ), 90 get_entry_date() 100 get_entry_date() // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped 91 101 ); 92 102 } … … 94 104 95 105 if ( ! function_exists( __NAMESPACE__ . '\entry_taxonomies' ) ) : 96 /** 97 * Prints HTML with category and tags for current post. 98 * 99 * Create your own WordPressdotorg\Theme\entry_taxonomies() function to override in a child theme. 100 */ 101 function entry_taxonomies() { 102 $categories_list = get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'wporg' ) ); 103 if ( $categories_list && categorized_blog() ) { 104 printf( '<span class="cat-links"><span class="screen-reader-text">%1$s </span>%2$s</span>', 105 _x( 'Categories', 'Used before category names.', 'wporg' ), 106 $categories_list 107 ); 106 /** 107 * Prints HTML with category and tags for current post. 108 * 109 * Create your own WordPressdotorg\Theme\entry_taxonomies() function to override in a child theme. 110 */ 111 function entry_taxonomies() { 112 $categories_list = get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'wporg' ) ); 113 if ( $categories_list && categorized_blog() ) { 114 printf( 115 '<span class="cat-links"><span class="screen-reader-text">%1$s </span>%2$s</span>', 116 esc_html_x( 'Categories', 'Used before category names.', 'wporg' ), 117 $categories_list // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped 118 ); 119 } 120 121 $tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'wporg' ) ); 122 if ( $tags_list ) { 123 printf( 124 '<span class="tags-links"><span class="screen-reader-text">%1$s </span>%2$s</span>', 125 esc_html_x( 'Tags', 'Used before tag names.', 'wporg' ), 126 $tags_list // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped 127 ); 128 } 108 129 } 109 110 $tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'wporg' ) );111 if ( $tags_list ) {112 printf( '<span class="tags-links"><span class="screen-reader-text">%1$s </span>%2$s</span>',113 _x( 'Tags', 'Used before tag names.', 'wporg' ),114 $tags_list115 );116 }117 }118 130 endif; 119 131 120 132 if ( ! function_exists( __NAMESPACE__ . '\categorized_blog' ) ) : 121 /** 122 * Determines whether blog/site has more than one category. 123 * 124 * Create your own WordPressdotorg\Theme\categorized_blog() function to override in a child theme. 125 * 126 * @return bool True if there is more than one category, false otherwise. 127 */ 128 function categorized_blog() { 129 if ( false === ( $all_the_cool_cats = get_transient( 'wporg_categories' ) ) ) { 130 // Create an array of all the categories that are attached to posts. 131 $all_the_cool_cats = get_categories( array( 132 'fields' => 'ids', 133 // We only need to know if there is more than one category. 134 'number' => 2, 135 ) ); 133 /** 134 * Determines whether blog/site has more than one category. 135 * 136 * Create your own WordPressdotorg\Theme\categorized_blog() function to override in a child theme. 137 * 138 * @return bool True if there is more than one category, false otherwise. 139 */ 140 function categorized_blog() { 141 $all_the_cool_cats = get_transient( 'wporg_categories' ); 136 142 137 // Count the number of categories that are attached to the posts. 138 $all_the_cool_cats = count( $all_the_cool_cats ); 143 if ( false === $all_the_cool_cats ) { 144 // Create an array of all the categories that are attached to posts. 145 $all_the_cool_cats = get_categories( array( 146 'fields' => 'ids', 147 // We only need to know if there is more than one category. 148 'number' => 2, 149 ) ); 139 150 140 set_transient( 'wporg_categories', $all_the_cool_cats ); 151 // Count the number of categories that are attached to the posts. 152 $all_the_cool_cats = count( $all_the_cool_cats ); 153 154 set_transient( 'wporg_categories', $all_the_cool_cats ); 155 } 156 157 if ( $all_the_cool_cats > 1 ) { 158 // This blog has more than 1 category so wporg_categorized_blog should return true. 159 return true; 160 } else { 161 // This blog has only 1 category so wporg_categorized_blog should return false. 162 return false; 163 } 141 164 } 142 143 if ( $all_the_cool_cats > 1 ) {144 // This blog has more than 1 category so wporg_categorized_blog should return true.145 return true;146 } else {147 // This blog has only 1 category so wporg_categorized_blog should return false.148 return false;149 }150 }151 165 endif; 152 166 … … 163 177 } 164 178 add_action( 'edit_category', __NAMESPACE__ . '\category_transient_flusher' ); 165 add_action( 'save_post', 179 add_action( 'save_post', __NAMESPACE__ . '\category_transient_flusher' ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/index.php
r6201 r6277 15 15 namespace WordPressdotorg\Theme; 16 16 17 get_header(); ?> 17 get_header(); 18 ?> 18 19 19 20 <main id="main" class="site-main col-9" role="main"> … … 38 39 </main><!-- #main --> 39 40 40 41 <?php 41 42 get_sidebar(); 42 43 get_footer(); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/js/customizer.js
r3879 r6277 3 3 * 4 4 * Theme Customizer enhancements for a better user experience. 5 * Contains handlers to make Theme Customizer preview reload changes asynchronously. 5 6 * 6 * Contains handlers to make Theme Customizer preview reload changes asynchronously.7 * @package WordPressdotorg\Theme 7 8 */ 8 9 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/js/navigation.js
r3879 r6277 4 4 * Handles toggling the navigation menu for small screens and enables TAB key 5 5 * navigation support for dropdown menus. 6 * 7 * @package WordPressdotorg\Theme 6 8 */ 9 7 10 ( function() { 8 11 var container, button, menu, links, subMenus, i, len; -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/js/skip-link-focus-fix.js
r3879 r6277 3 3 * 4 4 * Helps with accessibility for keyboard only users. 5 * Learn more: https://git.io/vWdr2 5 6 * 6 * Learn more: https://git.io/vWdr27 * @package WordPressdotorg\Theme 7 8 */ 9 8 10 ( function() { 9 11 var isWebkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1, 10 isOpera = navigator.userAgent.toLowerCase().indexOf( 'opera' )> -1,11 isIe = navigator.userAgent.toLowerCase().indexOf( 'msie' )> -1;12 isOpera = navigator.userAgent.toLowerCase().indexOf( 'opera' ) > -1, 13 isIe = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1; 12 14 13 15 if ( ( isWebkit || isOpera || isIe ) && document.getElementById && window.addEventListener ) { -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/page.php
r6058 r6277 15 15 namespace WordPressdotorg\Theme; 16 16 17 get_header( 'page' ); ?> 17 get_header(); 18 ?> 18 19 19 20 <main id="main" class="site-main col-12" role="main"> 20 21 21 22 <?php 22 while ( have_posts() ) : the_post(); 23 while ( have_posts() ) : 24 the_post(); 23 25 24 26 get_template_part( 'template-parts/content', 'page' ); … … 28 30 </main><!-- #main --> 29 31 30 32 <?php 31 33 get_footer(); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/search.php
r6257 r6277 17 17 18 18 <header class="page-header"> 19 <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'wporg' ), get_search_query() ); ?></h1> 19 <h1 class="page-title"> 20 <?php 21 printf( 22 /* translators: Search query. */ 23 esc_html__( 'Search Results for: %s', 'wporg' ), 24 get_search_query() 25 ); 26 ?> 27 </h1> 20 28 </header><!-- .page-header --> 21 29 … … 31 39 </header><!-- .entry-header --> 32 40 33 <?php if ( 'post' == get_post_type() ) : ?>41 <?php if ( 'post' === get_post_type() ) : ?> 34 42 <div class="entry-meta"><?php entry_meta(); ?></div> 35 43 <?php endif; ?> … … 43 51 edit_post_link( 44 52 sprintf( 45 /* translators: %s: Name of current post */53 /* translators: %s: Name of current post */ 46 54 __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'wporg' ), 47 55 get_the_title() … … 60 68 the_posts_pagination(); 61 69 62 // If no content, include the "No posts found" template.70 // If no content, include the "No posts found" template. 63 71 else : 64 72 get_template_part( 'template-parts/content', 'none' ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/sidebar.php
r6200 r6277 14 14 <aside id="secondary" class="widget-area col-3"> 15 15 <div class="widget"> 16 <h4><?php _e( 'Categories', 'wporg' ); ?></h4>16 <h4><?php esc_html_e( 'Categories', 'wporg' ); ?></h4> 17 17 <ul> 18 18 <?php wp_list_categories( 'title_li=&show_count=1&orderby=count&order=DESC&number=10' ); ?> … … 21 21 22 22 <div class="widget"> 23 <h4><?php _e( 'Blog Archives', 'wporg' ); ?></h4>23 <h4><?php esc_html_e( 'Blog Archives', 'wporg' ); ?></h4> 24 24 <ul> 25 25 <?php wp_get_archives( 'type=monthly&limit=12' ); ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/single.php
r5942 r6277 10 10 namespace WordPressdotorg\Theme; 11 11 12 get_header( 'page' ); ?> 12 get_header(); 13 ?> 13 14 14 15 <main id="main" class="site-main col-8" role="main"> 15 16 16 17 <?php 17 18 18 while ( have_posts() ) : 19 the_post(); 19 20 20 21 get_template_part( 'template-parts/content', 'single' ); 21 22 22 23 24 25 23 // If comments are open or we have at least one comment, load up the comment template. 24 if ( comments_open() || get_comments_number() ) : 25 comments_template(); 26 endif; 26 27 27 // Previous/next post navigation. 28 the_post_navigation( array( 29 'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'wporg' ) . '</span> ' . 30 '<span class="screen-reader-text">' . __( 'Next post:', 'wporg' ) . '</span> ' . 31 '<span class="post-title">%title</span>', 32 'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'wporg' ) . '</span> ' . 33 '<span class="screen-reader-text">' . __( 'Previous post:', 'wporg' ) . '</span> ' . 34 '<span class="post-title">%title</span>', 35 ) ); 28 // Previous/next post navigation. 29 the_post_navigation( [ 30 // phpcs:disable WordPress.WhiteSpace.PrecisionAlignment.Found 31 'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'wporg' ) . '</span> ' . 32 '<span class="screen-reader-text">' . __( 'Next post:', 'wporg' ) . '</span> ' . 33 '<span class="post-title">%title</span>', 34 'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'wporg' ) . '</span> ' . 35 '<span class="screen-reader-text">' . __( 'Previous post:', 'wporg' ) . '</span> ' . 36 '<span class="post-title">%title</span>', 37 // phpcs:enable WordPress.WhiteSpace.PrecisionAlignment.Found 38 ] ); 36 39 endwhile; // End of the loop. 37 40 ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/style.css
r3879 r6277 1 /* phpcs:ignoreFile */ 1 2 /*! 2 3 Theme Name: WordPress.org -
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 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/template-parts/content-page.php
r5893 r6277 30 30 edit_post_link( 31 31 sprintf( 32 /* translators: %s: Name of current post */32 /* translators: %s: Name of current post */ 33 33 esc_html__( 'Edit %s', 'wporg' ), 34 34 the_title( '<span class="screen-reader-text">"', '"</span>', false ) -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/template-parts/content.php
r5942 r6277 7 7 8 8 namespace WordPressdotorg\Theme; 9 9 10 ?> 10 11 … … 12 13 <header class="entry-header"> 13 14 <?php if ( is_sticky() && is_home() && ! is_paged() ) : ?> 14 <span class="sticky-post"><?php _e( 'Featured', 'wporg' ); ?></span>15 <span class="sticky-post"><?php esc_html_e( 'Featured', 'wporg' ); ?></span> 15 16 <?php 16 17 endif; 17 18 18 if ( is_single() ) : 19 if ( is_single() ) : // phpcs:ignore Generic.WhiteSpace.ScopeIndent.IncorrectExact 19 20 the_title( '<h2 class="entry-title">', '</h2>' ); 20 21 else : … … 28 29 <div class="entry-content"> 29 30 <?php 30 /* translators: %s: Name of current post */31 31 the_content( sprintf( 32 /* translators: %s: Name of current post */ 32 33 __( 'Continue reading<span class="screen-reader-text"> "%s"</span> →', 'wporg' ), 33 34 get_the_title()
Note: See TracChangeset
for help on using the changeset viewer.