[wp-trac] [WordPress Trac] #4514: could we add a plugin hook?
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 22 21:14:39 GMT 2007
#4514: could we add a plugin hook?
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.2.2
Component: General | Version:
Severity: normal | Keywords:
-------------------------------+--------------------------------------------
...in between init and the template loader, right here in wp-blog-
header.php:
{{{
require_once( dirname(__FILE__) . '/wp-config.php');
wp();
gzip_compression();
require_once(ABSPATH . WPINC . '/template-loader.php');
}}}
please use this instead:
{{{
require_once( dirname(__FILE__) . '/wp-config.php');
wp();
gzip_compression();
do_action('ob_start');
require_once(ABSPATH . WPINC . '/template-loader.php');
}}}
it would really be convenient for plugins that use output buffers...
--
Ticket URL: <http://trac.wordpress.org/ticket/4514>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list