Making WordPress.org

Changeset 7039


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

WP15: Apply coding standards.

Location:
sites/trunk/wp15.wordpress.net/public_html/content/mu-plugins
Files:
3 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
  • sites/trunk/wp15.wordpress.net/public_html/content/mu-plugins/miscellaneous.php

    r7038 r7039  
    1212use DateTime;
    1313
    14 defined( 'WPINC' ) or die();
     14defined( 'WPINC' ) || die();
    1515
    16 add_filter( 'map_meta_cap',  __NAMESPACE__ . '\allow_css_editing', 10, 2  );
    17 add_filter( 'tggr_end_date', __NAMESPACE__ . '\set_tagregator_cutoff_date' );
    18 add_filter( 'wp15_update_pomo_files', __NAMESPACE__ . '\update_pomo_files' );
    19 add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\register_assets', 1 );
    20 add_action( 'admin_enqueue_scripts', __NAMESPACE__ . '\register_assets', 1 );
    21 add_filter( 'mime_types', __NAMESPACE__ . '\mime_types' );
     16add_filter( 'map_meta_cap',           __NAMESPACE__ . '\allow_css_editing',         10, 2 );
     17add_filter( 'tggr_end_date',          __NAMESPACE__ . '\set_tagregator_cutoff_date'      );
     18add_filter( 'wp15_update_pomo_files', __NAMESPACE__ . '\update_pomo_files'                );
     19add_action( 'wp_enqueue_scripts',     __NAMESPACE__ . '\register_assets',            1    );
     20add_action( 'admin_enqueue_scripts',  __NAMESPACE__ . '\register_assets',            1    );
     21add_filter( 'mime_types',             __NAMESPACE__ . '\mime_types'                      );
    2222
    2323add_filter( 'tggr_show_log', '__return_true' );
     
    134134 * Add supported mime types.
    135135 *
    136  * @param $mime_types
     136 * @param array $mime_types
    137137 */
    138138function mime_types( $mime_types ) {
    139     $mime_types[ 'ai' ] = 'application/postscript';
     139    $mime_types['ai'] = 'application/postscript';
    140140
    141141    return $mime_types;
  • sites/trunk/wp15.wordpress.net/public_html/content/mu-plugins/updates.php

    r6579 r7039  
    1010
    1111namespace WP15\Updates;
    12 defined( 'WPINC' ) or die();
     12defined( 'WPINC' ) || die();
    1313
    1414/*
     
    2121 * Auto update everything, even major Core releases, to minimize the maintenance burden.
    2222 */
    23 add_filter( 'allow_minor_auto_core_updates',     '__return_true' );
    24 add_filter( 'allow_major_auto_core_updates',     '__return_true' );
    25 add_filter( 'auto_update_plugin',                '__return_true' );
    26 add_filter( 'auto_update_theme',                 '__return_true' );
    27 add_filter( 'auto_update_translation',           '__return_true' );
     23add_filter( 'allow_minor_auto_core_updates', '__return_true' );
     24add_filter( 'allow_major_auto_core_updates', '__return_true' );
     25add_filter( 'auto_update_plugin',            '__return_true' );
     26add_filter( 'auto_update_theme',             '__return_true' );
     27add_filter( 'auto_update_translation',       '__return_true' );
Note: See TracChangeset for help on using the changeset viewer.