PluginProbe
Meow Gallery / 4.2.2
Meow Gallery v4.2.2
5.5.5 5.5.4 5.5.3 5.5.2 5.5.1 5.5.0 5.4.9 5.4.8 5.4.7 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.3.0 All 157 releases
← All changes | common/helpers.php +1 -18 4.2.5 → 4.2.2 View file →
@@ -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.