[wp-testers] Re: post_password_required()

Musing Minds kimsch at musing-minds.com
Thu Nov 20 20:17:25 GMT 2008


Copy your old comments file and name it legacy.comments.php...

-----Original Message-----
From: wp-testers-bounces at lists.automattic.com
[mailto:wp-testers-bounces at lists.automattic.com] On Behalf Of Idled Soul
Sent: Thursday, November 20, 2008 2:54 PM
To: wp-testers at lists.automattic.com
Subject: [wp-testers] Re: post_password_required()

Hmm, appears just adding this to the functions.php file works...

add_filter('comments_template', 'legacy_comments');

function legacy_comments($file) {

    if(!function_exists('wp_list_comments')) : // WP 2.7-only check
        $file = TEMPLATEPATH . '/legacy.comments.php';
    endif;

    return $file;
}


However, I don't have an OLD comments.php file called 
"legacy.comments.php" LOL!
_______________________________________________
wp-testers mailing list
wp-testers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-testers



More information about the wp-testers mailing list