Skip to content

Commit

Permalink
Update live_debug.php
Browse files Browse the repository at this point in the history
removed the cookie check for output to ensure that scenario debugger should work
  • Loading branch information
wpoet-dev committed Jan 4, 2023
1 parent 82dd636 commit 6dc0862
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions live_debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,7 @@ function dump($atts=null,$content=null,$shortcode=null){

\aw2_library::add_service('live_debug.output.collect','collect the events to collect_id',['namespace'=>__NAMESPACE__]);
function collect($atts=null,$content=null,$shortcode=null){
if(!isset($_COOKIE['live_debug'])) return;

//if(!isset($_COOKIE['live_debug'])) return;

extract(\aw2_library::shortcode_atts( array(
'event_keys'=>'',
Expand All @@ -438,7 +437,7 @@ function collect($atts=null,$content=null,$shortcode=null){
'max_events'=>500,
'event'=>'',
'live_debug'=>'',
'collect_id'=>$_COOKIE['live_debug']
'collect_id'=>isset($_COOKIE['live_debug'])?$_COOKIE['live_debug']:rand()
), $atts, '' ) );

if(!\aw2\live_debug\is_active()) return;
Expand Down

0 comments on commit 6dc0862

Please sign in to comment.