Server IP : 10.106.20.8  /  Your IP : 216.73.216.148
Web Server : Apache
System : Linux webm008.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User : sixiemesrc ( 611999)
PHP Version : 8.0.30
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/s/../sixiemesrc/new/wp-content/plugins/debug-bar/panels/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/s/../sixiemesrc/new/wp-content/plugins/debug-bar/panels/class-debug-bar-js.php
<?php

class Debug_Bar_JS extends Debug_Bar_Panel {
	public $real_error_handler = array();

	function init() {
		$this->title( __( 'JavaScript', 'debug-bar' ) );

		/*
		 * attach here instead of debug_bar_enqueue_scripts
		 * because we want to be as early as possible!
		 */
		$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '.dev' : '';
		wp_enqueue_script( 'debug-bar-js', plugins_url( "js/debug-bar-js$suffix.js", dirname( __FILE__ ) ), array( 'jquery' ), '20111216' );
	}

	function render() {
		echo '<div id="debug-bar-js">';
		echo '<h2><span>' . __( 'Total Errors:', 'debug-bar' ) . "</span><span id='debug-bar-js-error-count'>0</span></h2>\n";
		echo '<ol class="debug-bar-js-list" id="debug-bar-js-errors"></ol>' . "\n";
		echo '</div>';
	}
}