Closed GoogleCodeExporter closed 8 years ago
You need to ensure that the constant is definded, prior to the hook
'template_redirect' as this load the final scripts:
add_action('template_redirect', array(&$this, 'load_scripts') );
Original comment by alex.cologne
on 20 Nov 2011 at 4:05
Here is the functioning version that I came up with.
Note the hook to "wp" and the lack of use of "define" at all in the case of
pages where scripts are needed.
add_action('wp','ngg_scripts_new');
function ngg_scripts_new(){
if (is_page('4')){}
else {define('NGG_SKIP_LOAD_SCRIPTS',TRUE);}
}
Original comment by rs.testi...@gmail.com
on 21 Nov 2011 at 1:29
Original issue reported on code.google.com by
rs.testi...@gmail.com
on 20 Nov 2011 at 3:08