Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bca3f42ee5 | ||
|
|
68302633c0 | ||
|
|
67ad1370ef |
No files matched your search
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## Unreleased
|
||||
|
||||
## 1.4.2 - 2016-12-02
|
||||
|
||||
### Fixed
|
||||
- back to fully functional on WP 4.7 beta
|
||||
|
||||
## 1.4.1 - 2016-12-01
|
||||
|
||||
### Fixed
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# Laps — light WordPress profiler
|
||||
[](https://scrutinizer-ci.com/g/Rarst/laps/?branch=master)
|
||||
|
||||

|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ Plugin Name: Laps
|
||||
Plugin URI: https://github.com/Rarst/laps
|
||||
Description: Light WordPress profiler.
|
||||
Author: Andrey "Rarst" Savchenko
|
||||
Version: 1.4.1
|
||||
Version: 1.4.2
|
||||
Author URI: http://www.rarst.net/
|
||||
Text Domain: laps
|
||||
Domain Path: /lang
|
||||
|
||||
+4
-7
@@ -91,15 +91,12 @@ class Laps {
|
||||
|
||||
global $wp_filter;
|
||||
|
||||
$filter = current_filter();
|
||||
$priority = key( $wp_filter[ $filter ] );
|
||||
|
||||
if ( 'callbacks' === $priority ) { // Fails on WP 4.7, see https://core.trac.wordpress.org/ticket/39007
|
||||
return $input;
|
||||
}
|
||||
$filter_name = current_filter();
|
||||
$filter_instance = $wp_filter[ $filter_name ];
|
||||
$priority = $filter_instance instanceof \WP_Hook ? $filter_instance->current_priority() : key( $filter_instance );
|
||||
|
||||
$event = wp_parse_args(
|
||||
self::$events[ $filter ][ $priority ],
|
||||
self::$events[ $filter_name ][ $priority ],
|
||||
array(
|
||||
'action' => 'start',
|
||||
'category' => null,
|
||||
|
||||
Reference in new issue
Block a user