/
home
/
altere25
/
labratnyc.com
/
wp-content
/
plugins
/
query-monitor
/
classes
/
/home/altere25/labratnyc.com/wp-content/plugins/query-monitor/classes
mkdir
upload
Name
Size
Mode
Actions
Activation.php
3038
0644
edit
dl
rm
ArrayAccess.php
1105
0644
edit
dl
rm
Backtrace.php
22887
0644
edit
dl
rm
Backtrace_Frame.php
870
0644
edit
dl
rm
CLI.php
1568
0644
edit
dl
rm
Collector.php
8707
0644
edit
dl
rm
Collectors.php
3445
0644
edit
dl
rm
Collector_Assets.php
14500
0644
edit
dl
rm
Component.php
3866
0644
edit
dl
rm
Component_Altis_Vendor.php
356
0644
edit
dl
rm
Component_Core.php
263
0644
edit
dl
rm
Component_Dropin.php
346
0644
edit
dl
rm
Component_MU_Plugin.php
333
0644
edit
dl
rm
Component_MU_Vendor.php
342
0644
edit
dl
rm
Component_Other.php
170
0644
edit
dl
rm
Component_PHP.php
221
0644
edit
dl
rm
Component_Plugin.php
324
0644
edit
dl
rm
Component_Stylesheet.php
341
0644
edit
dl
rm
Component_Template.php
278
0644
edit
dl
rm
Component_Unknown.php
866
0644
edit
dl
rm
Component_VIP_Plugin.php
346
0644
edit
dl
rm
Data.php
428
0644
edit
dl
rm
DataCollector.php
396
0644
edit
dl
rm
DB.php
1546
0644
edit
dl
rm
debug_bar.php
1713
0644
edit
dl
rm
debug_bar_panel.php
1446
0644
edit
dl
rm
Deprecated_Argument_Run.php
1035
0644
edit
dl
rm
Deprecated_Class_Run.php
966
0644
edit
dl
rm
Deprecated_Constructor_Run.php
1144
0644
edit
dl
rm
Deprecated_File_Included.php
1095
0644
edit
dl
rm
Deprecated_Function_Run.php
983
0644
edit
dl
rm
Deprecated_Hook_Run.php
1098
0644
edit
dl
rm
Dispatcher.php
5097
0644
edit
dl
rm
Dispatchers.php
1241
0644
edit
dl
rm
Doing_It_Wrong_Run.php
892
0644
edit
dl
rm
Frame_Registry.php
1456
0644
edit
dl
rm
Hook.php
1379
0644
edit
dl
rm
Output.php
923
0644
edit
dl
rm
PHP.php
1397
0644
edit
dl
rm
Plugin.php
2400
0644
edit
dl
rm
QM.php
4451
0644
edit
dl
rm
QueryMonitor.php
8705
0644
edit
dl
rm
Timer.php
3326
0644
edit
dl
rm
Util.php
19901
0644
edit
dl
rm
Wrong.php
822
0644
edit
dl
rm
Edit:
/home/altere25/labratnyc.com/wp-content/plugins/query-monitor/classes/Collectors.php
(3445B)
<?php declare(strict_types = 1); /** * Container for data collectors. * * @package query-monitor */ if ( ! class_exists( 'QM_Collectors' ) ) { /** * @implements \IteratorAggregate<string, QM_Collector> */ class QM_Collectors implements IteratorAggregate { /** * @var array<string, QM_Collector> */ private $items = array(); /** * @var boolean */ private $processed = false; /** * @return ArrayIterator<string, QM_Collector> */ #[\ReturnTypeWillChange] public function getIterator() { return new ArrayIterator( $this->items ); } /** * @param QM_Collector $collector * @return void */ public static function add( QM_Collector $collector ) { $collectors = self::init(); $collector->set_up(); $collectors->items[ $collector->id ] = $collector; } /** * Fetches a collector instance. * * @param string $id The collector ID. * @return QM_Collector|null The collector object. */ public static function get( $id ) { $collectors = self::init(); return $collectors->items[ $id ] ?? null; } /** * @return self */ public static function init() { static $instance; if ( ! $instance ) { $instance = new QM_Collectors(); add_action( 'init', array( $instance, 'cease_if_unsupported' ), 0 ); } return $instance; } /** * Ceases data collection if the current request is not one where QM will output. */ public function cease_if_unsupported() : void { if ( self::request_supported() ) { return; } do_action( 'qm/cease' ); } /** * Determines whether the current request supports data collection. */ public static function request_supported() : bool { // Don't collect during a Customizer preview request: if ( function_exists( 'is_customize_preview' ) && is_customize_preview() ) { return false; } // Don't collect during an iframed request, eg. the plugin info modal, an upgrader action, or the Customizer: if ( defined( 'IFRAME_REQUEST' ) && IFRAME_REQUEST ) { return false; } // Don't collect inside the Site Editor: if ( isset( $_SERVER['SCRIPT_NAME'] ) && '/wp-admin/site-editor.php' === $_SERVER['SCRIPT_NAME'] ) { return false; } // Don't collect on the interim login screen: // phpcs:ignore WordPress.Security.NonceVerification.Recommended if ( ! empty( $_GET['interim-login'] ) ) { return false; } // Don't collect on the Gutenberg site preview: // phpcs:ignore WordPress.Security.NonceVerification.Recommended if ( ! empty( $_GET['wp_site_preview'] ) ) { return false; } // Don't collect in the Elementor preview iframe // phpcs:ignore WordPress.Security.NonceVerification.Recommended if ( ! empty( $_GET['elementor-preview'] ) ) { return false; } return true; } /** * @return void */ public function process() { if ( $this->processed ) { return; } foreach ( $this as $collector ) { $collector->tear_down(); $timer = new QM_Timer(); $timer->start(); $collector->process(); $collector->process_concerns(); $collector->set_timer( $timer->stop() ); } foreach ( $this as $collector ) { $collector->post_process(); } $this->processed = true; } /** * @return void */ public static function cease() { $collectors = self::init(); $collectors->processed = true; /** @var QM_Collector $collector */ foreach ( $collectors as $collector ) { $collector->tear_down(); $collector->discard_data(); } } } }
Save
cmd:
run