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-main/front-page.php

    r6246 r6277  
    1313 */
    1414
     15// phpcs:disable WordPress.XSS.EscapeOutput.UnsafePrintingFunction, WordPress.XSS.EscapeOutput.OutputNotEscaped
     16
    1517namespace WordPressdotorg\MainTheme;
    1618
     
    4547            <section class="showcase">
    4648                <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>
    4858                <div class="collage">
    4959
     
    8999                    </li>
    90100                </ul>
    91                 <p><?php
     101                <p>
     102                    <?php
    92103                    /* 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>
    94107            </section>
    95108
     
    123136                    'no_found_rows'       => true,
    124137                ] );
     138
    125139                while ( $featured->have_posts() ) :
    126140                    $featured->the_post();
     141
    127142                    the_title( sprintf( '<h5><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h5>' );
    128143                    echo '<div class="entry-summary">' . apply_filters( 'the_excerpt', get_the_excerpt() ) . '</div>';
     
    136151
    137152                <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&nbsp;time.', 'wporg' ), esc_url( 'https://wordpress.org/hosting/' ) ); ?></li>
    139                     <li class="two"><span></span><?php printf( __( '<a href="%s">Download &amp; Install WordPress</a> with our famous 5-minute&nbsp;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&nbsp;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 &amp; Install WordPress</a> with our famous 5-minute&nbsp;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>
    141183                </ol>
    142184            </div>
     
    204246    </main><!-- #main -->
    205247
    206     <?php
     248<?php
    207249get_footer();
Note: See TracChangeset for help on using the changeset viewer.