More coding style stuff

This commit is contained in:
Andrey Savchenko committed 2013-12-06 00:15:32 +02:00
1 parent 4cc18430da
commit 247f6f53aa
1 file changed
+6 -3
+6 -3
View File
@@ -19,8 +19,9 @@ class Laps {
*/ */
static function on_load() { static function on_load() {
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
return; return;
}
self::$stopwatch = new Stopwatch(); self::$stopwatch = new Stopwatch();
self::$stopwatch->start( 'Plugins Load', 'plugin' ); self::$stopwatch->start( 'Plugins Load', 'plugin' );
@@ -32,9 +33,10 @@ class Laps {
add_action( 'after_setup_theme', array( __CLASS__, 'after_setup_theme' ), 15 ); add_action( 'after_setup_theme', array( __CLASS__, 'after_setup_theme' ), 15 );
add_action( 'init', array( __CLASS__, 'init' ) ); add_action( 'init', array( __CLASS__, 'init' ) );
if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) {
add_filter( 'query', array( __CLASS__, 'query' ), 20 ); add_filter( 'query', array( __CLASS__, 'query' ), 20 );
} }
}
/** /**
* Hook events by name and priority from array. * Hook events by name and priority from array.
@@ -179,8 +181,9 @@ class Laps {
*/ */
static function admin_bar_menu( $wp_admin_bar ) { static function admin_bar_menu( $wp_admin_bar ) {
if ( ! apply_filters( 'laps_can_see', current_user_can( 'manage_options' ) ) ) if ( ! apply_filters( 'laps_can_see', current_user_can( 'manage_options' ) ) ) {
return; return;
}
global $timestart, $wpdb; global $timestart, $wpdb;