| @@ -3,11 +3,9 @@ | ||
| 3 | 3 | if ( !class_exists( 'MeowCommon_Helpers' ) ) { |
| 4 | 4 | |
| 5 | 5 | class MeowCommon_Helpers { |
| 6 | 6 | |
| 7 | - //public static $version = MeowCommon_Admin::version; | |
| 8 | - private static $startTimes = array(); | |
| 9 | - private static $startQueries = array(); | |
| 7 | + public static $version = MeowCommon_Admin::version; | |
| 10 | 8 | |
| 11 | 9 | static function is_divi_builder() { |
| 12 | 10 | return isset( $_GET['et_fb'] ) && $_GET['et_fb'] === '1'; |
| 13 | 11 | } |
| @@ -169,23 +167,8 @@ | ||
| 169 | 167 | // } |
| 170 | 168 | // } |
| 171 | 169 | // return $html; |
| 172 | 170 | // } |
| 173 | - } | |
| 174 | - | |
| 175 | - static function timer_start( $timerName = 'default' ) { | |
| 176 | - MeowCommon_Helpers::$startQueries[ $timerName ] = get_num_queries(); | |
| 177 | - MeowCommon_Helpers::$startTimes[ $timerName ] = microtime( true ); | |
| 178 | - } | |
| 179 | - | |
| 180 | - static function timer_elapsed( $timerName = 'default' ) { | |
| 181 | - return microtime( true ) - MeowCommon_Helpers::$startTimes[ $timerName ]; | |
| 182 | - } | |
| 183 | - | |
| 184 | - static function timer_log_elapsed( $timerName = 'default' ) { | |
| 185 | - $elapsed = MeowCommon_Helpers::timer_elapsed( $timerName ); | |
| 186 | - $queries = get_num_queries() - MeowCommon_Helpers::$startQueries[ $timerName ]; | |
| 187 | - error_log( $timerName . ": " . $elapsed . "ms (" . $queries . " queries)" ); | |
| 188 | 171 | } |
| 189 | 172 | } |
| 190 | 173 | |
| 191 | 174 | // Asked by WP Security Team to remove this. |