1 parent
f50faf6ba6
commit
ee7ff0f21b
2 files changed
+10
No files matched your search
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
## 1.4.3 - 2017-06-28
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- sanity check for invalid priority returned by core
|
||||||
|
|
||||||
## 1.4.2 - 2016-12-02
|
## 1.4.2 - 2016-12-02
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -95,6 +95,11 @@ class Laps {
|
|||||||
$filter_instance = $wp_filter[ $filter_name ];
|
$filter_instance = $wp_filter[ $filter_name ];
|
||||||
$priority = $filter_instance instanceof \WP_Hook ? $filter_instance->current_priority() : key( $filter_instance );
|
$priority = $filter_instance instanceof \WP_Hook ? $filter_instance->current_priority() : key( $filter_instance );
|
||||||
|
|
||||||
|
// See https://core.trac.wordpress.org/ticket/41185 on broken priority, but more general sanity check.
|
||||||
|
if ( empty( self::$events[ $filter_name ][ $priority ] ) ) {
|
||||||
|
return $input;
|
||||||
|
}
|
||||||
|
|
||||||
$event = wp_parse_args(
|
$event = wp_parse_args(
|
||||||
self::$events[ $filter_name ][ $priority ],
|
self::$events[ $filter_name ][ $priority ],
|
||||||
array(
|
array(
|
||||||
|
|||||||
Reference in new issue
Block a user