hummm…
maybe it’s better to use the php function version_compare 🙂
global $wp_version;
if ( version_compare( $wp_version, '2.9', '<' ) )
$template_data = implode( '', file( WP_CONTENT_DIR.$template ) );
else
$template_data = implode( '', file($template ) );
hi,
thanx for your answers.
vsellis hack works actualy pretty well.
@studiograsshopper : for backward compatibility issues, you may use this :
// cache the WordPress version for calculations
// see : http://www.eliperelman.com/?p=91
$wpversion = ( float ) substr( get_bloginfo( 'version' ), 0, 3 );
if ( $wpversion < 2.9 )
$template_data = implode( '', file( WP_CONTENT_DIR.$template ) );
else
$template_data = implode( '', file( $template ) );