6 Commits
4 changed files with 17 additions and 3 deletions

No files matched your search

+9
View File
@@ -1,5 +1,14 @@
# Changelog
## 1.3.2
- fixed dynamic method call crash on PHP 7
- fixed issue with slashes in generated release archives
## 1.3.1
- fixed crash on event stop without matching start
## 1.3
- implemented minified assets
+2 -1
View File
@@ -144,7 +144,8 @@ class RoboFile extends \Robo\Tasks {
/** @var \Symfony\Component\Finder\SplFileInfo $file */
foreach ( $finder as $file ) {
$zipArchive->addFile( $file->getRealPath(), 'laps/' . $file->getRelativePathname() );
$relativePathname = str_replace( '\\', '/', $file->getRelativePathname() );
$zipArchive->addFile( $file->getRealPath(), 'laps/' . $relativePathname );
}
if ( ! $zipArchive->status === ZIPARCHIVE::ER_OK ) {
+1 -1
View File
@@ -4,7 +4,7 @@ Plugin Name: Laps
Plugin URI: https://github.com/Rarst/laps
Description: Light WordPress profiler.
Author: Andrey "Rarst" Savchenko
Version: 1.3
Version: 1.3.2
Author URI: http://www.rarst.net/
Text Domain: laps
Domain Path: /lang
+5 -1
View File
@@ -102,7 +102,11 @@ class Laps {
)
);
self::$stopwatch->$event['action']( $event['event'], $event['category'] );
if ( 'stop' === $event['action'] && ! self::$stopwatch->isStarted( $event['event'] ) ) {
return $input;
}
self::$stopwatch->{$event['action']}( $event['event'], $event['category'] );
return $input;
}