Completed
Push — master ( 284738...56e281 )
by SILENT
02:19
created
inc/extras.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -13,30 +13,30 @@  discard block
 block discarded – undo
13 13
  *
14 14
  * @param $strings $classes group-blog.
15 15
  */
16
-function strip_body_classes( $classes ) {
16
+function strip_body_classes($classes) {
17 17
 	// Adds a class of group-blog to blogs with more than 1 published author.
18
-	if ( is_multi_author() ) {
18
+	if (is_multi_author()) {
19 19
 		$classes[] = 'group-blog';
20 20
 	}
21 21
 
22 22
 	return $classes;
23 23
 }
24
-add_filter( 'body_class', 'strip_body_classes' );
24
+add_filter('body_class', 'strip_body_classes');
25 25
 
26 26
 /**
27 27
  * Disable the emoji's
28 28
  */
29 29
 function disable_emojis() {
30
-	remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
31
-	remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
32
-	remove_action( 'wp_print_styles', 'print_emoji_styles' );
33
-	remove_action( 'admin_print_styles', 'print_emoji_styles' );
34
-	remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
35
-	remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
36
-	remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
37
-	add_filter( 'tiny_mce_plugins', 'disable_emojis_tinymce' );
38
-	add_filter( 'wp_resource_hints', 'disable_emojis_remove_dns_prefetch', 10, 2 );
39
-} add_action( 'init', 'disable_emojis' );
30
+	remove_action('wp_head', 'print_emoji_detection_script', 7);
31
+	remove_action('admin_print_scripts', 'print_emoji_detection_script');
32
+	remove_action('wp_print_styles', 'print_emoji_styles');
33
+	remove_action('admin_print_styles', 'print_emoji_styles');
34
+	remove_filter('the_content_feed', 'wp_staticize_emoji');
35
+	remove_filter('comment_text_rss', 'wp_staticize_emoji');
36
+	remove_filter('wp_mail', 'wp_staticize_emoji_for_email');
37
+	add_filter('tiny_mce_plugins', 'disable_emojis_tinymce');
38
+	add_filter('wp_resource_hints', 'disable_emojis_remove_dns_prefetch', 10, 2);
39
+} add_action('init', 'disable_emojis');
40 40
 
41 41
 /**
42 42
  * Filter function used to remove the tinymce emoji plugin introduced in WordPress 4.2.
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
  * @param array $plugins disable_emojis_tinymce.
45 45
  * @return array Difference betwen the two arrays.
46 46
  */
47
-function disable_emojis_tinymce( $plugins ) {
48
-	if ( is_array( $plugins ) ) { return array_diff( $plugins, array( 'wpemoji' ) );
47
+function disable_emojis_tinymce($plugins) {
48
+	if (is_array($plugins)) { return array_diff($plugins, array('wpemoji'));
49 49
 	} else { return array();
50 50
 	} }
51 51
 	/**
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
 	 * @param string $relation_type The relation type the URLs are printed for.
56 56
 	 * @return array Difference betwen the two arrays.
57 57
 	 */
58
-function disable_emojis_remove_dns_prefetch( $urls, $relation_type ) {
59
-	if ( 'dns-prefetch' !== $relation_type ) { /** This filter is documented in wp-includes/formatting.php */
60
-		$emoji_svg_url = apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/2/svg/' );
61
-		$urls = array_diff( $urls, array( $emoji_svg_url ) );
58
+function disable_emojis_remove_dns_prefetch($urls, $relation_type) {
59
+	if ('dns-prefetch' !== $relation_type) { /** This filter is documented in wp-includes/formatting.php */
60
+		$emoji_svg_url = apply_filters('emoji_svg_url', 'https://s.w.org/images/core/emoji/2/svg/');
61
+		$urls = array_diff($urls, array($emoji_svg_url));
62 62
 	}  return $urls; }
Please login to merge, or discard this patch.