-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8fefe59
commit d9d0bbf
Showing
4 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
/* | ||
* Insert this snippet before the end of innermost "foreach" loop in WP_Hook::apply_filters() | ||
* | ||
* wp-includes/class-wp-hook.php:328 | ||
*/ | ||
|
||
// Filtered value has changed. | ||
global $wp_filter; | ||
if ( | ||
// EDIT filter name here! | ||
($wp_filter['template_redirect'] ?? null) === $this | ||
&& $value !== $args[0] | ||
) { | ||
printf('<div>Value changed from %s to %s by<br><pre>', var_export($args[0], true), var_export($value, true)); | ||
var_dump($the_['function']); | ||
echo '</pre><hr></div>'; | ||
} |
2 changes: 1 addition & 1 deletion
2
mu-plugins/_debug-memory-usage.php → debug/debug-memory-usage.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
mu-plugins/_debug-page-load-time.php → debug/debug-page-load-time.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters