Changeset 7039
- Timestamp:
- 04/05/2018 06:34:32 PM (7 years ago)
- 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 10 10 11 11 namespace WP15\Locales; 12 defined( 'WPINC' ) ordie();12 defined( 'WPINC' ) || die(); 13 13 14 14 use GP_Locales; … … 120 120 121 121 ?> 122 122 123 <div class="wp15-locale-switcher-container"> 123 124 <form id="wp15-locale-switcher-form" action="" method="GET"> 124 125 <label for="wp15-locale-switcher"> 125 126 <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> 127 128 </label> 129 128 130 <select id="wp15-locale-switcher" name="locale"> 129 131 <?php 132 130 133 foreach ( get_locales() as $locale => $locale_name ) { 131 134 printf( … … 136 139 ); 137 140 } 141 138 142 ?> 139 143 </select> 140 144 </form> 141 <?php //todo Add blurb about submitting missing translations? ?>142 145 </div> 146 143 147 <?php 144 148 -
sites/trunk/wp15.wordpress.net/public_html/content/mu-plugins/miscellaneous.php
r7038 r7039 12 12 use DateTime; 13 13 14 defined( 'WPINC' ) ordie();14 defined( 'WPINC' ) || die(); 15 15 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');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' ); 22 22 23 23 add_filter( 'tggr_show_log', '__return_true' ); … … 134 134 * Add supported mime types. 135 135 * 136 * @param $mime_types136 * @param array $mime_types 137 137 */ 138 138 function mime_types( $mime_types ) { 139 $mime_types[ 'ai'] = 'application/postscript';139 $mime_types['ai'] = 'application/postscript'; 140 140 141 141 return $mime_types; -
sites/trunk/wp15.wordpress.net/public_html/content/mu-plugins/updates.php
r6579 r7039 10 10 11 11 namespace WP15\Updates; 12 defined( 'WPINC' ) ordie();12 defined( 'WPINC' ) || die(); 13 13 14 14 /* … … 21 21 * Auto update everything, even major Core releases, to minimize the maintenance burden. 22 22 */ 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');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' );
Note: See TracChangeset
for help on using the changeset viewer.