@@ -126,6 +126,7 @@ public function action_doing_it_wrong_run( $function_name, $message, $version )
126
126
$ this ->data ->actions [] = array (
127
127
'hook ' => 'doing_it_wrong_run ' ,
128
128
'filtered_trace ' => $ trace ->get_filtered_trace (),
129
+ 'component ' => $ trace ->get_component (),
129
130
'message ' => sprintf (
130
131
/* translators: Developer debugging message. 1: PHP function name, 2: Explanatory message, 3: WordPress version number. */
131
132
__ ( 'Function %1$s was called incorrectly. %2$s %3$s ' , 'query-monitor ' ),
@@ -169,6 +170,7 @@ public function action_deprecated_function_run( $function_name, $replacement, $v
169
170
$ this ->data ->actions [] = array (
170
171
'hook ' => 'deprecated_function_run ' ,
171
172
'filtered_trace ' => $ trace ->get_filtered_trace (),
173
+ 'component ' => $ trace ->get_component (),
172
174
'message ' => $ message ,
173
175
);
174
176
}
@@ -208,6 +210,7 @@ public function action_deprecated_constructor_run( $class_name, $version, $paren
208
210
$ this ->data ->actions [] = array (
209
211
'hook ' => 'deprecated_constructor_run ' ,
210
212
'filtered_trace ' => $ trace ->get_filtered_trace (),
213
+ 'component ' => $ trace ->get_component (),
211
214
'message ' => $ message ,
212
215
);
213
216
}
@@ -248,6 +251,7 @@ public function action_deprecated_file_included( $file, $replacement, $version,
248
251
$ this ->data ->actions [] = array (
249
252
'hook ' => 'deprecated_file_included ' ,
250
253
'filtered_trace ' => $ trace ->get_filtered_trace (),
254
+ 'component ' => $ trace ->get_component (),
251
255
'message ' => $ message ,
252
256
);
253
257
}
@@ -285,6 +289,7 @@ public function action_deprecated_argument_run( $function_name, $message, $versi
285
289
$ this ->data ->actions [] = array (
286
290
'hook ' => 'deprecated_argument_run ' ,
287
291
'filtered_trace ' => $ trace ->get_filtered_trace (),
292
+ 'component ' => $ trace ->get_component (),
288
293
'message ' => $ message ,
289
294
);
290
295
}
@@ -325,6 +330,7 @@ public function action_deprecated_hook_run( $hook, $replacement, $version, $mess
325
330
$ this ->data ->actions [] = array (
326
331
'hook ' => 'deprecated_hook_run ' ,
327
332
'filtered_trace ' => $ trace ->get_filtered_trace (),
333
+ 'component ' => $ trace ->get_component (),
328
334
'message ' => $ message ,
329
335
);
330
336
}
0 commit comments