Making WordPress.org


Ignore:
Timestamp:
04/05/2018 06:34:32 PM (6 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/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;
Note: See TracChangeset for help on using the changeset viewer.