Making WordPress.org

Changeset 7375


Ignore:
Timestamp:
07/05/2018 09:52:30 PM (8 years ago)
Author:
obenland
Message:

Main: PHPCS updates

See #3673.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/inc/template-tags.php

    r7357 r7375  
    2222                <td><?php echo esc_html( date_i18n( get_option( 'date_format' ), $release['builton'] ) ); ?></td>
    2323                <td><a href="<?php echo esc_url( $release['zip_url'] ); ?>">zip</a>
    24                         <small>(<a href="<?php echo esc_url( $release['zip_url'] . '.md5' ); ?>">md5</a><?php if ( ! $is_rosetta ) : ?> | <a href="<?php echo esc_url( $release['zip_url'] . '.sha1' ); ?>">sha1</a><?php endif; ?>)</small>
     24                        <small>(<a href="<?php echo esc_url( $release['zip_url'] . '.md5' ); ?>">md5</a>
     25                                <?php if ( ! $is_rosetta ) : ?>
     26                                        | <a href="<?php echo esc_url( $release['zip_url'] . '.sha1' ); ?>">sha1</a>
     27                                <?php endif; ?>)
     28                        </small>
    2529                </td>
    2630                <td><a href="<?php echo esc_url( $release['targz_url'] ); ?>">tar.gz</a>
    27                         <small>(<a href="<?php echo esc_url( $release['targz_url'] . '.md5' ); ?>">md5</a><?php if ( ! $is_rosetta ) : ?> | <a href="<?php echo esc_url( $release['targz_url'] . '.sha1' ); ?>">sha1</a><?php endif; ?>)</small>
     31                        <small>(<a href="<?php echo esc_url( $release['targz_url'] . '.md5' ); ?>">md5</a>
     32                                <?php if ( ! $is_rosetta ) : ?>
     33                                        | <a href="<?php echo esc_url( $release['targz_url'] . '.sha1' ); ?>">sha1</a>
     34                                <?php endif; ?>)
     35                        </small>
    2836                </td>
    2937                <?php if ( ! $is_rosetta ) : ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-history.php

    r7363 r7375  
    4545                                                                <?php
    4646                                                                /* translators: file format */
    47                                                                 printf( __( 'Chapter 3 &#8211; %s', 'wporg' ), 'EPUB' );
     47                                                                printf( esc_html__( 'Chapter 3 &#8211; %s', 'wporg' ), 'EPUB' );
    4848                                                                ?>
    4949                                                        </a>
    … …  
    5353                                                                <?php
    5454                                                                /* translators: file format */
    55                                                                 printf( __( 'Chapter 3 &#8211; %s', 'wporg' ), 'MOBI' );
     55                                                                printf( esc_html__( 'Chapter 3 &#8211; %s', 'wporg' ), 'MOBI' );
    5656                                                                ?>
    5757                                                        </a>
    … …  
    6161                                                                <?php
    6262                                                                /* translators: file format */
    63                                                                 printf( __( 'Chapter 3 &#8211; %s', 'wporg' ), 'PDF' );
     63                                                                printf( esc_html__( 'Chapter 3 &#8211; %s', 'wporg' ), 'PDF' );
    6464                                                                ?>
    6565                                                        </a>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-testimonials.php

    r7350 r7375  
    132132                                                <?php
    133133                                                        /* translators: The #ilovewp Hashtag */
    134                                                         printf( __( 'Tweet %s', 'wporg' ), '#ilovewp' );
     134                                                        printf( esc_html__( 'Tweet %s', 'wporg' ), '#ilovewp' );
    135135                                                ?>
    136136                                                </a>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download-beta-nightly.php

    r7367 r7375  
    6666                                                <?php
    6767                                                printf(
    68                                                 /* translators: URL to documentation */
     68                                                        /* translators: URL to documentation */
    6969                                                        wp_kses_post( __( 'If you would like to be part of this process, the best place to start is the <a href="%s">Beta Testing Handbook</a>.', 'wporg' ) ),
    7070                                                        esc_url( 'https://make.wordpress.org/core/handbook/testing/beta/' )
    … …  
    7878        </main><!-- #main -->
    7979
    80         <?php
     80<?php
    8181get_footer();
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download-source.php

    r7368 r7375  
    129129        </main><!-- #main -->
    130130
    131         <?php
     131<?php
    132132get_footer();
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-releases.php

    r7367 r7375  
    1111
    1212if ( get_post()->post_parent ) {
    13 $GLOBALS['menu_items'] = [
    14         'download/releases'     => _x( 'Releases', 'Page title', 'wporg' ),
    15         'download/beta-nightly' => _x( 'Beta/Nightly', 'Page title', 'wporg' ),
    16         'download/counter'      => _x( 'Counter', 'Page title', 'wporg' ),
    17         'download/source'       => _x( 'Source Code', 'Page title', 'wporg' ),
    18 ];
     13        $GLOBALS['menu_items'] = [
     14                'download/releases'     => _x( 'Releases', 'Page title', 'wporg' ),
     15                'download/beta-nightly' => _x( 'Beta/Nightly', 'Page title', 'wporg' ),
     16                'download/counter'      => _x( 'Counter', 'Page title', 'wporg' ),
     17                'download/source'       => _x( 'Source Code', 'Page title', 'wporg' ),
     18        ];
    1919}
    2020
Note: See TracChangeset for help on using the changeset viewer.