Making WordPress.org


Ignore:
Timestamp:
04/05/2018 06:34:32 PM (8 years ago)
Author:
iandunn
Message:

WP15: Apply coding standards.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wp15.wordpress.net/public_html/content/mu-plugins/locales.php

    r7003 r7039  
    1010
    1111namespace WP15\Locales;
    12 defined( 'WPINC' ) or die();
     12defined( 'WPINC' ) || die();
    1313
    1414use GP_Locales;
     
    120120
    121121    ?>
     122
    122123    <div class="wp15-locale-switcher-container">
    123124        <form id="wp15-locale-switcher-form" action="" method="GET">
    124125            <label for="wp15-locale-switcher">
    125126                <span aria-hidden="true" class="dashicons dashicons-translation"></span>
    126                 <span class="screen-reader-text"><?php _e( 'Select the language:', 'wp15' ); ?></span>
     127                <span class="screen-reader-text"><?php esc_html_e( 'Select the language:', 'wp15' ); ?></span>
    127128            </label>
     129
    128130            <select id="wp15-locale-switcher" name="locale">
    129131                <?php
     132
    130133                foreach ( get_locales() as $locale => $locale_name ) {
    131134                    printf(
     
    136139                    );
    137140                }
     141
    138142                ?>
    139143            </select>
    140144        </form>
    141         <?php //todo Add blurb about submitting missing translations? ?>
    142145    </div>
     146
    143147    <?php
    144148
Note: See TracChangeset for help on using the changeset viewer.