Skip to content

Commit

Permalink
Reduce trace output #106
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Sep 15, 2023
1 parent 7f233d0 commit 2a99266
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libs/class-dependencies-cache.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php // (C) Copyright BobbingWide 2017, 2018
<?php // (C) Copyright BobbingWide 2017, 2018, 2023
if ( !defined( "CLASS_DEPENDENCIES_CACHE_INCLUDED" ) ) {
define( "CLASS_DEPENDENCIES_CACHE_INCLUDED", "0.1.1" );
define( "CLASS_DEPENDENCIES_CACHE_INCLUDED", "0.1.2" );

/**
* Script and style functions
Expand Down Expand Up @@ -150,8 +150,8 @@ function query_scripts_changes() {
$count_bw = count( $this->bw_scripts->registered );
bw_trace2( $count_wp, "count_wp and bw: $count_bw" );

bw_trace2( $wp_scripts, "wp_scripts" );
bw_trace2( $this->bw_scripts, "bw_scripts" );
bw_trace2( $wp_scripts->queue, "wp_scripts queue", false, BW_TRACE_VERBOSE );
bw_trace2( $this->bw_scripts->queue, "bw_scripts queue", false, BW_TRACE_VERBOSE );

$this->registered_scripts = array_udiff_assoc( $wp_scripts->registered, $this->bw_scripts->registered, array( $this, "wp_dependency_compare" ) );
bw_trace2( $this->registered_scripts, "registered scripts" );
Expand Down Expand Up @@ -191,7 +191,7 @@ function query_styles_changes() {
* @return integer - less than, equal to, or greater than zero
*/
function wp_dependency_compare( $wp_script, $bw_script ) {
bw_trace2();
//bw_trace2();
return( 0 );
}

Expand Down

0 comments on commit 2a99266

Please sign in to comment.