first commit

This commit is contained in:
DESKTOP-GBA0BK8\Admin
2023-04-08 12:19:53 -04:00
commit 7c8c8b1c76
4586 changed files with 2050693 additions and 0 deletions
@@ -0,0 +1,23 @@
<?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>';
}
}