Plugin Directory

Changeset 645518


Ignore:
Timestamp:
12/28/2012 07:54:38 PM (13 years ago)
Author:
misternifty
Message:

Fixed $debug rendering before template

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debug-this/trunk/_inc/debug-template.php

    r645511 r645518  
    2323
    2424#Render the entire page to buffer to process to log all actions and filters
    25 $debug = print_r(do_action('debug_this', Debug_This::$mode), true);
     25ob_start();
     26do_action('debug_this', Debug_This::$mode);
     27$debug = ob_get_contents();
     28ob_get_clean();
    2629$html = str_replace('%DEBUG%', $debug, $html);
    2730echo $html;
Note: See TracChangeset for help on using the changeset viewer.