@@ -23,14 +23,14 @@ discard block |
||
23 | 23 | * @link //gist.github.com/llgruff/a7ab776167aa0ed307ec445df54e5fdb |
24 | 24 | */ |
25 | 25 | if ( defined( 'AIOSEOP_VERSION' ) ) { |
26 | - add_action( 'get_header', function () { |
|
26 | + add_action( 'get_header', function() { |
|
27 | 27 | ob_start( |
28 | - function ( $o ) { |
|
28 | + function( $o ) { |
|
29 | 29 | return preg_replace( '/\n?<.*?One SEO Pack.*?>/mi', '', $o ); |
30 | 30 | } |
31 | 31 | ); |
32 | 32 | } ); |
33 | - add_action( 'wp_head', function () { |
|
33 | + add_action( 'wp_head', function() { |
|
34 | 34 | ob_end_flush(); |
35 | 35 | }, 999 ); |
36 | 36 | } |
@@ -41,14 +41,14 @@ discard block |
||
41 | 41 | * @link //gist.github.com/paulcollett/4c81c4f6eb85334ba076 |
42 | 42 | */ |
43 | 43 | if ( defined( 'WPSEO_VERSION' ) ) { |
44 | - add_action( 'get_header', function () { |
|
44 | + add_action( 'get_header', function() { |
|
45 | 45 | ob_start( |
46 | - function ( $o ) { |
|
46 | + function( $o ) { |
|
47 | 47 | return preg_replace( '/^<!--.*?[Y]oast.*?-->$/mi', '', $o ); |
48 | 48 | } |
49 | 49 | ); |
50 | 50 | } ); |
51 | - add_action( 'wp_head', function () { |
|
51 | + add_action( 'wp_head', function() { |
|
52 | 52 | ob_end_flush(); |
53 | 53 | }, 999 ); |
54 | 54 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $network_active = false; |
62 | 62 | if ( is_multisite() ) { |
63 | 63 | $plugins = get_site_option( 'active_sitewide_plugins' ); |
64 | - if ( isset( $plugins[ $plugin ] ) ) { |
|
64 | + if ( isset( $plugins[$plugin] ) ) { |
|
65 | 65 | $network_active = true; |
66 | 66 | } |
67 | 67 | } |
@@ -70,12 +70,12 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | if ( isgabmi_active( 'google-analytics-for-wordpress/googleanalytics.php' ) || isgabmi_active( 'google-analytics-premium/googleanalytics.php' ) ) { |
73 | - add_action( 'get_header', function () { |
|
74 | - ob_start( function ( $o ) { |
|
73 | + add_action( 'get_header', function() { |
|
74 | + ob_start( function( $o ) { |
|
75 | 75 | return preg_replace( '/\n?<.*?monsterinsights.*?>/mi', '', $o ); |
76 | 76 | } ); |
77 | 77 | } ); |
78 | - add_action( 'wp_head', function () { |
|
78 | + add_action( 'wp_head', function() { |
|
79 | 79 | ob_end_flush(); |
80 | 80 | }, 999 ); |
81 | 81 | } |