Passed
Push — master ( e64af5...ad1bda )
by Chris
03:25
created
includes/measurement-protocol.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -26,16 +26,16 @@  discard block
 block discarded – undo
26 26
 
27 27
 	$defaults = array(
28 28
 		't'  => 'event', // Required: Hit type
29
-		'ec' => '',      // Optional: Event category
30
-		'ea' => '', 	 // Optional: Event Action
31
-		'el' => '', 	 // Optional: Event Label
32
-		'ev' => null, 	 // Optional: Event Value
29
+		'ec' => '', // Optional: Event category
30
+		'ea' => '', // Optional: Event Action
31
+		'el' => '', // Optional: Event Label
32
+		'ev' => null, // Optional: Event Value
33 33
 	);
34 34
 
35
-	$body  = array_merge( $defaults , $args );
35
+	$body = array_merge( $defaults, $args );
36 36
 
37 37
 	// We want to get the user's IP address when possible
38
-	$ip     = '';
38
+	$ip = '';
39 39
 	if ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) && ! filter_var( $_SERVER['HTTP_CLIENT_IP'], FILTER_VALIDATE_IP ) === false ) {
40 40
 		$ip = $_SERVER['HTTP_CLIENT_IP'];
41 41
 	} elseif ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) && ! filter_var( $_SERVER['HTTP_X_FORWARDED_FOR'], FILTER_VALIDATE_IP ) === false ) {
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 		'uip' => $ip,
82 82
 
83 83
 		// Optional: User Agent
84
-		'ua'  => ! empty( $user_agent ) ?  $user_agent : $_SERVER['HTTP_USER_AGENT'],
84
+		'ua'  => ! empty( $user_agent ) ? $user_agent : $_SERVER['HTTP_USER_AGENT'],
85 85
 
86 86
 		// Optional: Time of the event
87 87
 		'z'   => time()
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 	// Unset empty values to reduce request size
100 100
 	foreach ( $body as $key => $value ) {
101 101
 		if ( empty( $value ) ) {
102
-			unset( $body[ $key ] );
102
+			unset( $body[$key] );
103 103
 		}
104 104
 	}
105 105
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 		// Optional: Event Value
143 143
 		'ev' => null,
144 144
 	);
145
-	$args  = wp_parse_args( $args, $default_args );
145
+	$args = wp_parse_args( $args, $default_args );
146 146
 	//$args = apply_filters( 'monsterinsights_mp_track_event_call', $args );
147 147
 
148 148
 	return monsterinsights_mp_api_call( $args );
Please login to merge, or discard this patch.
includes/admin/notice.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
 
57 57
     public function is_dismissed( $notice ) {
58
-        if ( ! isset( $this->notices[ $notice ] ) ) {
58
+        if ( ! isset( $this->notices[$notice] ) ) {
59 59
             return false;
60 60
         }
61 61
         return true;
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      * @return null
73 73
      */
74 74
     public function dismiss( $notice ) {
75
-        $this->notices[ $notice ] = true;
75
+        $this->notices[$notice] = true;
76 76
         update_option( 'monsterinsights_notices', $this->notices );
77 77
 
78 78
     }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      * @return null
89 89
      */
90 90
     public function undismiss( $notice ) {
91
-        unset( $this->notices[ $notice ] );
91
+        unset( $this->notices[$notice] );
92 92
         update_option( 'monsterinsights_notices', $this->notices );
93 93
 
94 94
     }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
             return '';
134 134
         }
135 135
 
136
-        $dismissible = ( $is_dismissible ) ? ' is-dismissible': '';
136
+        $dismissible = ( $is_dismissible ) ? ' is-dismissible' : '';
137 137
 
138 138
         // Display inline notice
139 139
         ob_start();
@@ -177,16 +177,16 @@  discard block
 block discarded – undo
177 177
                     }
178 178
 
179 179
                     $target = '';
180
-                    if ( ! empty( $args['primary']['target'] ) && $args['primary']['target'] === 'blank') {
180
+                    if ( ! empty( $args['primary']['target'] ) && $args['primary']['target'] === 'blank' ) {
181 181
                         $target = ' target="_blank" rel="noopener noreferrer"';
182 182
                     }
183 183
 
184 184
                     $class = 'button button-primary';
185 185
                     if ( ! empty( $args['primary']['class'] ) ) {
186
-                        $class = ' class="'. $args['primary']['class'] . '"';
186
+                        $class = ' class="' . $args['primary']['class'] . '"';
187 187
                     }
188 188
                     ?>
189
-                    <a href="<?php echo esc_attr( $url ); ?>"<?php echo $target; ?><?php echo $class;?>><?php echo esc_html( $text ); ?></a>
189
+                    <a href="<?php echo esc_attr( $url ); ?>"<?php echo $target; ?><?php echo $class; ?>><?php echo esc_html( $text ); ?></a>
190 190
                     <?php
191 191
                 }
192 192
 
@@ -204,16 +204,16 @@  discard block
 block discarded – undo
204 204
                     }           
205 205
 
206 206
                     $target = '';
207
-                    if ( ! empty( $args['secondary']['target'] ) && $args['secondary']['target'] === 'blank') {
207
+                    if ( ! empty( $args['secondary']['target'] ) && $args['secondary']['target'] === 'blank' ) {
208 208
                         $target = ' target="_blank" rel="noopener noreferrer"';
209 209
                     }
210 210
 
211 211
                     $class = 'button button-secondary';
212 212
                     if ( ! empty( $args['secondary']['class'] ) ) {
213
-                        $class = ' class="'. $args['secondary']['class'] . '"';
213
+                        $class = ' class="' . $args['secondary']['class'] . '"';
214 214
                     }
215 215
                     ?>
216
-                    <a href="<?php echo esc_attr( $url ); ?>"<?php echo $target; ?><?php echo $class;?>><?php echo esc_html( $text ); ?></a>
216
+                    <a href="<?php echo esc_attr( $url ); ?>"<?php echo $target; ?><?php echo $class; ?>><?php echo esc_html( $text ); ?></a>
217 217
                     <?php
218 218
                 }
219 219
 
Please login to merge, or discard this patch.
includes/admin/licensing/skin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     public function set_upgrader( &$upgrader ) {
40 40
 
41 41
         if ( is_object( $upgrader ) ) {
42
-            $this->upgrader =& $upgrader;
42
+            $this->upgrader = & $upgrader;
43 43
         }
44 44
 
45 45
     }
Please login to merge, or discard this patch.
includes/admin/pages/tools.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -51,13 +51,13 @@  discard block
 block discarded – undo
51 51
 	<?php
52 52
 }
53 53
 
54
-function monsterinsights_tools_url_builder_tab(){
54
+function monsterinsights_tools_url_builder_tab() {
55 55
 	do_action( 'monsterinsights_tools_url_builder_tab' );
56 56
 }
57 57
 
58 58
 function monsterinsights_tools_settings_tab() {
59
-	ob_start();?>
60
-	<h2><?php echo esc_html__( 'Setting Tools', 'google-analytics-for-wordpress' );?></h2>
59
+	ob_start(); ?>
60
+	<h2><?php echo esc_html__( 'Setting Tools', 'google-analytics-for-wordpress' ); ?></h2>
61 61
 	<p><?php echo esc_html__( 'You can use the below tools to import settings from other MonsterInsights websites or export settings to import into another MonsterInsights install.', 'google-analytics-for-wordpress' ); ?> </p>
62 62
 	<br />
63 63
 	<table class="form-table">
@@ -65,13 +65,13 @@  discard block
 block discarded – undo
65 65
 			<tr>
66 66
 				<th scope="row">
67 67
 					<label for="monsterinsights-import-settings">
68
-						<?php echo esc_html__( 'Import Settings', 'google-analytics-for-wordpress' );?>
68
+						<?php echo esc_html__( 'Import Settings', 'google-analytics-for-wordpress' ); ?>
69 69
 					</label>
70 70
 				</th>
71 71
 				<td>
72 72
 					<?php 
73
-					if ( ! empty( $_REQUEST['action'] ) && ! empty( $_REQUEST['result'] ) && $_REQUEST['action'] === 'import' && $_REQUEST['result'] === 'success' ){
74
-						echo MonsterInsights()->notices->display_inline_notice( 'monsterinsights_standard_notice', '', __( 'Successfully imported settings!','google-analytics-for-wordpress'), 'success', false, array() );
73
+					if ( ! empty( $_REQUEST['action'] ) && ! empty( $_REQUEST['result'] ) && $_REQUEST['action'] === 'import' && $_REQUEST['result'] === 'success' ) {
74
+						echo MonsterInsights()->notices->display_inline_notice( 'monsterinsights_standard_notice', '', __( 'Successfully imported settings!', 'google-analytics-for-wordpress' ), 'success', false, array() );
75 75
 					}
76 76
 					?>
77 77
 					<form method="post" enctype="multipart/form-data">
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 							<input type="file" name="import_file"/>
80 80
 							<input type="hidden" name="monsterinsights_action" value="monsterinsights_import_settings" />
81 81
 						</p>
82
-						<p class="description"><?php echo esc_html__( 'Paste the import field content from another MonsterInsights site in above.', 'google-analytics-for-wordpress' );?></p>
82
+						<p class="description"><?php echo esc_html__( 'Paste the import field content from another MonsterInsights site in above.', 'google-analytics-for-wordpress' ); ?></p>
83 83
 						<p>
84 84
 							<?php wp_nonce_field( 'monsterinsights_import_settings', 'monsterinsights_import_settings' ); ?>
85 85
 						</p>
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 			<tr>
93 93
 				<th scope="row">
94 94
 					<label for="monsterinsights-export-settings">
95
-						<?php echo esc_html__( 'Export Settings:', 'google-analytics-for-wordpress' );?>
95
+						<?php echo esc_html__( 'Export Settings:', 'google-analytics-for-wordpress' ); ?>
96 96
 					</label>
97 97
 				</th>
98 98
 				<td>
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
  * @return void
126 126
  */
127 127
 function monsterinsights_process_export_settings() {
128
-	if ( !isset( $_POST['monsterinsights_action'] ) || empty( $_POST['monsterinsights_action'] ) ) {
128
+	if ( ! isset( $_POST['monsterinsights_action'] ) || empty( $_POST['monsterinsights_action'] ) ) {
129 129
 		return;
130 130
 	}
131 131
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 		return;
134 134
 	}
135 135
 
136
-	if ( $_POST['monsterinsights_action'] !== 'monsterinsights_export_settings' ){
136
+	if ( $_POST['monsterinsights_action'] !== 'monsterinsights_export_settings' ) {
137 137
 		return;
138 138
 	}
139 139
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 
157 157
 function monsterinsights_import_settings() {
158 158
 
159
-	if ( !isset( $_POST['monsterinsights_action'] ) || empty( $_POST['monsterinsights_action'] ) ) {
159
+	if ( ! isset( $_POST['monsterinsights_action'] ) || empty( $_POST['monsterinsights_action'] ) ) {
160 160
 		return;
161 161
 	}
162 162
 
@@ -164,11 +164,11 @@  discard block
 block discarded – undo
164 164
 		return;
165 165
 	}
166 166
 
167
-	if ( $_POST['monsterinsights_action'] !== 'monsterinsights_import_settings' ){
167
+	if ( $_POST['monsterinsights_action'] !== 'monsterinsights_import_settings' ) {
168 168
 		return;
169 169
 	}
170 170
 
171
-	if ( !wp_verify_nonce( $_POST['monsterinsights_import_settings'], 'monsterinsights_import_settings' ) ) {
171
+	if ( ! wp_verify_nonce( $_POST['monsterinsights_import_settings'], 'monsterinsights_import_settings' ) ) {
172 172
 		return;
173 173
 	}
174 174
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 		wp_die( __( 'Please upload a file to import', 'google-analytics-for-wordpress' ) );
186 186
 	}
187 187
 
188
-	$file     = file_get_contents( $import_file );
188
+	$file = file_get_contents( $import_file );
189 189
 	if ( empty( $file ) ) {
190 190
 		wp_die( __( 'Please upload a real settings export file to import', 'google-analytics-for-wordpress' ) );
191 191
 	}
@@ -203,20 +203,20 @@  discard block
 block discarded – undo
203 203
 	);
204 204
 
205 205
 	foreach ( $exclude as $e ) {
206
-		if ( ! empty( $new_settings[ $e ] ) ) {
207
-			unset( $new_settings[ $e ] );
206
+		if ( ! empty( $new_settings[$e] ) ) {
207
+			unset( $new_settings[$e] );
208 208
 		}
209 209
 	}
210 210
 
211 211
 	if ( ! is_super_admin() ) {
212
-		if ( ! empty( $new_settings[ 'custom_code' ] ) ) {
213
-			unset( $new_settings[ 'custom_code' ] );
212
+		if ( ! empty( $new_settings['custom_code'] ) ) {
213
+			unset( $new_settings['custom_code'] );
214 214
 		}
215 215
 	}
216 216
 
217 217
 	foreach ( $exclude as $e ) {
218
-		if ( ! empty( $settings[ $e ] ) ) {
219
-			$new_settings = $settings[ $e ];
218
+		if ( ! empty( $settings[$e] ) ) {
219
+			$new_settings = $settings[$e];
220 220
 		}
221 221
 	}
222 222
 
Please login to merge, or discard this patch.
includes/frontend/tracking/class-tracking-preview.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,9 +84,9 @@
 block discarded – undo
84 84
      * @return string Javascript to output.
85 85
      */
86 86
     public function frontend_output( ) {
87
-        $output  = '<!-- This site uses the Google Analytics by MonsterInsights plugin v ' . MONSTERINSIGHTS_VERSION .' - https://www.monsterinsights.com/ -->';
88
-        $output .=  '<!-- ' . esc_html__( "You are currently in a preview window. MonsterInsights doesn't track preview window traffic to avoid false visit reports.", 'google-analytics-for-wordpress' ) . ' -->';
89
-        $output .=  '<!-- / Google Analytics by MonsterInsights -->';
87
+        $output  = '<!-- This site uses the Google Analytics by MonsterInsights plugin v ' . MONSTERINSIGHTS_VERSION . ' - https://www.monsterinsights.com/ -->';
88
+        $output .= '<!-- ' . esc_html__( "You are currently in a preview window. MonsterInsights doesn't track preview window traffic to avoid false visit reports.", 'google-analytics-for-wordpress' ) . ' -->';
89
+        $output .= '<!-- / Google Analytics by MonsterInsights -->';
90 90
         return $output;
91 91
     }
92 92
 }
93 93
\ No newline at end of file
Please login to merge, or discard this patch.
includes/frontend/frontend.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
 function monsterinsights_rss_link_tagger( $guid ) {
127 127
     global $post;
128 128
 
129
-    if ( monsterinsights_get_option( 'tag_links_in_rss', false ) ){
129
+    if ( monsterinsights_get_option( 'tag_links_in_rss', false ) ) {
130 130
         if ( is_feed() ) {
131 131
             if ( monsterinsights_get_option( 'allow_anchor', false ) ) {
132 132
                 $delimiter = '#';
Please login to merge, or discard this patch.
lite/includes/admin/tools.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 }
6 6
 
7 7
 function monsterinsights_tools_url_builder() {
8
-	ob_start();?>
8
+	ob_start(); ?>
9 9
 	<div class="monsterinsights-upsell-under-box">
10 10
 		<h2><?php esc_html_e( "Want even more fine tuned control over your website analytics?", 'google-analytics-for-wordpress' ); ?></h2>
11 11
 		<p class="monsterinsights-upsell-lite-text"><?php esc_html_e( "By upgrading to MonsterInsights Pro, you can unlock the MonsterInsights URL builder that helps you better track your advertising and email marketing campaigns.", 'google-analytics-for-wordpress' ); ?></p>
Please login to merge, or discard this patch.
assets/lib/pandora/class-am-deactivation-survey.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
 				return;
55 55
 			}
56 56
 
57
-			add_action( 'admin_print_scripts', array( $this, 'js'    ), 20 );
58
-			add_action( 'admin_print_scripts', array( $this, 'css'   )     );
59
-			add_action( 'admin_footer',        array( $this, 'modal' )     );
57
+			add_action( 'admin_print_scripts', array( $this, 'js' ), 20 );
58
+			add_action( 'admin_print_scripts', array( $this, 'css' ) );
59
+			add_action( 'admin_footer', array( $this, 'modal' ) );
60 60
 		}
61 61
 	
62 62
 		/**
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 		 */
68 68
 		public function is_dev_url() {
69 69
 			// If it is an AM dev site, return false, so we can see them on our dev sites.
70
-			if ( defined ('AWESOMEMOTIVE_DEV_MODE' ) && AWESOMEMOTIVE_DEV_MODE ) {
70
+			if ( defined( 'AWESOMEMOTIVE_DEV_MODE' ) && AWESOMEMOTIVE_DEV_MODE ) {
71 71
 				return false;
72 72
 			}
73 73
 		
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
 				}
103 103
 				if ( substr_count( $host, '.' ) > 1 ) {
104
-					$subdomains_to_check =  array( 'dev.', '*.staging.', 'beta.', 'test.' );
104
+					$subdomains_to_check = array( 'dev.', '*.staging.', 'beta.', 'test.' );
105 105
 					foreach ( $subdomains_to_check as $subdomain ) {
106 106
 						$subdomain = str_replace( '.', '(.)', $subdomain );
107 107
 						$subdomain = str_replace( array( '*', '(.)' ), '(.*)', $subdomain );
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
 				<div class="am-deactivate-survey-wrap">
314 314
 					<form class="am-deactivate-survey" method="post">
315 315
 						<span class="am-deactivate-survey-title"><span class="dashicons dashicons-testimonial"></span><?php echo ' ' . esc_html__( 'Quick Feedback', 'google-analytics-for-wordpress' ); ?></span>
316
-						<span class="am-deactivate-survey-desc"><?php echo sprintf( esc_html__('If you have a moment, please share why you are deactivating %s:', 'google-analytics-for-wordpress' ), $this->name ); ?></span>
316
+						<span class="am-deactivate-survey-desc"><?php echo sprintf( esc_html__( 'If you have a moment, please share why you are deactivating %s:', 'google-analytics-for-wordpress' ), $this->name ); ?></span>
317 317
 						<div class="am-deactivate-survey-options">
318 318
 							<?php foreach ( $options as $id => $option ) : ?>
319 319
 							<div class="am-deactivate-survey-option">
@@ -328,8 +328,8 @@  discard block
 block discarded – undo
328 328
 							<?php endforeach; ?>
329 329
 						</div>
330 330
 						<div class="am-deactivate-survey-footer">
331
-							<button type="submit" class="am-deactivate-survey-submit button button-primary button-large"><?php echo sprintf( esc_html__('Submit %s Deactivate', 'google-analytics-for-wordpress' ), '&amp;' ); ?></button>
332
-							<a href="#" class="am-deactivate-survey-deactivate"><?php echo sprintf( esc_html__('Skip %s Deactivate', 'google-analytics-for-wordpress' ), '&amp;' ); ?></a>
331
+							<button type="submit" class="am-deactivate-survey-submit button button-primary button-large"><?php echo sprintf( esc_html__( 'Submit %s Deactivate', 'google-analytics-for-wordpress' ), '&amp;' ); ?></button>
332
+							<a href="#" class="am-deactivate-survey-deactivate"><?php echo sprintf( esc_html__( 'Skip %s Deactivate', 'google-analytics-for-wordpress' ), '&amp;' ); ?></a>
333 333
 						</div>
334 334
 					</form>
335 335
 				</div>
Please login to merge, or discard this patch.
assets/lib/pandora/class-am-notification.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
 				return;
191 191
 			}
192 192
 
193
-			$plugin_notifications = $this->get_plugin_notifications( - 1, array(
193
+			$plugin_notifications = $this->get_plugin_notifications( -1, array(
194 194
 				'post_status' => 'all',
195 195
 				'meta_key'    => 'viewed',
196 196
 				'meta_value'  => '0',
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 					}
250 250
 
251 251
 					if ( ! $continue ) {
252
-						unset( $plugin_notifications[ $key ] );
252
+						unset( $plugin_notifications[$key] );
253 253
 					}
254 254
 				}
255 255
 
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
 					}
265 265
 
266 266
 					if ( ! $continue ) {
267
-						unset( $plugin_notifications[ $key ] );
267
+						unset( $plugin_notifications[$key] );
268 268
 					}
269 269
 				}
270 270
 
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
 				$continue = (string) wp_get_theme() === $theme;
274 274
 
275 275
 				if ( ! empty( $theme ) && ! $continue ) {
276
-					unset( $plugin_notifications[ $key ] );
276
+					unset( $plugin_notifications[$key] );
277 277
 				}
278 278
 
279 279
 				// Version validation.
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 					}
286 286
 
287 287
 					if ( ! $continue ) {
288
-						unset( $plugin_notifications[ $key ] );
288
+						unset( $plugin_notifications[$key] );
289 289
 					}
290 290
 				}
291 291
 
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
 					}
299 299
 
300 300
 					if ( ! $continue ) {
301
-						unset( $plugin_notifications[ $key ] );
301
+						unset( $plugin_notifications[$key] );
302 302
 					}
303 303
 				}
304 304
 
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
 					}
313 313
 
314 314
 					if ( ! $continue ) {
315
-						unset( $plugin_notifications[ $key ] );
315
+						unset( $plugin_notifications[$key] );
316 316
 					}
317 317
 				}
318 318
 			}
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
 		public function revoke_notifications( $ids ) {
445 445
 			// Loop through each of the IDs and find the post that has it as meta.
446 446
 			foreach ( (array) $ids as $id ) {
447
-				$notifications = $this->get_plugin_notifications( - 1, array( 'post_status' => 'all', 'meta_key' => 'notification_id', 'meta_value' => $id ) );
447
+				$notifications = $this->get_plugin_notifications( -1, array( 'post_status' => 'all', 'meta_key' => 'notification_id', 'meta_value' => $id ) );
448 448
 				if ( $notifications ) {
449 449
 					foreach ( $notifications as $notification ) {
450 450
 						update_post_meta( $notification->ID, 'viewed', 1 );
Please login to merge, or discard this patch.