Making WordPress.org


Ignore:
Timestamp:
12/18/2017 05:42:35 PM (6 years ago)
Author:
obenland
Message:

Plugins: Conform to WPCS.

File:
1 edited

Legend:

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

    r6251 r6284  
    99
    1010namespace WordPressdotorg\Plugin_Directory\Theme;
     11
    1112use WordPressdotorg\Plugin_Directory\Template;
    1213
     
    1718    <?php the_closed_plugin_notice(); ?>
    1819
    19     <h2><?php _e( 'Plugin Stats', 'wporg-plugins' ); ?></h2>
     20    <h2><?php esc_html_e( 'Plugin Stats', 'wporg-plugins' ); ?></h2>
    2021
    21     <h4><?php _e( 'Active versions', 'wporg-plugins' ); ?></h4>
     22    <h4><?php esc_html_e( 'Active versions', 'wporg-plugins' ); ?></h4>
    2223    <div id="plugin-version-stats" class="chart version-stats"></div>
    2324
    24     <h4><?php _e( 'Downloads Per Day', 'wporg-plugins' ); ?></h4>
     25    <h4><?php esc_html_e( 'Downloads Per Day', 'wporg-plugins' ); ?></h4>
    2526    <div id="plugin-download-stats" class="chart download-stats"></div>
    2627
    27     <h4><?php _e( 'Active Install Growth', 'wporg-plugins' ); ?></h4>
     28    <h4><?php esc_html_e( 'Active Install Growth', 'wporg-plugins' ); ?></h4>
    2829    <div id="plugin-growth-stats" class="chart download-stats"></div>
    2930
    30     <h5><?php _e( 'Downloads history', 'wporg-plugins' ); ?></h5>
     31    <h5><?php esc_html_e( 'Downloads history', 'wporg-plugins' ); ?></h5>
    3132    <table id="plugin-download-history-stats" class="download-history-stats">
    3233        <tbody></tbody>
     
    4748        $tags = array_reverse( $tags );
    4849
    49         echo '<h5>' . __( 'Previous Versions', 'wporg-plugins' ) . '</h5>';
    50         echo '<div class="plugin-notice notice notice-info notice-alt"><p>' . __( 'Previous versions of this plugin may not be secure or stable and are available for testing purposes only.', 'wporg-plugins' ) . '</p></div>';
     50        echo '<h5>' . esc_html__( 'Previous Versions', 'wporg-plugins' ) . '</h5>';
     51        echo '<div class="plugin-notice notice notice-info notice-alt"><p>' . esc_html__( 'Previous versions of this plugin may not be secure or stable and are available for testing purposes only.', 'wporg-plugins' ) . '</p></div>';
    5152
    5253        echo '<select class="previous-versions" onchange="getElementById(\'download-previous-link\').href=this.value;">';
    5354        foreach ( $tags as $version ) {
    54             $text = ( 'trunk' == $version ? __( 'Development Version', 'wporg-plugins' ) : $version );
     55            $text = ( 'trunk' === $version ? esc_html__( 'Development Version', 'wporg-plugins' ) : $version );
    5556            printf( '<option value="%s">%s</option>', esc_attr( Template::download_link( $post, $version ) ), esc_html( $text ) );
    5657        }
     
    6061            '<a href="%s" id="download-previous-link" class="button">%s</a>',
    6162            esc_url( Template::download_link( $post, reset( $tags ) ) ),
    62             __( 'Download', 'wporg-plugins' )
     63            esc_html__( 'Download', 'wporg-plugins' )
    6364        );
    6465    }
Note: See TracChangeset for help on using the changeset viewer.