Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
03ff2b61ff | ||
|
|
3c0ae866e0 | ||
|
|
d2bece68e5 | ||
|
|
f50faf6ba6 |
No files matched your search
@@ -6,6 +6,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
## 1.4.4 - 2017-07-05
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Robo task to update header version and tag in Git
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- version in header
|
||||||
|
|
||||||
|
## 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
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
# Laps — light WordPress profiler
|
# Laps — light WordPress profiler
|
||||||
[](https://scrutinizer-ci.com/g/Rarst/laps/?branch=master)
|
[](https://scrutinizer-ci.com/g/Rarst/laps/?branch=master)
|
||||||
|
[](https://packagist.org/packages/rarst/laps)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|||||||
@@ -77,6 +77,23 @@ class RoboFile extends \Robo\Tasks {
|
|||||||
$mustache->loadTemplate( 'laps' );
|
$mustache->loadTemplate( 'laps' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Updates version in header and makes git version tag.
|
||||||
|
*
|
||||||
|
* @param string $version Version string.
|
||||||
|
*/
|
||||||
|
public function tag( $version ) {
|
||||||
|
|
||||||
|
$this->versionSet( $version );
|
||||||
|
|
||||||
|
$this->taskGitStack()
|
||||||
|
->stopOnFail()
|
||||||
|
->add( 'laps.php' )
|
||||||
|
->commit( "Updated header version to {$version}" )
|
||||||
|
->tag( $version )
|
||||||
|
->run();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the plugin version in header.
|
* Sets the plugin version in header.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ Plugin Name: Laps
|
|||||||
Plugin URI: https://github.com/Rarst/laps
|
Plugin URI: https://github.com/Rarst/laps
|
||||||
Description: Light WordPress profiler.
|
Description: Light WordPress profiler.
|
||||||
Author: Andrey "Rarst" Savchenko
|
Author: Andrey "Rarst" Savchenko
|
||||||
Version: 1.4.2
|
Version: 1.4.4
|
||||||
Author URI: http://www.rarst.net/
|
Author URI: http://www.rarst.net/
|
||||||
Text Domain: laps
|
Text Domain: laps
|
||||||
Domain Path: /lang
|
Domain Path: /lang
|
||||||
|
|||||||
@@ -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