[wp-hackers] Form injection and gzipping

Andy Skelton skeltoac at gmail.com
Tue Feb 28 03:21:48 GMT 2006


On 2/27/06, Eric A. Meyer <eric at meyerweb.com> wrote:
> >add_action('template_redirect', 'ob_start', 'gatekeeper_comment_form_filter');

I'm sorry, I had the right idea here but the wrong add_action syntax.
Must have been out of my mind :-)

Remove all ob_start calls and do this:

add_action('template_redirect', 'register_gatekeeper_buffer');
function register_gatekeeper_buffer() {
 ob_start('gatekeeper_comment_form_filter');
}


More information about the wp-hackers mailing list